.ytt-selection-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(31, 38, 45, 0.18);
  border-radius: 4px;
  background: #20262a;
  color: #fffdf8;
  box-shadow: 0 18px 44px rgba(24, 31, 38, 0.22);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.ytt-selection-launcher__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fffdf8;
  color: #20262a;
  font-size: 12px;
}

.ytt-selection-launcher.is-empty {
  background: rgba(255, 253, 248, 0.94);
  color: #20262a;
}

.ytt-selection-launcher.is-empty .ytt-selection-launcher__count {
  background: rgba(49, 95, 90, 0.12);
  color: #315f5a;
}

.ytt-selection-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(21, 27, 31, 0.42);
}

.ytt-selection-overlay.is-open {
  display: block;
}

.ytt-selection-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  background: #fffdf8;
  color: #20262a;
  border-left: 1px solid rgba(31, 38, 45, 0.14);
  box-shadow: -22px 0 58px rgba(24, 31, 38, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.ytt-selection-drawer.is-open {
  transform: translateX(0);
}

.ytt-selection-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-selection-kicker,
.ytt-selection-label {
  color: #315f5a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ytt-selection-kicker {
  display: block;
  margin-bottom: 7px;
}

.ytt-selection-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: 0;
}

.ytt-selection-head p {
  margin: 8px 0 0;
  max-width: 44ch;
  color: #5c625f;
  font-size: 13px;
  line-height: 1.55;
}

.ytt-selection-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 38, 45, 0.16);
  border-radius: 4px;
  background: transparent;
  color: #20262a;
  font-size: 24px;
  line-height: 1;
}

.ytt-selection-body {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 24px;
}

.ytt-selection-empty,
.ytt-selection-items,
.ytt-selection-item,
.ytt-selection-field,
.ytt-selection-foot {
  display: grid;
}

.ytt-selection-empty {
  gap: 12px;
  padding: 34px 0;
  border-top: 1px solid rgba(31, 38, 45, 0.12);
  border-bottom: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-selection-empty strong {
  font-size: 20px;
  line-height: 1.2;
}

.ytt-selection-empty p,
.ytt-selection-note {
  margin: 0;
  color: #5c625f;
  font-size: 13px;
  line-height: 1.55;
}

.ytt-selection-items {
  gap: 18px;
}

.ytt-selection-item {
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-selection-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.ytt-selection-summary img {
  width: 76px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #dfe7e3;
  border: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-selection-summary h3 {
  margin: 0;
  color: #20262a;
  font-size: 15px;
  line-height: 1.32;
}

.ytt-selection-summary p {
  margin: 6px 0 0;
  color: #5c625f;
  font-size: 12px;
  line-height: 1.45;
}

.ytt-selection-remove {
  border: none;
  background: transparent;
  color: #8f3f35;
  font-size: 12px;
  font-weight: 800;
}

.ytt-selection-field {
  gap: 9px;
}

.ytt-selection-chip-row,
.ytt-selection-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ytt-selection-chip,
.ytt-selection-method {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.9);
  color: #20262a;
  font-size: 12px;
  font-weight: 800;
}

.ytt-selection-chip.is-active,
.ytt-selection-method.is-active {
  border-color: #20262a;
  background: #20262a;
  color: #fffdf8;
}

.ytt-selection-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.ytt-selection-size {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid rgba(31, 38, 45, 0.12);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.42);
}

.ytt-selection-size span {
  overflow: hidden;
  color: #20262a;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ytt-selection-size input {
  width: 44px;
  height: 30px;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  text-align: center;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.ytt-selection-input,
.ytt-selection-textarea {
  width: 100%;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  font: inherit;
  font-size: 13px;
}

.ytt-selection-input {
  min-height: 42px;
  padding: 0 12px;
}

.ytt-selection-textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
}

.ytt-selection-foot {
  gap: 14px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(31, 38, 45, 0.12);
  background: #fffdf8;
}

.ytt-selection-meta-grid,
.ytt-selection-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.ytt-selection-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
}

.ytt-selection-send,
.ytt-selection-copy,
.ytt-selection-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ytt-selection-send {
  border: 1px solid #20262a;
  background: #20262a;
  color: #fffdf8;
}

