/* Product extras use the same proportions as the fitted-sheet option. */
.rys-emb-option{flex:0 0 100%;width:100%;margin:0;border:1px solid var(--line);border-radius:28px;overflow:hidden}
.woocommerce div.product form.cart:has(.rys-emb-option) .woocommerce-variation-add-to-cart,.woocommerce div.product form.cart:not(.variations_form):has(.rys-emb-option){row-gap:16px}
.woocommerce div.product form.cart:has(.rys-emb-option) .fitted-option{margin:0}
.rys-emb-option [hidden],.rys-emb-editor [hidden]{display:none!important}
.rys-emb-option .fitted-toggle{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-height:50px;margin:0;padding:14px 18px;border:0;border-radius:0;cursor:pointer;font-size:12px;transition:background .25s}
.rys-emb-option.is-open .fitted-toggle{background:var(--cream)}
.rys-emb-option .fitted-toggle>span{margin-left:auto;white-space:nowrap}
.rys-emb-option .fitted-toggle input[type=checkbox]{appearance:none;display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;padding:0;margin:0;border:1px solid #b9b9af;border-radius:50%;background:#fff;box-shadow:none}
.rys-emb-option .fitted-toggle input:checked:after{content:'';width:8px;height:8px;border-radius:50%;background:var(--ink)}
#rys-emb-controls{padding:16px 18px 18px;border-top:1px solid var(--line)}
.rys-emb-option [data-emb-product-summary]{font-size:12px;line-height:1.6;margin:12px 0 0}
.rys-emb-option [data-emb-product-summary]:empty{display:none}
.rys-emb-option #rys-emb-controls .button{min-height:46px;font-size:13px;padding:12px 22px;border:0;border-radius:30px;background:var(--cream);color:var(--ink)}

/* An edge-attached panel with the theme's serif headings and pinned footer. */
dialog.rys-emb-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:#fff;color:var(--ink);overflow:hidden}
dialog.rys-emb-drawer[open]{display:flex;flex-direction:column}
.rys-emb-drawer .dialog-head{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0;padding:26px 30px;border-bottom:1px solid var(--line)}
.rys-emb-drawer .dialog-head h2{font:400 36px/1.1 var(--serif);margin:0}
.rys-emb-drawer .dialog-head [data-close]{flex:0 0 42px;background:#fff}
.rys-emb-drawer>.rys-emb-editor{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 30px;scrollbar-width:thin;scrollbar-color:#b8b6aa #f6f5f0}
.rys-emb-drawer>.rys-emb-editor::-webkit-scrollbar{width:7px}
.rys-emb-drawer>.rys-emb-editor::-webkit-scrollbar-track{background:#f6f5f0}
.rys-emb-drawer>.rys-emb-editor::-webkit-scrollbar-thumb{background:#b8b6aa;border:2px solid #f6f5f0;border-radius:20px}
.rys-emb-footer{flex-shrink:0;padding:20px 30px max(20px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.rys-emb-footer .rys-emb-save{display:block;width:100%;min-height:54px;margin:0;padding:15px 22px;border:0;border-radius:30px;background:var(--cream);color:var(--ink);font:400 15px/1.5 var(--sans);text-align:center;cursor:pointer;transition:background .25s,color .25s}
.rys-emb-footer .rys-emb-save:hover,.rys-emb-option #rys-emb-controls .button:hover{background:#e4e3db;color:var(--ink)}
.rys-emb-editor{font:400 14px/1.65 var(--sans);color:var(--ink)}
.rys-emb-editor [data-emb-body]>p:first-child{margin:0 0 24px;color:var(--muted)}
.rys-emb-piece{min-width:0;margin:0 0 14px;padding:0;border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden;transition:border-color .2s}
.rys-emb-piece.is-selected{border-color:#b8b6aa}
.rys-emb-piece-toggle{display:flex;align-items:center;gap:12px;min-height:66px;margin:0;padding:16px 20px;cursor:pointer;transition:background .2s}
.rys-emb-piece-toggle>span{font:400 25px/1.2 var(--serif)}
.rys-emb-piece.is-selected>.rys-emb-piece-toggle{background:var(--cream)}
.rys-emb-editor input[type=checkbox]{appearance:none;-webkit-appearance:none;display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;margin:0;padding:0;border:1px solid #b9b9af;border-radius:50%;background:#fff;box-shadow:none;cursor:pointer}
.rys-emb-editor input[type=checkbox]::after{content:'';width:9px;height:9px;border-radius:50%;background:var(--ink);transform:scale(0);transition:transform .2s}
.rys-emb-editor input[type=checkbox]:checked::after{transform:scale(1)}
.rys-emb-editor :focus-visible,.rys-emb-option :focus-visible,.rys-emb-footer :focus-visible{outline:2px solid #969486;outline-offset:3px}
.rys-emb-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;padding:20px;border-top:1px solid var(--line)}
.rys-emb-editor .is-animating,#rys-emb-controls.is-animating{min-height:0;overflow:hidden}
.rys-emb-fields label{display:flex;flex-direction:column;gap:8px;min-width:0;font:400 12px/1.5 var(--sans);color:var(--ink)}
.rys-emb-editor .rys-emb-fields input,.rys-emb-editor .rys-emb-fields select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:50px;margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:28px;background:#fff;color:var(--ink);font:400 16px/1.4 var(--sans);box-shadow:none;transition:border-color .2s}
.rys-emb-editor .rys-emb-fields input:focus,.rys-emb-editor .rys-emb-fields select:focus{border-color:#8b897f;outline:none}
.rys-emb-fields input::placeholder{color:var(--muted);opacity:1}
.rys-emb-wide{grid-column:1/-1}
.rys-emb-editor .rys-emb-rate{font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.rys-emb-editor [data-emb-body]>.rys-emb-rate{margin:0 0 24px}
.rys-emb-total:empty{display:none}
.rys-emb-editor .rys-emb-total{margin:24px 0 12px;padding-top:20px;border-top:1px solid var(--line);font-size:14px;font-weight:500}
.rys-emb-editor .rys-emb-help{margin:20px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}
.rys-emb-error{background:#fff1ed;border:1px solid #e8d3c9;border-radius:14px;padding:14px 16px;color:#963b2a;font-size:13px}
.rys-tailoring .rys-emb-editor{margin:24px 0}
.rys-emb-master{display:flex;align-items:center;gap:10px;min-height:52px;padding:14px 18px;border:1px solid var(--line);border-radius:28px;cursor:pointer}
.rys-tailoring .rys-emb-editor [data-emb-body]{margin-top:22px}
.rys-emb-editor [data-emb-empty]{margin:14px 0;font-size:13px;color:var(--muted)}
@media(max-width:600px){
 .rys-emb-drawer .dialog-head{padding:22px 20px;gap:12px}.rys-emb-drawer .dialog-head h2{font-size:29px}
 .rys-emb-drawer>.rys-emb-editor{padding:22px 20px}.rys-emb-footer{padding:16px 20px max(16px,env(safe-area-inset-bottom))}
 .rys-emb-piece-toggle{min-height:60px;padding:15px 16px}.rys-emb-piece-toggle>span{font-size:24px}
 .rys-emb-fields{padding:18px 16px;gap:16px 10px}.rys-emb-editor .rys-emb-fields input,.rys-emb-editor .rys-emb-fields select{padding:12px}
 .rys-emb-option .fitted-toggle{padding:13px;font-size:11px}#rys-emb-controls{padding:14px 13px}
}
@media(max-width:360px){.rys-emb-fields{grid-template-columns:1fr}.rys-emb-drawer .dialog-head h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.rys-emb-fields{animation:none}.rys-emb-piece,.rys-emb-piece-toggle,.rys-emb-editor input,.rys-emb-editor input::after,.rys-emb-editor select,.rys-emb-option .fitted-toggle,.rys-emb-footer .rys-emb-save{transition:none}}
