.lls-configurator {
  --lls-ink: #171a1f;
  --lls-muted: #716c64;
  --lls-ivory: #fbf7ef;
  --lls-paper: #fffdf8;
  --lls-gold: #b18a39;
  --lls-gold-soft: rgba(177, 138, 57, .12);
  --lls-blue: #315b68;
  --lls-line: #e4d7bf;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 2rem 0;
  padding: clamp(1.15rem, 3vw, 2.25rem);
  border: 1px solid var(--lls-line);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0, rgba(177, 138, 57, .08), transparent 34%),
    var(--lls-paper);
  box-shadow: 0 24px 70px rgba(65, 51, 28, .10);
  color: var(--lls-ink);
  container-type: inline-size;
  overflow: hidden;
}

.lls-configurator,
.lls-configurator * { box-sizing: border-box; }

.lls-step,
.lls-choices,
.lls-choice,
.lls-choice-copy { min-width: 0; }

.lls-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--lls-line);
}

.lls-kicker {
  margin: 0;
  color: var(--lls-gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lls-brand-row > span {
  color: var(--lls-muted);
  font-size: .69rem;
  font-weight: 700;
}

.lls-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.65rem;
}

.lls-intro h2 {
  margin: 0 0 .45rem !important;
  color: var(--lls-ink);
  font-family: inherit;
  font-size: clamp(1.85rem, 4vw, 3rem) !important;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.lls-intro p {
  max-width: 42rem;
  margin: 0;
  color: var(--lls-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.lls-live-total {
  min-width: 150px;
  padding: .75rem 1rem;
  border: 1px solid var(--lls-line);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .72);
  text-align: right;
}

.lls-live-total span,
.lls-live-total small,
.lls-live-total strong {
  display: block;
}

.lls-live-total span {
  color: var(--lls-muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lls-live-total strong {
  margin: .15rem 0;
  color: var(--lls-ink);
  font-size: 1.18rem;
}

.lls-live-total small {
  color: var(--lls-muted);
  font-size: .62rem;
}

.lls-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .3rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.lls-progress li {
  position: relative;
  color: #8a847b;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

.lls-progress li::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: .82rem;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--lls-line);
}

.lls-progress li:first-child::before { display: none; }

.lls-progress span {
  position: relative;
  z-index: 1;
  width: 1.68rem;
  height: 1.68rem;
  margin: 0 auto .42rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--lls-line);
  border-radius: 50%;
  background: var(--lls-paper);
  font-size: .68rem;
  font-weight: 800;
}

.lls-progress li.is-active,
.lls-progress li.is-complete { color: var(--lls-ink); }

.lls-progress li.is-active span {
  color: #fff;
  border-color: var(--lls-ink);
  background: var(--lls-ink);
  box-shadow: 0 0 0 4px rgba(23, 26, 31, .08);
}

.lls-progress li.is-complete span {
  color: #fff;
  border-color: var(--lls-gold);
  background: var(--lls-gold);
}

.lls-progress li.is-complete::before,
.lls-progress li.is-active::before { background: var(--lls-gold); }

.lls-step[hidden],
.lls-rx-panel[hidden],
.lls-height[hidden] { display: none !important; }

.lls-step.is-active { animation: lls-fade-in .24s ease both; }

@keyframes lls-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.lls-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  margin-bottom: 1.3rem;
  align-items: start;
}

.lls-step-heading > span {
  padding-top: .04rem;
  color: var(--lls-gold);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.lls-step-heading h3 {
  margin: 0 0 .35rem !important;
  color: var(--lls-ink);
  font-size: 1.28rem !important;
  font-weight: 650;
}

.lls-step-heading p {
  margin: 0;
  color: var(--lls-muted);
  font-size: .88rem;
  line-height: 1.48;
}

.lls-choices {
  display: grid;
  gap: .7rem;
}

.lls-choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.lls-choice {
  position: relative;
  min-height: 88px;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  border: 1px solid var(--lls-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 22px rgba(75, 56, 26, .04);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.lls-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 138, 57, .65);
  box-shadow: 0 12px 28px rgba(75, 56, 26, .08);
}

.lls-choice:has(input:focus-visible) {
  outline: 3px solid rgba(49, 91, 104, .22);
  outline-offset: 2px;
}

.lls-choice:has(input:checked) {
  border-color: var(--lls-gold);
  background: linear-gradient(135deg, rgba(255,255,255,.98), var(--lls-gold-soft));
  box-shadow: 0 0 0 2px rgba(177, 138, 57, .13);
}

.lls-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lls-check {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
  border: 1px solid #aaa197;
  border-radius: 50%;
  background: #fff;
}

input[type="checkbox"] + .lls-check { border-radius: .32rem; }

.lls-choice input:checked + .lls-check {
  border: 4px solid var(--lls-gold);
  background: #fff;
}

.lls-choice-copy { min-width: 0; }
.lls-choice-copy strong,
.lls-choice-copy small { display: block; }
.lls-choice-copy strong { color: var(--lls-ink); font-size: .94rem; font-weight: 750; }
.lls-choice-copy small { margin-top: .22rem; color: var(--lls-muted); font-size: .76rem; line-height: 1.4; }
.lls-price-tag { color: var(--lls-gold); font-size: .74rem; font-weight: 850; white-space: nowrap; }

.lls-choice.is-recommended {
  margin-top: .35rem;
  border-color: var(--lls-blue);
}

.lls-choice.is-recommended::after {
  content: attr(data-recommendation);
  position: absolute;
  top: -.68rem;
  right: .75rem;
  padding: .24rem .58rem;
  border-radius: 999px;
  color: #fff;
  background: var(--lls-blue);
  box-shadow: 0 5px 14px rgba(49, 91, 104, .18);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.lls-recommendation,
.lls-treatment-tip {
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .8rem;
  border: 1px solid rgba(177, 138, 57, .35);
  border-radius: 1rem;
  background: var(--lls-gold-soft);
}

.lls-recommendation::before,
.lls-treatment-tip::before {
  content: "✓";
  grid-row: 1 / 4;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--lls-gold);
  font-size: .8rem;
  font-weight: 900;
}

.lls-recommendation > span,
.lls-treatment-tip > span {
  color: var(--lls-gold);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lls-recommendation strong,
.lls-treatment-tip strong {
  margin-top: .1rem;
  color: var(--lls-ink);
  font-size: .95rem;
}

.lls-recommendation p,
.lls-treatment-tip p {
  margin: .18rem 0 0;
  color: var(--lls-muted);
  font-size: .78rem;
  line-height: 1.42;
}

.lls-thickness {
  height: 90px;
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .4rem;
  align-items: end;
  border-bottom: 1px solid var(--lls-line);
}

.lls-thickness div {
  display: grid;
  place-items: end center;
  border: 1px solid rgba(49, 91, 104, .13);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(49, 91, 104, .25), rgba(49, 91, 104, .05));
}

.lls-thickness div:nth-child(1) { height: 76px; }
.lls-thickness div:nth-child(2) { height: 68px; }
.lls-thickness div:nth-child(3) { height: 60px; }
.lls-thickness div:nth-child(4) { height: 51px; }
.lls-thickness div:nth-child(5) { height: 42px; }
.lls-thickness div:nth-child(6) { height: 34px; }
.lls-thickness span { padding-bottom: .28rem; color: var(--lls-ink); font-size: .66rem; font-weight: 850; }

.lls-rx-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: 1rem;
}

.lls-rx-modes label { position: relative; }
.lls-rx-modes input { position: absolute; opacity: 0; }

.lls-rx-modes span {
  min-height: 78px;
  display: grid;
  place-content: center;
  gap: .16rem;
  padding: .7rem;
  border: 1px solid var(--lls-line);
  border-radius: .9rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: .18s ease;
}

.lls-rx-modes strong { color: var(--lls-ink); font-size: .8rem; }
.lls-rx-modes small { color: var(--lls-muted); font-size: .66rem; font-weight: 600; }
.lls-rx-modes input:checked + span { color: #fff; border-color: var(--lls-ink); background: var(--lls-ink); }
.lls-rx-modes input:checked + span strong,
.lls-rx-modes input:checked + span small { color: #fff; }
.lls-rx-modes input:focus-visible + span { outline: 3px solid rgba(49, 91, 104, .22); outline-offset: 2px; }

.lls-rx-panel {
  padding: 1.05rem;
  border: 1px solid var(--lls-line);
  border-radius: 1rem;
  background: rgba(251, 247, 239, .82);
}

.lls-rx-guide {
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--lls-line);
}

.lls-rx-guide strong,
.lls-rx-guide span { display: block; }
.lls-rx-guide strong { font-size: .82rem; }
.lls-rx-guide span { margin-top: .2rem; color: var(--lls-muted); font-size: .68rem; line-height: 1.45; }

.lls-rx-grid {
  display: grid;
  grid-template-columns: 34px repeat(4, minmax(0, 1fr));
  gap: .45rem;
  align-items: center;
  margin-bottom: .5rem;
}

.lls-rx-head { color: var(--lls-muted); font-size: .64rem; font-weight: 850; text-align: center; }
.lls-rx-grid > strong { color: var(--lls-gold); font-size: .75rem; }

.lls-rx-grid input,
.lls-measures input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: .56rem;
  border: 1px solid #d8c9ae;
  border-radius: .58rem;
  background: #fff;
  color: var(--lls-ink);
}

.lls-rx-grid input:focus,
.lls-measures input:focus {
  outline: 3px solid rgba(49, 91, 104, .14);
  border-color: var(--lls-blue);
}

.lls-measures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .68rem;
  margin-top: 1rem;
}

.lls-measures label {
  color: var(--lls-ink);
  font-size: .7rem;
  font-weight: 800;
}

.lls-measures label small {
  display: block;
  margin-top: .08rem;
  color: var(--lls-muted);
  font-size: .6rem;
  font-weight: 600;
}

.lls-measures input { display: block; margin-top: .3rem; }

.lls-measure-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .85rem;
}