.ytt-selection-copy,
.ytt-selection-browse {
  border: 1px solid rgba(31, 38, 45, 0.16);
  background: transparent;
  color: #20262a;
}

.ytt-selection-toast {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 100;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  box-shadow: 0 18px 44px rgba(24, 31, 38, 0.18);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ytt-selection-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.product-selection-button,
.detail-selection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(31, 38, 45, 0.18);
  border-radius: 4px;
  background: #20262a;
  color: #fffdf8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.product-selection-button {
  width: 100%;
}

.product-card > .product-selection-button {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
}

.product-selection-button.is-saved,
.detail-selection-button.is-saved {
  background: #315f5a;
  border-color: #315f5a;
}

.detail-selection-button {
  min-width: 190px;
  min-height: 48px;
  padding: 0 18px;
}

.detail-selection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-selection-hint {
  flex-basis: 100%;
  margin: 0;
  color: #5c625f;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .ytt-selection-launcher {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }

  .ytt-selection-drawer {
    width: 100%;
  }

  .ytt-selection-head,
  .ytt-selection-body,
  .ytt-selection-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ytt-selection-summary {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ytt-selection-summary img {
    width: 64px;
  }

  .ytt-selection-remove {
    grid-column: 2;
    justify-self: start;
  }

  .ytt-selection-meta-grid,
  .ytt-selection-actions {
    grid-template-columns: 1fr;
  }

  .product-detail-page .mobile-selected-color-bar.active {
    bottom: 78px;
  }
}

.ytt-selection-help {
  margin: -2px 0 0;
  color: #5c625f;
  font-size: 12.5px;
  line-height: 1.45;
}

.ytt-selection-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ytt-selection-add {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(31, 38, 45, 0.16);
  border-radius: 4px;
  background: rgba(49, 95, 90, 0.10);
  color: #20262a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .ytt-selection-add-row {
    grid-template-columns: 1fr;
  }
}
.ytt-picker-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 38, 45, 0.12);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.36);
}

.ytt-picker-title {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ytt-picker-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #20262a;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 800;
}

.ytt-picker-title strong {
  color: #20262a;
  font-size: 15px;
  line-height: 1.2;
}

.ytt-picker-title em {
  max-width: 190px;
  overflow: hidden;
  color: #315f5a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ytt-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.ytt-color-option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.ytt-color-option:first-child {
  grid-template-columns: minmax(0, 1fr);
}

.ytt-color-option.is-active {
  border-color: #20262a;
  background: #20262a;
  color: #fffdf8;
}

.ytt-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(31, 38, 45, 0.18);
  background: rgba(49, 95, 90, 0.18);
}

.ytt-size-table {
  border: 1px solid rgba(31, 38, 45, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: #fffdf8;
}

.ytt-size-table-head,
.ytt-size-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
  align-items: center;
}

.ytt-size-table-head {
  min-height: 38px;
  padding: 0 12px;
  background: rgba(49, 95, 90, 0.08);
  color: #5c625f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ytt-size-row {
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid rgba(31, 38, 45, 0.10);
}

.ytt-size-row strong {
  color: #20262a;
  font-size: 14px;
}

.ytt-size-stepper {
  justify-self: end;
  display: grid;
  grid-template-columns: 34px 62px 34px;
  gap: 6px;
  align-items: center;
}

.ytt-size-stepper button,
.ytt-size-stepper input {
  height: 34px;
  border: 1px solid rgba(31, 38, 45, 0.16);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ytt-size-stepper button {
  background: rgba(49, 95, 90, 0.10);
}

@media (max-width: 520px) {
  .ytt-picker-title {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ytt-picker-title em {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .ytt-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ytt-product-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(21, 27, 31, 0.48);
}

.ytt-product-picker-overlay.is-open {
  display: flex;
}

.ytt-product-picker {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(31, 38, 45, 0.16);
  border-radius: 4px;
  background: #fffdf8;
  color: #20262a;
  box-shadow: 0 28px 80px rgba(24, 31, 38, 0.28);
}

.ytt-product-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-product-picker-head span {
  color: #315f5a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ytt-product-picker-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.08;
}

.ytt-product-picker-head p {
  margin: 7px 0 0;
  color: #5c625f;
  font-size: 13px;
  line-height: 1.45;
}

.ytt-product-picker-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 38, 45, 0.16);
  border-radius: 4px;
  background: transparent;
  color: #20262a;
  font-size: 24px;
}

.ytt-product-picker-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
}

