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

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

.spt-shape-toolbar__type-group {
  display: inline-flex;
  flex-wrap: nowrap;
  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: 14px;
  height: 14px;
}

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

.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);
}

.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(68px, auto) minmax(0, 1fr) 22px;
}

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

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

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

  .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;
  }
}