.lls-measure-help > div {
  padding: .65rem;
  border-radius: .65rem;
  background: #fff;
}

.lls-measure-help strong,
.lls-measure-help span { display: block; }
.lls-measure-help strong { color: var(--lls-gold); font-size: .68rem; }
.lls-measure-help span { margin-top: .15rem; color: var(--lls-muted); font-size: .66rem; line-height: 1.4; }

.lls-file {
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: .6rem;
  padding: 1rem;
  border: 1px dashed var(--lls-gold);
  border-radius: .85rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.lls-file input { max-width: 100%; }
.lls-file span strong,
.lls-file span small { display: block; }
.lls-file span strong { color: var(--lls-ink); font-size: .82rem; }
.lls-file span small { margin-top: .15rem; color: var(--lls-muted); font-size: .67rem; }
.lls-callout,
.lls-note { margin: 0; color: var(--lls-muted); font-size: .82rem; line-height: 1.5; }

.lls-summary-list {
  display: grid;
  gap: 0;
  border-block: 1px solid var(--lls-line);
}

.lls-summary-row {
  padding: .72rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--lls-line);
  font-size: .82rem;
}

.lls-summary-row:last-child { border-bottom: 0; }
.lls-summary-row span { color: var(--lls-muted); }
.lls-summary-row strong { max-width: 65%; text-align: right; }

