
.lbw-local-tryon-tools {
  display: grid;
  gap: 10px;
}

.lbw-local-tryon-controls {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.lbw-local-tryon-tools,
.lbw-local-tryon-controls,
.lbw-local-tryon-options {
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.lbw-local-tryon-options {
  margin: 0;
  padding: 10px 16px 14px;
  display: grid;
  gap: 8px;
  background: #111;
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}

.lbw-local-tryon-tool-stack {
  display: grid;
  gap: 9px;
}

.lbw-local-tryon-group {
  display: grid;
  gap: 6px;
}

.lbw-local-tryon-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.68);
}

.lbw-local-tryon-tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}


.lbw-local-tryon-tool-row--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lbw-local-tryon-tool-row > .lbw-local-tryon-tool:only-child,
.lbw-local-tryon-tool-row > .lbw-local-tryon-tool:first-child:last-child {
  grid-column: 1 / -1;
}

.lbw-local-tryon-tool {
  border: 1px solid rgba(255,255,255,.14);
  background: #202020;
  color: #fff;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .08s ease, color .16s ease;
}

.lbw-local-tryon-tool:hover { background: #2a2a2a; border-color: rgba(255,255,255,.28); }
.lbw-local-tryon-tool:focus,
.lbw-local-tryon-tool:focus-visible { outline: none; border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.lbw-local-tryon-tool:active { transform: translateY(1px) scale(.985); background: #353535; border-color: rgba(255,255,255,.44); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset; }
.lbw-local-tryon-tool.is-active { background: #313131; border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.lbw-local-tryon-tool.is-active:hover { background: #3a3a3a; }


.lbw-local-tryon-tool--compact {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.1;
}

.lbw-local-tryon-option-section { display: grid; gap: 8px; }


.lbw-local-tryon-swatch-scroller {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.lbw-local-tryon-swatch-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: #202020;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .08s ease;
}
.lbw-local-tryon-swatch-arrow:hover { background: #2a2a2a; border-color: rgba(255,255,255,.24); }
.lbw-local-tryon-swatch-arrow:active { transform: translateY(1px) scale(.985); }
.lbw-local-tryon-swatch-arrow:focus,
.lbw-local-tryon-swatch-arrow:focus-visible { outline: none; border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.14); }

.lbw-local-tryon-swatch-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  cursor: grab;
  user-select: none;
}

.lbw-local-tryon-swatch-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.lbw-local-tryon-swatch-grid::-webkit-scrollbar {
  height: 8px;
}

.lbw-local-tryon-swatch-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.lbw-local-tryon-swatch {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  flex: 0 0 112px;
  min-width: 112px;
  min-height: 106px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  background: #202020;
  color: #fff;
  padding: 12px 10px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.lbw-local-tryon-swatch:hover { background: #2a2a2a; border-color: rgba(255,255,255,.24); }
.lbw-local-tryon-swatch:focus,
.lbw-local-tryon-swatch:focus-visible { outline: none; border-color: rgba(255,255,255,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.lbw-local-tryon-swatch:active { transform: translateY(1px) scale(.985); }
.lbw-local-tryon-swatch.is-active { border-color: rgba(255,255,255,.45); background: #262626; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.lbw-local-tryon-swatch .swatch-media { width: 100%; height: 44px; display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.16) inset; }
.lbw-local-tryon-swatch .swatch-media--image { background: rgba(255,255,255,.06); }
.lbw-local-tryon-swatch .swatch-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.lbw-local-tryon-swatch .swatch-color { width: 100%; height: 100%; display: block; border-radius: 12px; }
.lbw-local-tryon-swatch .swatch-label { font-size: 12px; font-weight: 600; line-height: 1.3; word-break: break-word; }

@media (max-width: 980px) {
  .lbw-local-tryon-options {
    margin: 0;
    padding: 14px 20px 20px;
  }
  .lbw-local-tryon-tool-row { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}

@media (max-width: 640px) {
  .lbw-local-tryon-options {
    margin: 0;
    padding: 12px 16px 16px;
  }
  .lbw-local-tryon-swatch {
    flex-basis: 96px;
    min-width: 96px;
  }
}

@media (max-width: 980px) {
  .lbw-local-tryon-swatch-scroller {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .lbw-local-tryon-swatch-arrow {
    display: none;
  }
  .lbw-local-tryon-tools,
  .lbw-local-tryon-controls {
    padding: 10px;
    border-radius: 14px;
  }
  .lbw-local-tryon-tool-row {
    grid-template-columns: 1fr 1fr;
  }
  .lbw-local-tryon-tool-row--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lbw-local-tryon-swatch-grid {
    gap: 12px;
    padding: 4px 2px 2px;
    flex-wrap: nowrap;
  }
  .lbw-local-tryon-swatch {
    flex: 0 0 auto;
    min-width: 70px;
    width: 70px;
    min-height: 88px;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 8px;
  }
  .lbw-local-tryon-swatch .swatch-color {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset;
  }
  .lbw-local-tryon-swatch .swatch-label {
    font-size: 11px;
    line-height: 1.2;
    max-width: 70px;
  }
}