.ytt-product-picker-foot {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(31, 38, 45, 0.12);
  background: #fffdf8;
}

@media (max-width: 720px) {
  .ytt-product-picker-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .ytt-product-picker {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .ytt-product-picker-foot {
    grid-template-columns: 1fr;
  }
}
.ytt-color-option {
  position: relative;
}

.ytt-color-dot {
  box-shadow: inset 0 0 0 1px rgba(31, 38, 45, 0.10);
}

.ytt-color-count {
  position: absolute;
  top: -10px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f43f3f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(244, 63, 63, 0.28);
}

.ytt-color-option.is-active .ytt-color-count {
  background: #ff1f1f;
  color: #fff;
}

.ytt-picker-size-block {
  scroll-margin-top: 16px;
}

.ytt-selection-empty-mini {
  padding: 16px;
  color: #5c625f;
  font-size: 14px;
}

@media (min-width: 721px) {
  .ytt-product-picker {
    width: min(680px, 100%);
  }

  .ytt-product-picker-body {
    gap: 12px;
  }
}

.ytt-selection-item-compact {
  gap: 12px;
  padding: 14px 0 18px;
}

.ytt-selection-summary-compact {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
}

.ytt-selection-compact-colors {
  display: grid;
  gap: 10px;
}

.ytt-selection-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ytt-selection-color-pill {
  min-width: 116px;
  max-width: 180px;
}

.ytt-selection-folded {
  min-height: 42px;
  padding: 0 12px;
  border: 1px dashed rgba(31, 38, 45, 0.22);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.42);
  color: #315f5a;
  font-size: 13px;
  font-weight: 800;
}

.ytt-selection-muted {
  color: #5c625f;
  font-size: 13px;
}

.ytt-selection-size-panel {
  margin-top: 2px;
  background: rgba(255, 253, 248, 0.78);
}

.ytt-selection-more {
  border-top: 1px solid rgba(31, 38, 45, 0.10);
  padding-top: 10px;
}