.lls-total {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.lls-total span { color: var(--lls-muted); font-size: .82rem; }
.lls-total strong { color: var(--lls-ink); font-size: 1.5rem; }

.lls-professional-review {
  margin-top: 1rem;
  padding: .85rem;
  display: grid;
  border-left: 3px solid var(--lls-gold);
  border-radius: 0 .65rem .65rem 0;
  background: var(--lls-gold-soft);
}

.lls-professional-review strong { font-size: .76rem; }
.lls-professional-review span { margin-top: .2rem; color: var(--lls-muted); font-size: .69rem; line-height: 1.45; }

.lls-confirm {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  color: var(--lls-muted);
  font-size: .77rem;
  line-height: 1.45;
  cursor: pointer;
}

.lls-confirm input { margin-top: .18rem; accent-color: var(--lls-gold); }

.lls-error {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid #efc7bf;
  border-radius: .65rem;
  color: #862d25;
  background: #fdf0ed;
  font-size: .8rem;
  font-weight: 750;
}

.lls-navigation {
  margin-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
}

.lls-navigation-note {
  flex: 1;
  color: var(--lls-muted);
  font-size: .66rem;
  text-align: center;
}

.lls-navigation button {
  min-height: 46px;
  padding: .72rem 1.25rem;
  border: 1px solid var(--lls-ink);
  border-radius: 999px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}

.lls-navigation button:hover { transform: translateY(-1px); }
.lls-back { color: var(--lls-ink); background: transparent; }
.lls-next { color: #fff; background: var(--lls-ink); }

form.cart.lls-configurable-form .single_add_to_cart_button { display: none !important; }

form.cart.lls-configurable-form.lls-ready .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: .8rem;
  border-radius: 999px;
  color: #fff;
  background: var(--lls-ink);
}

form.cart.lls-configurable-form.lls-ready .lls-navigation { display: none; }



form.cart.lls-configurable-form.lls-ready .single_add_to_cart_button.lls-needs-attention {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(177, 95, 66, .28);
}

form.cart.lls-configurable-form.lls-ready .single_add_to_cart_button.lls-adding {
  opacity: .68 !important;
  pointer-events: none !important;
  cursor: wait;
}
@media (max-width: 720px) {
  .lls-configurator { padding: 1rem; border-radius: 1rem; }
  .lls-brand-row { align-items: flex-start; }
  .lls-brand-row > span { max-width: 9rem; text-align: right; }
  .lls-intro-grid { grid-template-columns: 1fr; }
  .lls-live-total { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .lls-live-total small { display: none; }
  .lls-progress li { font-size: 0; }
  .lls-progress span { font-size: .66rem; }
  .lls-choices--two,
  .lls-rx-modes { grid-template-columns: 1fr; }
  .lls-rx-modes span { min-height: 62px; }
  .lls-rx-grid { grid-template-columns: 26px repeat(4, minmax(45px, 1fr)); gap: .25rem; }
  .lls-rx-grid input { padding: .35rem; font-size: .74rem; }
  .lls-measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lls-measure-help { grid-template-columns: 1fr; }
  .lls-navigation { flex-wrap: wrap; }
  .lls-navigation-note { order: 3; flex-basis: 100%; }
  .lls-summary-row { display: grid; gap: .22rem; }
  .lls-summary-row strong { max-width: none; text-align: left; }
}

/* El configurador vive dentro de la columna de resumen de WooCommerce.
   Las container queries responden a ese ancho real, no solo al viewport. */
@container (max-width: 620px) {
  .lls-choices--two,
  .lls-rx-modes { grid-template-columns: 1fr; }

  .lls-choice {
    min-height: 0;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    gap: .7rem;
    padding: .95rem;
    align-items: start;
  }

  .lls-check { margin-top: .12rem; }
  .lls-price-tag {
    grid-column: 2;
    white-space: normal;
  }

  .lls-intro-grid { grid-template-columns: 1fr; }
  .lls-live-total {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    text-align: left;
  }
  .lls-live-total small { display: none; }

  .lls-rx-grid {
    grid-template-columns: 24px repeat(4, minmax(42px, 1fr));
    gap: .22rem;
  }
  .lls-rx-grid input { padding: .35rem; font-size: .72rem; }
}

@container (max-width: 430px) {
  .lls-configurator { padding: .85rem; border-radius: .85rem; }
  .lls-brand-row { display: grid; }
  .lls-brand-row > span { max-width: none; text-align: left; }
  .lls-step-heading { grid-template-columns: 1fr; gap: .25rem; }
  .lls-step-heading > span { font-size: .9rem; }
  .lls-measures { grid-template-columns: 1fr; }
  .lls-navigation { display: grid; grid-template-columns: 1fr; }
  .lls-navigation button { width: 100%; }
  .lls-navigation-note { order: 3; }
}


/* Flujo de compra en 4 etapas, inspirado en la claridad de las ópticas internacionales. */
.lls-configurator {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.6rem);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.lls-intro-grid { margin-bottom: 1rem; }
.lls-intro h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important; }
.lls-progress {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 0 0 1.35rem;
  padding: 0;
}
.lls-progress li { min-width: 0; font-size: .72rem; }
.lls-progress li::before { left: calc(-50% + .55rem); width: calc(100% - 1.1rem); }
.lls-progress li:first-child::before { display: none; }
.lls-step { min-height: 0; }
.lls-step-heading { margin-bottom: 1rem; }
.lls-step-heading h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important; }
.lls-choice { border-radius: 3px; padding: .85rem; }
.lls-navigation { position: sticky; bottom: 0; z-index: 4; margin: 1.2rem -1.6rem -1.6rem; padding: .85rem 1.6rem; background: rgba(255,255,255,.96); border-top: 1px solid #ddd; }
.lls-next { border-radius: 999px !important; background: #1f1f1f !important; }
@media (max-width: 680px) {
  .lls-configurator { padding: 1rem; }
  .lls-progress li { font-size: .62rem; }
  .lls-navigation { margin: 1rem -1rem -1rem; padding: .8rem 1rem; }
}


/* Variantes y selección fotocromática del recorrido Providencia. */
.lls-rx-modes--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lls-choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lls-variant-choice-set { display: contents; }
.lls-variant-choice-set[hidden],
.lls-photo-colors[hidden] { display: none !important; }
.lls-photo-colors { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--lls-line); }
.lls-photo-colors h4 { margin: 0 0 .7rem; color: var(--lls-ink); font-size: .9rem; }
.lls-progress li[hidden] { display: none !important; }
@media (max-width: 720px) {
  .lls-rx-modes--four,
  .lls-choices--three { grid-template-columns: 1fr; }
}


/* Selector de ancho de montura propio de Óptica Providencia. */
.lls-progress { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }


@media (max-width: 720px) { .lls-navigation { margin-left: 0; margin-right: 0; } }


/* Escala compacta de compra: producto y configurador visibles en la misma zona. */
@media (min-width: 981px) {
  .single-product .site-main,
  .single-product .content-area { padding-top: 18px !important; padding-bottom: 18px !important; }
  .single-product div.product { grid-template-columns: minmax(0, 55%) minmax(0, 45%) !important; column-gap: 0 !important; align-items: start !important; }
  .single-product .woocommerce-product-gallery { top: 0 !important; bottom: auto !important; min-height: 0 !important; height: clamp(430px, calc(100vh - 300px), 560px) !important; margin: 0 !important; padding: 18px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .single-product .woocommerce-product-gallery__wrapper { width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .single-product .woocommerce-product-gallery__image { width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .single-product .woocommerce-product-gallery img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
  .single-product .summary { padding: 16px 24px !important; margin-bottom: 0 !important; }
  .single-product .lls-configurator { margin: 10px -24px -16px !important; padding: 16px 24px !important; }
  .single-product .lls-intro-grid { grid-template-columns: minmax(0, 1fr) auto !important; gap: 14px !important; margin-bottom: 14px !important; align-items: center !important; }
  .single-product .lls-intro h2 { max-width: 100% !important; white-space: normal !important; font-size: clamp(30px, 2.4vw, 38px) !important; line-height: 1.05 !important; }
  .single-product .lls-intro p { max-width: 34rem !important; font-size: 14px !important; line-height: 1.4 !important; }
  .single-product .lls-live-total { min-width: 150px !important; padding: 10px 12px !important; }
  .single-product .lls-live-total span { font-size: 10px !important; }
  .single-product .lls-live-total strong { font-size: 18px !important; }
  .single-product .lls-live-total small { font-size: 10px !important; }
  .single-product .lls-progress { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 3px !important; margin-bottom: 16px !important; }
  .single-product .lls-progress li { font-size: 11px !important; line-height: 1.2 !important; }
  .single-product .lls-progress span { width: 1.4rem !important; height: 1.4rem !important; margin-bottom: .25rem !important; }
  .single-product .lls-step-heading { margin-bottom: 12px !important; }
  .single-product .lls-step-heading h3 { font-size: 24px !important; line-height: 1.2 !important; }
  .single-product .lls-step-heading p { font-size: 14px !important; line-height: 1.4 !important; }
  .single-product .lls-choice { min-height: 76px !important; padding: 12px !important; border-radius: 6px !important; }
  .single-product .lls-choice-copy strong { font-size: 14px !important; }
  .single-product .lls-choice-copy small { font-size: 12px !important; }
.single-product .lls-navigation { margin-top: 12px !important; padding: 10px 24px !important; }
}

@media (max-width: 980px) {
  .single-product .site-main,
  .single-product .content-area { padding-top: 16px !important; padding-bottom: 16px !important; }
  .single-product .woocommerce-product-gallery { top: 0 !important; bottom: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 10px !important; }
  .single-product .woocommerce-product-gallery__wrapper,
  .single-product .woocommerce-product-gallery__image { height: auto !important; }
  .single-product .woocommerce-product-gallery img { width: auto !important; max-width: 100% !important; max-height: 280px !important; object-fit: contain !important; }
  .single-product .summary { padding: 14px 0 !important; }
  .single-product .lls-configurator { margin: 10px 0 0 !important; padding: 14px 0 !important; }
  .single-product .lls-intro-grid { grid-template-columns: minmax(0, 1fr) auto !important; gap: 10px !important; margin-bottom: 12px !important; }
  .single-product .lls-intro h2 { max-width: 100% !important; white-space: normal !important; font-size: 30px !important; line-height: 1.05 !important; }
  .single-product .lls-intro p { display: block !important; font-size: 14px !important; line-height: 1.4 !important; }
  .single-product .lls-live-total { min-width: 120px !important; padding: 8px 10px !important; align-self: start !important; }
  .single-product .lls-live-total small { display: none !important; }
  .single-product .lls-live-total span { font-size: 9px !important; }
  .single-product .lls-live-total strong { font-size: 16px !important; }
  .single-product .lls-progress { display: flex !important; grid-template-columns: none !important; overflow-x: auto !important; gap: 12px !important; margin-bottom: 16px !important; padding-bottom: 5px !important; scrollbar-width: thin !important; }
  .single-product .lls-progress li { flex: 0 0 auto !important; min-width: 42px !important; font-size: 11px !important; white-space: nowrap !important; }
  .single-product .lls-progress li::before { display: none !important; }
  .single-product .lls-progress span { width: 25px !important; height: 25px !important; margin-bottom: .25rem !important; font-size: 11px !important; }
  .single-product .lls-step-heading { margin-bottom: 12px !important; }
  .single-product .lls-step-heading h3 { font-size: 22px !important; line-height: 1.2 !important; }
  .single-product .lls-step-heading p { font-size: 14px !important; line-height: 1.4 !important; }
  .single-product .lls-choice { min-height: 68px !important; padding: 14px 16px !important; }
  .single-product .lls-choice-copy strong { font-size: 16px !important; }
  .single-product .lls-choice-copy small { font-size: 13px !important; }

.single-product .lls-navigation { margin-left: 0 !important; margin-right: 0 !important; padding: 10px 0 !important; }
}

@media (max-width: 480px) {
  .single-product .lls-intro h2 { font-size: 28px !important; }
}


/* Prioridad final frente a estilos del tema en la ficha de producto. */
@media (min-width: 981px) {
  body.single-product div.product .woocommerce-product-gallery { top: 0 !important; bottom: auto !important; height: clamp(430px, calc(100vh - 300px), 560px) !important; min-height: 0 !important; margin: 0 !important; padding: 18px !important; }
  body.single-product div.product .woocommerce-product-gallery__wrapper { width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  body.single-product div.product .woocommerce-product-gallery__image { display: none !important; width: 100% !important; height: 100% !important; align-items: center !important; justify-content: center !important; }
  body.single-product div.product .woocommerce-product-gallery__image.flex-active-slide { display: flex !important; }
  body.single-product div.product .woocommerce-product-gallery__wrapper:not(:has(.woocommerce-product-gallery__image.flex-active-slide)) > .woocommerce-product-gallery__image:first-child { display: flex !important; }
  body.single-product div.product .woocommerce-product-gallery__image img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
  body.single-product div.product .summary.entry-summary { padding: 16px 24px !important; margin-bottom: 0 !important; }
  body.single-product div.product .summary.entry-summary .lls-configurator { margin: 10px -24px -16px !important; padding: 16px 24px !important; }
  body.single-product div.product .summary.entry-summary .lls-intro h2 { max-width: 100% !important; white-space: normal !important; font-size: clamp(30px, 2.4vw, 38px) !important; line-height: 1.05 !important; }
  body.single-product div.product .summary.entry-summary .lls-intro p { font-size: 14px !important; line-height: 1.4 !important; }
  body.single-product div.product .summary.entry-summary .lls-live-total { min-width: 150px !important; padding: 10px 12px !important; }
  body.single-product div.product .summary.entry-summary .lls-progress { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 3px !important; margin-bottom: 16px !important; }
  body.single-product div.product .summary.entry-summary .lls-progress li { font-size: 11px !important; line-height: 1.2 !important; }
  body.single-product div.product .summary.entry-summary .lls-step-heading h3 { font-size: 24px !important; line-height: 1.2 !important; }
  body.single-product div.product .summary.entry-summary .lls-step-heading p { font-size: 14px !important; line-height: 1.4 !important; }
  body.single-product div.product .summary.entry-summary .lls-choice { min-height: 76px !important; padding: 12px !important; }
  body.single-product div.product .summary.entry-summary .lls-choice-copy strong { font-size: 14px !important; }
  body.single-product div.product .summary.entry-summary .lls-choice-copy small { font-size: 12px !important; }
}
@media (max-width: 980px) {
  body.single-product div.product .woocommerce-product-gallery { top: 0 !important; bottom: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 10px !important; }
  body.single-product div.product .woocommerce-product-gallery__wrapper { height: auto !important; display: block !important; }
  body.single-product div.product .woocommerce-product-gallery__image { display: none !important; width: 100% !important; height: auto !important; }
  body.single-product div.product .woocommerce-product-gallery__image.flex-active-slide { display: block !important; }
  body.single-product div.product .woocommerce-product-gallery__wrapper:not(:has(.woocommerce-product-gallery__image.flex-active-slide)) > .woocommerce-product-gallery__image:first-child { display: block !important; }
  body.single-product div.product .woocommerce-product-gallery__image img { width: auto !important; max-width: 100% !important; max-height: 280px !important; object-fit: contain !important; }
  body.single-product div.product .summary.entry-summary { padding: 14px 0 !important; }
  body.single-product div.product .summary.entry-summary .lls-configurator { margin: 10px 0 0 !important; padding: 14px 0 !important; }
  body.single-product div.product .summary.entry-summary .lls-intro h2 { max-width: 100% !important; white-space: normal !important; font-size: 30px !important; line-height: 1.05 !important; }
  body.single-product div.product .summary.entry-summary .lls-intro p { display: block !important; font-size: 14px !important; line-height: 1.4 !important; }
  body.single-product div.product .summary.entry-summary .lls-live-total { min-width: 120px !important; padding: 8px 10px !important; }
  body.single-product div.product .summary.entry-summary .lls-progress { display: flex !important; grid-template-columns: none !important; overflow-x: auto !important; gap: 12px !important; margin-bottom: 16px !important; }
  body.single-product div.product .summary.entry-summary .lls-progress li { flex: 0 0 auto !important; min-width: 42px !important; font-size: 11px !important; white-space: nowrap !important; }
  body.single-product div.product .summary.entry-summary .lls-step-heading h3 { font-size: 22px !important; line-height: 1.2 !important; }
  body.single-product div.product .summary.entry-summary .lls-step-heading p { font-size: 14px !important; line-height: 1.4 !important; }
  body.single-product div.product .summary.entry-summary .lls-choice { min-height: 68px !important; padding: 14px 16px !important; }
  body.single-product div.product .summary.entry-summary .lls-choice-copy strong { font-size: 16px !important; }
  body.single-product div.product .summary.entry-summary .lls-choice-copy small { font-size: 13px !important; }
}
@media (max-width: 480px) {
  body.single-product div.product .summary.entry-summary .lls-intro h2 { font-size: 28px !important; }
}


@media (min-width: 981px) {
  body.single-product div.product .summary.entry-summary .lls-intro h2 { font-size: 30px !important; }
  body.single-product div.product .woocommerce-product-gallery__image img { transform: none !important; }
}


body.single-product div.product .summary.entry-summary .op-original-color { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }


@media (max-width: 980px) {
  body.single-product div.product .woocommerce-product-gallery__wrapper { width: 100% !important; max-width: 100% !important; height: 280px !important; }
  body.single-product div.product .woocommerce-product-gallery__image,
  body.single-product div.product .woocommerce-product-gallery__image > a { width: 100% !important; max-width: 100% !important; height: 280px !important; }
  body.single-product div.product .woocommerce-product-gallery__image img { width: auto !important; max-width: 100% !important; max-height: 280px !important; margin: auto !important; transform: none !important; }
  body.single-product div.product .summary.entry-summary .lls-intro-grid { grid-template-columns: 1fr !important; }
  body.single-product div.product .summary.entry-summary .lls-live-total { width: 100% !important; min-width: 0 !important; }
}


@media (max-width: 480px) {
  body.single-product div.product .woocommerce-product-gallery { height: 240px !important; }
  body.single-product div.product .woocommerce-product-gallery__wrapper,
  body.single-product div.product .woocommerce-product-gallery__image,
  body.single-product div.product .woocommerce-product-gallery__image > a { height: 220px !important; }
  body.single-product div.product .woocommerce-product-gallery__image img { max-height: 220px !important; }
}


/* Corrige el ancho heredado del select nativo oculto de variaciones. */
body.single-product div.product .summary.entry-summary .op-original-color {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}


.lls-configurator .lls-variation-error {
  margin: .65rem 0 0;
  padding: .55rem .7rem;
  border: 1px solid #efc7bf;
  border-radius: .55rem;
  color: #862d25;
  background: #fdf0ed;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.4;
}

.lls-configurator .lls-variation-error[hidden] { display: none !important; }
.lls-configurator .lls-attribute-needs-attention .op-color-swatch { box-shadow: 0 0 0 2px rgba(134, 45, 37, .3); }
