/* Add-on options — personalisation, foil, gift wrapping.
   Uses the design tokens already defined in style.css so the fields sit with
   the variation dropdowns rather than looking bolted on. */

.lc-opts{
  display:flex;flex-direction:column;gap:clamp(14px,1.8vw,20px);
  margin:0 0 22px;
}
.lc-opt{display:flex;flex-direction:column;gap:7px;}
/* Mirrors the variation label ("Colour") rendered a few rows up by
   WooCommerce, so the add-on rows read as part of the same form rather than a
   separate widget bolted underneath. */
.lc-opt__label{
  font-family:var(--lc-body);font-size:17px;font-weight:700;
  color:var(--lc-charcoal);letter-spacing:normal;text-transform:none;
}
/* Deliberately no border, padding, font or background here.
   A bare <select> already inherits the theme's control styling — including the
   chevron, which the theme paints as a background-image. Restating any of it,
   and the `background` shorthand above all, wipes that image and leaves a
   dropdown that reads as a text box next to WooCommerce's own variation
   selects. Inherit the chrome; only set layout. */
.lc-opt__select{width:100%;max-width:100%;}
.lc-opt__input{
  width:100%;resize:vertical;min-height:64px;line-height:1.5;
}
.lc-opt__select:disabled,
.lc-opt__input:disabled{opacity:.45;cursor:not-allowed;}

.lc-opt__text{display:flex;flex-direction:column;gap:7px;margin-top:4px;}
.lc-opt__help{
  font-family:var(--lc-body);font-size:12.5px;line-height:1.55;
  color:#7C6A57;margin:0;max-width:46ch;
}
.lc-opt__count{
  font-family:var(--lc-body);font-size:11.5px;color:var(--lc-sage);
  align-self:flex-end;font-variant-numeric:tabular-nums;letter-spacing:.04em;
}
/* Too short is a warning, not an error: they are still typing. */
.lc-opt__count.is-short{color:var(--lc-tan);}
.lc-opt__count.is-ok{color:var(--lc-sage);}

.lc-opts__total{
  font-family:var(--lc-body);font-size:14px;font-weight:700;
  color:var(--lc-leather);margin:2px 0 0;font-variant-numeric:tabular-nums;
}
.lc-opts__total span{font-weight:400;color:#7C6A57;}

/* A group switched off by another choice stays visible but inert, so the page
   does not jump and the customer can see what selecting differently unlocks. */
.lc-opt.is-off,.lc-opt__text.is-off{opacity:.5;}
.lc-opt.is-off .lc-opt__text.is-off{opacity:1;}

@media (prefers-reduced-motion:reduce){
  .lc-opt__select,.lc-opt__input{transition:none;}
}

/* Sample picture for the chosen option (e.g. font style) */
.lc-opt__preview{margin:.6rem 0 0;max-width:220px;}
.lc-opt__preview img{display:block;width:100%;height:auto;border:1px solid var(--lc-blush,#E8D5C0);border-radius:6px;background:#fff;}
.lc-opt__preview[hidden]{display:none;}