.ytt-selection-more summary {
  cursor: pointer;
  color: #315f5a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ytt-selection-more-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

@media (max-width: 520px) {
  .ytt-selection-summary-compact {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ytt-selection-color-pill {
    min-width: calc(50% - 4px);
  }
}

/* Procurement list: selected colors must scan horizontally, not as a vertical stack. */
.ytt-selection-item-compact {
  gap: 14px;
}

.ytt-selection-compact-colors {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ytt-selection-color-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  justify-content: start;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.ytt-selection-color-pill {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  min-height: 46px;
  padding-right: 12px;
}

.ytt-selection-color-pill span:not(.ytt-color-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ytt-selection-folded {
  width: auto;
  min-width: 132px;
  min-height: 46px;
  white-space: nowrap;
}

.ytt-size-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 27, 31, 0.48);
}

.ytt-size-editor-overlay.is-open {
  display: flex;
}

.ytt-size-editor {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(31, 38, 45, 0.14);
  border-radius: 6px;
  background: #fffdf8;
  color: #20262a;
  box-shadow: 0 28px 80px rgba(24, 31, 38, 0.28);
}

.ytt-size-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(31, 38, 45, 0.12);
}

.ytt-size-editor-head span {
  color: #315f5a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ytt-size-editor-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.12;
}

.ytt-size-editor-head p {
  margin: 5px 0 0;
  color: #5c625f;
  font-size: 13px;
}

.ytt-size-editor-color {
  padding: 14px 18px 0;
}

.ytt-size-editor > .ytt-size-table {
  margin: 14px 18px 0;
}

.ytt-size-editor-foot {
  padding: 16px 18px 18px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .ytt-selection-color-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ytt-selection-color-pill,
  .ytt-selection-folded {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .ytt-size-editor-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .ytt-size-editor {
    width: 100%;
    max-height: 88vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
}

.ytt-selection-pricing-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 38, 45, 0.12);
  border-radius: 4px;
  background: rgba(244, 241, 234, 0.44);
}

.ytt-selection-pricing-head {
  display: grid;
  gap: 4px;
}

.ytt-selection-pricing-head strong {
  color: #20262a;
  font-size: 18px;
  line-height: 1.2;
}

.ytt-selection-pricing-head span {
  color: #5c625f;
  font-size: 12.5px;
  line-height: 1.45;
}

.ytt-selection-captcha-wrap {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.ytt-selection-captcha-slot {
  min-height: 66px;
}

.ytt-selection-pricing-panel .ytt-selection-actions {
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(82px, 0.55fr));
  gap: 10px;
}

.ytt-selection-send:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ytt-selection-status {
  min-height: 18px;
  margin: 0;
  color: #5c625f;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.45;
}

.ytt-selection-status[data-tone="success"] {
  color: #315f5a;
}

.ytt-selection-status[data-tone="error"] {
  color: #9a3d32;
}

@media (max-width: 720px) {
  .ytt-selection-pricing-panel .ytt-selection-actions {
    grid-template-columns: 1fr 1fr;
  }

  .ytt-selection-pricing-panel .ytt-selection-send {
    grid-column: 1 / -1;
  }
}
/* Mobile selection drawer: keep saved products visible above the inquiry form. */
@media (max-width: 720px) {
  .ytt-selection-drawer {
    grid-template-rows: auto auto auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ytt-selection-body {
    min-height: auto;
    overflow: visible;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .ytt-selection-foot {
    align-self: start;
  }
}
/* Mobile color picker swatch alignment fix */
.ytt-color-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
}

.ytt-color-option:first-child {
  grid-template-columns: none;
}

.ytt-color-option .ytt-color-dot {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(31, 38, 45, 0.30);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.70), 0 1px 2px rgba(24, 31, 38, 0.14);
}

.ytt-color-option.is-active .ytt-color-dot {
  border-color: rgba(255, 253, 248, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.48), 0 0 0 2px rgba(255, 253, 248, 0.18);
}

.ytt-color-option span:not(.ytt-color-dot):not(.ytt-color-count) {
  min-width: 0;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .ytt-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ytt-color-option {
    min-height: 44px;
    padding: 0 9px;
  }

  .ytt-color-option .ytt-color-dot {
    flex-basis: 15px;
    width: 15px;
    height: 15px;
  }

  .ytt-color-option span:not(.ytt-color-dot):not(.ytt-color-count) {
    font-size: 11.5px;
  }
}
/* Product picker color row hardening */
.ytt-product-picker .ytt-color-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 9px;
}

.ytt-product-picker .ytt-color-option > .ytt-color-dot {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border-color: rgba(31, 38, 45, 0.34);
}

.ytt-product-picker .ytt-color-option > .ytt-color-dot + span {
  display: inline-block;
  min-width: 0;
  margin: 0;
  line-height: 1.16;
  text-align: left;
}

@media (max-width: 520px) {
  .ytt-product-picker .ytt-color-option > .ytt-color-dot {
    flex-basis: 15px;
    width: 15px;
    height: 15px;
  }
}
/* Product detail Selection CTA visibility fallback */
.product-detail-page .detail-selection-button {
  border: 2px solid #fffdf8;
  border-radius: 8px;
  background: #fffdf8;
  color: #20262a;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
}
/* Product catalog cards should browse first, select in detail. */
.catalog-main .product-card > .product-selection-button,
.catalog-main .product-card-static > .product-selection-button,
.catalog-main .product-card-main > .product-selection-button {
  display: none !important;
}
/* Hard stop: no selection buttons on catalog product cards. */
#productGrid .product-selection-button,
.catalog-main .product-selection-button {
  display: none !important;
}
/* Mobile/catalog hard stop: product cards do not expose Save Style buttons. */
#productGrid .product-selection-button,
.catalog-main .product-selection-button,
.catalog-main .product-card > button.product-selection-button,
.catalog-main .product-card-static > button.product-selection-button,
.catalog-main .product-card-main > button.product-selection-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.ytt-selection-legal-note {
  margin: -2px 0 0;
  color: #5c625f;
  font-size: 12px;
  line-height: 1.55;
}
.ytt-selection-legal-note a {
  color: #315f5a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
