.spt-shape-toolbar.spt-floating-window {
  min-width: 280px;
  min-height: 110px;
  width: 320px;
}

.spt-shape-toolbar__header-content {
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.spt-shape-toolbar__type-group {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-self: end;
  min-width: 0;
  align-items: center;
  gap: 1px;
}

.spt-shape-toolbar__type-group[hidden] {
  display: none;
}

.spt-shape-toolbar__type-group .spt-shape-toolbar__action {
  font-size: 14px;
}

.spt-shape-toolbar__type-group .spt-compact-collage-toolbar__action-icon {
  width: 13px;
  height: 13px;
}

.spt-shape-toolbar__actions {
  justify-content: flex-end;
  gap: 0;
}

.spt-shape-toolbar__action--flip-vertical .spt-compact-collage-toolbar__action-icon {
  transform: rotate(90deg);
}

.spt-shape-toolbar__type-group .spt-shape-toolbar__action[aria-pressed="true"] {
  color: var(--spt-ink);
  background: var(--spt-menu-hover);
  border-color: var(--spt-border-strong);
}

.spt-shape-toolbar__body {
  border-top: 1px solid var(--spt-border-strong);
}

.spt-shape-toolbar__fx {
  border-top: 0;
}

.spt-shape-toolbar__effect-card {
  background: var(--spt-surface-raised);
  padding: 3px 5px 4px;
  gap: 2px;
}

.spt-shape-toolbar__effect-card.is-inactive {
  gap: 0;
}

.spt-shape-toolbar__effect-card.is-inactive .spt-shape-toolbar__effect-content {
  display: none;
}

.spt-shape-toolbar__effect-card--fill .spt-shape-toolbar__effect-title,
.spt-shape-toolbar__effect-card--stroke .spt-shape-toolbar__effect-title,
.spt-shape-toolbar__effect-card--shadow .spt-shape-toolbar__effect-title,
.spt-shape-toolbar__effect-card--glow .spt-shape-toolbar__effect-title {
  grid-template-columns: minmax(62px, auto) minmax(0, 1fr) 20px;
  min-height: 20px;
  gap: 3px;
}

.spt-shape-toolbar .spt-popup-slider-field--effect {
  grid-template-columns: minmax(46px, 1fr) 64px;
  min-height: 18px;
  font-size: 11px;
}

.spt-shape-toolbar .spt-popup-slider-field--effect .spt-popup-slider-field__input-wrap,
.spt-shape-toolbar .spt-popup-slider-field--effect .spt-popup-slider-field__number,
.spt-shape-toolbar .spt-popup-slider-field--effect .spt-popup-slider-field__arrow {
  height: 18px;
}

.spt-shape-toolbar .spt-popup-slider-field--effect .spt-popup-slider-field__number {
  font-size: 11px;
}

.spt-shape-toolbar .spt-compact-collage-toolbar__effect-toggle {
  height: 20px;
  gap: 3px;
}

.spt-shape-toolbar .spt-compact-collage-toolbar__color {
  width: 20px;
  height: 20px;
}

.spt-shape-toolbar .spt-compact-collage-toolbar__select {
  grid-template-columns: minmax(46px, 1fr) 82px;
  min-height: 18px;
  gap: 4px;
}

.spt-shape-toolbar .spt-compact-collage-toolbar__select select {
  height: 18px;
  padding: 0 18px 0 5px;
}

.spt-shape-toolbar .spt-popup-slider-field[hidden] {
  display: none;
}

@container (max-width: 280px) {
  .spt-shape-toolbar__header-content {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .spt-shape-toolbar__fx {
    grid-template-columns: minmax(0, 1fr);
  }

  .spt-shape-toolbar__actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .spt-shape-toolbar__effect-card:nth-child(odd) {
    border-right: 0;
  }
}
