.jessy-lithophane [hidden] { display: none !important; }
.jessy-lithophane { display: grid; gap: .75rem; margin-block: 1rem; }
.jessy-lithophane label { display: block; margin-block: .45rem; }
.jessy-lithophane label > select, .jessy-lithophane label > input:not([type=checkbox]) { display: block; width: 100%; }
.jessy-lithophane select { min-height: 44px; }
.jessy-lithophane [data-preview] { display: block; width: 50%; height: auto; max-width: 16rem; cursor: grab; touch-action: none; border-radius: .4rem; background: #f5efe9; }
.jessy-lithophane [data-swatches] { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .45rem min(.45rem, 2%); max-width: 26.1rem; margin-block: .5rem; }
.jessy-lithophane [data-swatches] button { width: 100%; min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid #746965; border-radius: 50%; background: var(--jl-swatch); }
.jessy-lithophane [data-color-name], .jessy-lithophane [data-crop-help], .jessy-lithophane #jl-mount-help { margin: 0; font-size: .875em; }
.jessy-lithophane [aria-pressed=true] { outline: 2px solid currentColor; outline-offset: 2px; }
.jessy-lithophane [data-price] { font-weight: bold; margin: 0; }
.jessy-lithophane [data-stand-preview] { padding: .8rem; background: #f5efe9; border-radius: .5rem; }
.jessy-lithophane [data-stand-preview] h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.jessy-lithophane [data-stand-canvas] { display:block; width:100%; max-width:32rem; height:420px; touch-action:none; cursor:grab; border-radius:.4rem; }
.jessy-lithophane [data-stand-status] { font-size:.875em; margin:.6rem 0 0; }
.jessy-workbench { max-width: 62rem; margin: 2rem auto; padding: 1rem; color: #332724; font: 16px/1.5 system-ui, sans-serif; }
.jessy-workbench img, .jessy-workbench canvas { display: block; width: auto; max-width: 100%; max-height: 420px; }
.jessy-workbench section { padding: 1rem; background: #f6f1ea; border-radius: .5rem; }
.jessy-workbench button { margin-block: .5rem; padding: .55rem .7rem; }
.jessy-lithophane-gallery [hidden] { display: none !important; }
.wp-block-woocommerce-product-image-gallery .jessy-lithophane-gallery { width: 100%; float: none; }
.jessy-lithophane-gallery figure { margin: 0 0 .75rem; aspect-ratio: 1; background: #f5efe9; }
.jessy-lithophane-gallery figure img, .jessy-lithophane-gallery figure canvas { width: 100%; height: 100%; object-fit: contain; }
.jessy-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(45px, 1fr)); gap: .4rem; margin-top: .65rem; }
.jessy-gallery-thumbs button { padding: .2rem; background: transparent; border: 1px solid #b89989; }
.jessy-lithophane-gallery button[aria-pressed=true] { outline: 2px solid currentColor; }
@media (max-width: 600px) {
  .jessy-lithophane [data-swatches] { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 8px; max-width: none; }
  .jessy-lithophane button { min-height: 44px; padding: .5rem .7rem; font-size: 14px; }
  .jessy-lithophane [data-swatches] button { padding: 0; min-height: 44px; }
  .jessy-lithophane input[type=range] { height: 44px; margin-block: 0; }
  .jessy-lithophane [data-preview] { width: 100%; max-width: 100%; }
  .jessy-lithophane fieldset { min-width: 0; }
  .jessy-lithophane [data-view-buttons], .jessy-lithophane [data-view-buttons] + div { max-width: 100%; }
  .jessy-lithophane [data-stand-canvas] { height: 330px; }
  .jessy-lithophane select, .jessy-lithophane input[type=number] { font-size: 16px; }
  .jessy-lithophane-gallery [data-gallery-light] { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
  .jessy-lithophane-gallery [data-gallery-light] button { min-height: 44px; min-width: 80px; padding: .5rem .8rem; font-size: 14px; }
  .jessy-gallery-thumbs button { min-height: 44px; }
}
