.op-earmuffs-draft{--op-accent:#dc6034;--op-ink:#21140e;--op-line:#e0e2e7;color:var(--op-ink);margin:20px 0 24px;font:inherit;width:100%;box-sizing:border-box}
.op-earmuffs-draft *{box-sizing:border-box}
body.postid-197 .wp-block-post-excerpt,body.postid-197 .woocommerce-product-details__short-description{display:none!important}
.op-earmuffs-draft [hidden]{display:none!important}
.op-ed-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#f7f2ee;border:1px solid #e9e4e0;border-radius:12px;padding:5px;margin-bottom:20px}
.op-ed-tabs button{font:inherit;font-weight:700;font-size:15px;line-height:1.2;border:0;border-radius:8px;background:transparent;color:var(--op-ink);min-height:48px;padding:10px 6px;cursor:pointer}
.op-ed-tabs button[aria-selected=true]{background:var(--op-accent);color:#fff}
.op-earmuffs-draft button:focus-visible,.op-ed-panel:focus-visible{outline:2px solid var(--op-ink);outline-offset:3px}
.op-ed-design-label{margin:0 0 .65rem!important;font-size:14px!important;line-height:1.5;color:#625b56}
.op-ed-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:8px;margin-bottom:16px}
.op-ed-swatch{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;min-height:44px;padding:3px;border:1px solid #dedbd7;border-radius:10px;background:#fff;cursor:pointer;overflow:visible;font:inherit;color:var(--op-ink)}
.op-ed-swatch img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:7px}
.op-ed-swatch[aria-pressed=true]{border:2px solid var(--op-accent);padding:2px;box-shadow:0 0 0 2px #dc603420}
.op-ed-placeholder{display:flex;align-items:center;justify-content:center;background:#f7f4f1;color:#736960;width:100%;aspect-ratio:1;border-radius:7px;line-height:1.2;font-size:10px;font-weight:600;padding:3px;overflow-wrap:anywhere}
.op-ed-badge{position:absolute;top:-5px;right:-5px;min-width:21px;height:21px;padding:0 4px;display:grid;place-items:center;border-radius:50%;background:var(--op-accent);color:var(--op-ink);font:700 12px/1 sans-serif}
.op-ed-detail{border:1px solid var(--op-line);border-radius:.65rem;overflow:hidden}
.op-ed-detail table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;font-size:13px}
.op-ed-detail th,.op-ed-detail td{border:0;text-align:center;padding:10px 5px;vertical-align:middle;background:#fff}
.op-ed-detail th{background:#f6f6f7;color:#6f6c68;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;padding:6px 4px}
.op-ed-detail th:last-child{width:132px}
.op-ed-detail td{border-top:1px solid var(--op-line);height:68px;font-weight:600}
.op-ed-price{font-size:15px}
.op-ed-controls{display:flex;align-items:center;justify-content:center;min-height:44px}
.op-ed-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:90px;min-height:44px;padding:.35rem .85rem;border:1px solid var(--op-accent);border-radius:999px;background:var(--op-accent);color:var(--op-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.op-ed-add:before{content:'';width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l3 13h11l3-9H6'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='18' cy='21' r='1'/%3E%3C/svg%3E") center/contain no-repeat}
.op-ed-stepper{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px}
.op-ed-stepper button{flex:0 0 44px;width:44px;height:44px;border:1px solid var(--op-accent);border-radius:50%;background:#fff;color:var(--op-ink);font:inherit;font-size:22px;cursor:pointer;padding:0}
.op-ed-stepper button:last-child{background:var(--op-accent)}
.op-ed-stepper output{width:24px;min-width:24px;text-align:center;font-size:14px;font-weight:700;background:#f6f6f7;border-radius:5px}
.op-ed-summary{padding-top:14px;margin-top:4px;font-size:13px}
.op-ed-summary>strong{font-size:13px}
.op-ed-count{font-weight:400;color:#766b64}
.op-ed-summary ul{padding:0;margin:8px 0 0;list-style:none!important;display:grid;gap:10px}
.op-ed-summary li{font-size:13px;color:var(--op-ink);margin:0}
.op-ed-summary-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;line-height:1.5}
.op-ed-summary-line>strong{font-size:13px;flex-shrink:0}
.op-ed-summary-line>span{text-align:right;font-size:12px;color:#625952;font-variant-numeric:tabular-nums}
.op-ed-summary-photos{display:flex;flex-wrap:wrap;gap:7px;margin-top:5px}
.op-ed-summary-design{display:flex;align-items:center;gap:4px;min-height:44px;min-width:44px;padding:3px 6px 3px 3px;border:1px solid #e5dfda;border-radius:8px;background:#fff;color:var(--op-ink);font:inherit;font-size:11px;font-weight:600;line-height:1.2;cursor:pointer}
.op-ed-summary-design img{display:block;width:32px;height:32px;object-fit:contain;border-radius:4px}
.op-ed-summary-design span{font-size:11px;font-weight:600;white-space:nowrap}
.op-ed-draft-note{font-size:12px!important;color:#857a72;margin:16px 0 12px!important;line-height:1.6}
.op-ed-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.op-ed-actions button{font:inherit;font-size:15px;font-weight:700;min-height:48px;border-radius:10px;border:1px solid #e1d5cd;background:#faf7f4;color:#95847b;cursor:not-allowed}
.op-ed-actions button:last-child{background:#e8c6b9;border-color:#e8c6b9;color:#796158}
@media(max-width:359px){.op-ed-tabs button{font-size:13px}.op-ed-swatches{gap:6px}.op-ed-placeholder{font-size:9px}.op-ed-detail th:last-child{width:128px}}


.op-ed-add:disabled{min-width:90px;padding:.35rem .5rem;font-size:11px;background:#f2efed;border-color:#ded8d3;color:#79716c;cursor:not-allowed}
.op-ed-add:disabled:before{display:none}
.op-ed-stepper button:disabled{opacity:.45;cursor:not-allowed}
.op-ed-actions button:not(:disabled){border-color:var(--op-accent);background:#fff;color:var(--op-accent);cursor:pointer}
.op-ed-actions button:last-child:not(:disabled){background:var(--op-accent);color:#fff}
.op-ed-total{display:flex;justify-content:space-between;gap:10px;font-weight:700;font-size:15px;margin:12px 0;padding-top:10px;border-top:1px solid var(--op-line)}
body.postid-197 .woocommerce-product-gallery__image a{cursor:default}

/* Keep the saved gallery photos in a slim, scrollable left rail. */
body.postid-197 .woocommerce-product-gallery.onno-gallery-has-thumbs{--op-ed-thumb:64px;--op-ed-rail-gap:12px;position:relative;box-sizing:border-box;width:100%!important;padding-left:calc(var(--op-ed-thumb) + var(--op-ed-rail-gap));margin:0!important}
body.postid-197 .woocommerce-product-gallery .flex-viewport{width:100%;min-width:0;border-radius:12px;background:#fff}
body.postid-197 .woocommerce-product-gallery .flex-control-thumbs{position:absolute!important;inset:0 auto 0 0;width:var(--op-ed-thumb)!important;height:100%;max-height:100%;display:flex!important;flex-direction:column;gap:8px;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;margin:0!important;padding:0!important;list-style:none}
body.postid-197 .woocommerce-product-gallery .flex-control-thumbs li{float:none!important;flex:0 0 auto;width:100%!important;margin:0!important;padding:0!important;line-height:0}
body.postid-197 .woocommerce-product-gallery .flex-control-thumbs img{display:block;box-sizing:border-box;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:contain;border:1px solid #dfd9d3;border-radius:8px;background:#fff;padding:2px;opacity:.7}
body.postid-197 .woocommerce-product-gallery .flex-control-thumbs img.flex-active{border:2px solid #dc6034;opacity:1;padding:1px}
body.postid-197 .woocommerce-product-gallery .flex-control-thumbs img:focus-visible{outline:2px solid #21140e;outline-offset:-3px;opacity:1}
.op-ed-gallery-column{position:sticky;top:var(--op-ed-sticky-top,100px);align-self:flex-start}
@media(max-width:781px){
  .op-ed-product-layout{display:block!important}
  .op-ed-gallery-column{display:contents;position:static}
  body.postid-197 .op-ed-gallery-block{position:sticky;top:calc(var(--op-ed-sticky-top,88px) - 8px);z-index:20;margin:0!important;padding:6px 0 10px;background:#faf9f6;border-bottom:1px solid #e9e4df}
  .op-ed-options-column{margin-top:16px!important}
  body.postid-197 .woocommerce-product-gallery.onno-gallery-has-thumbs{--op-ed-thumb:44px;--op-ed-rail-gap:8px}
  body.postid-197 .woocommerce-product-gallery .flex-control-thumbs{gap:6px}
  body.postid-197 .woocommerce-product-gallery .flex-viewport,
  body.postid-197 .woocommerce-product-gallery .woocommerce-product-gallery__image{height:var(--op-ed-photo-height,260px)!important;max-height:34vh}
  body.postid-197 .woocommerce-product-gallery .woocommerce-product-gallery__image a{display:block;height:100%}
  body.postid-197 .woocommerce-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%!important;height:100%!important;object-fit:contain;object-position:center}
}


/* v1.4.1: design-first size rows with direct quantity controls. */
.op-earmuffs-draft .op-ed-panel{outline:none!important;border:0;box-shadow:none}
.op-earmuffs-draft .op-ed-size-options{margin:0 0 16px}
.op-earmuffs-draft .op-ed-size-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:10px 0;border-bottom:1px solid #e8e2dd;scroll-margin-top:calc(var(--op-ed-sticky-top,88px) + var(--op-ed-photo-height,260px) + 24px)}
.op-earmuffs-draft .op-ed-size-row:last-child{border-bottom:0}
.op-earmuffs-draft .op-ed-size-label{display:block;font-size:15px;line-height:1.4;font-weight:700}
.op-earmuffs-draft .op-ed-size-price{display:block;color:#6b615b;font-size:13px;line-height:1.4;margin-top:2px}
.op-earmuffs-draft .op-ed-size-row .op-ed-controls{width:124px;flex:0 0 124px;justify-content:flex-end;min-height:44px}
.op-earmuffs-draft .op-ed-size-row .op-ed-add{min-height:44px;min-width:94px;padding:8px 16px;gap:0;font-size:14px}
.op-earmuffs-draft .op-ed-size-row .op-ed-add:before{display:none!important;content:none!important}
.op-earmuffs-draft .op-ed-size-row .op-ed-add:disabled{font-size:11px}
.op-earmuffs-draft .op-ed-size-row .op-ed-stepper{gap:4px}
.op-earmuffs-draft .op-ed-size-row .op-ed-stepper button{width:44px;height:44px;flex:0 0 44px}
.op-earmuffs-draft .op-ed-size-row .op-ed-stepper output{width:28px;min-width:28px;font-size:16px;background:transparent}
.op-earmuffs-draft .op-ed-summary{border:0;box-shadow:none;background:transparent;padding-top:4px}
@media(max-width:359px){.op-earmuffs-draft .op-ed-size-label{font-size:14px}}
/* Reserve the gallery rail and photo area before FlexSlider creates its viewport. */
body.postid-197 .op-ed-gallery-block{container-type:inline-size}
@media(min-width:782px){
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery,
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery .flex-viewport,
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery .woocommerce-product-gallery__image{height:calc(100cqw - 76px)!important}
  body.postid-197 .woocommerce-product-gallery .woocommerce-product-gallery__image a{display:block;height:100%}
  body.postid-197 .woocommerce-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%!important;height:100%!important;object-fit:contain}
}
body.postid-197 .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child){display:none}
@media(max-width:781px){
  body.postid-197 .op-ed-gallery-block{container-type:inline-size;width:100%!important;max-width:none!important}
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery{height:min(calc(100cqw - 52px),34vh,300px)!important}
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery .flex-viewport,
  body.postid-197 .op-ed-gallery-block .woocommerce-product-gallery .woocommerce-product-gallery__image{height:min(calc(100cqw - 52px),34vh,300px)!important}
}
