body.cpg-options-open { overflow:hidden; }
dialog.cpg-options { --cpg-ink:#243247; --cpg-muted:#596579; --cpg-line:#dce1e9; --cpg-red:#c40805; --cpg-brand:#3d4d63; color:var(--cpg-ink); background:#fff; border:1px solid var(--cpg-line); border-radius:26px; padding:0; width:min(860px,calc(100vw - 32px)); max-width:none; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); margin:auto; box-shadow:0 24px 90px #17243438; overflow:hidden; }
dialog.cpg-options::backdrop { background:rgb(22 35 52 / 42%); backdrop-filter:blur(3px); }
.cpg-options[open] { animation:cpg-options-in .2s ease-out; }
.cpg-options *, .cpg-options *::before, .cpg-options *::after { box-sizing:border-box; }
.cpg-options form { display:flex; flex-direction:column; width:100%; max-height:calc(100vh - 34px); max-height:calc(100dvh - 34px); margin:0; }
.cpg-options [hidden] { display:none!important; }
.cpg-options .cpg-options-header { display:flex; flex:none; align-items:center; justify-content:space-between; gap:20px; padding:22px 26px; border-bottom:1px solid var(--cpg-line); }
.cpg-options h2 { font-size:24px; line-height:1.2; margin:0; color:var(--cpg-ink); }
.cpg-options h2:focus { outline:none; }
.cpg-options h3 { font-size:21px; line-height:1.3; margin:0 0 6px; color:var(--cpg-ink); }
.cpg-options button { font:inherit; cursor:pointer; }
.cpg-options button:disabled { cursor:wait; opacity:.55; }
.cpg-options .cpg-options-close, .cpg-options-quantity button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--cpg-brand); color:#fff; }
.cpg-options .cpg-options-close { background:#eef0f4; color:var(--cpg-brand); }
.cpg-options svg { width:22px; height:22px; flex:none; }
.cpg-options .cpg-options-body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:24px 26px; }
.cpg-options-product { display:flex; align-items:center; gap:20px; margin-bottom:24px; }
.cpg-options .cpg-options-product > img { width:112px; height:112px; object-fit:contain; flex:none; border-radius:12px; }
.cpg-options-product > div { min-width:0; }
.cpg-options-product p { margin:0 0 6px; color:var(--cpg-muted); font-size:13px; }
.cpg-options-product > div > span { display:block; font-weight:700; }
.cpg-options-product a { display:inline-block; margin-top:8px; color:var(--cpg-brand); font-size:13px; text-decoration:underline; }
.cpg-options-rental { background:#f5f7fa; border-radius:12px; padding:14px 16px; color:var(--cpg-muted); font-size:13px; line-height:1.6; }
.cpg-options .cpg-options-group { min-width:0; border:0; padding:0; margin:24px 0 0; }
.cpg-options .cpg-options-group legend { font-size:18px; font-weight:700; padding:0; width:100%; color:var(--cpg-ink); }
.cpg-options-group legend > span { display:inline-block; padding:4px 9px; margin-left:8px; border-radius:20px; background:#f0f2f5; color:var(--cpg-muted); font-size:11px; vertical-align:middle; font-weight:600; }
.cpg-options-group[data-required="1"] legend > span { color:#a30907; background:#fff0ee; }
.cpg-options-instruction { margin:6px 0 12px; font-size:13px; color:var(--cpg-muted); }
.cpg-options .cpg-options-reset-group { border:0; background:none; padding:0; margin-left:12px; color:var(--cpg-brand); font-size:12px; text-decoration:underline; }
.cpg-options-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cpg-options-choice { display:flex; align-items:center; gap:12px; padding:14px; min-height:88px; border:1px solid var(--cpg-line); border-radius:16px; cursor:pointer; transition:background-color .15s,border-color .15s; }
.cpg-options-choice.is-selected { border-color:var(--cpg-red); background:#fff8f7; box-shadow:inset 0 0 0 1px var(--cpg-red); }
.cpg-options-choice:has(input:focus-visible) { outline:2px solid #3271ae; outline-offset:2px; }
.cpg-options-choice:only-child { grid-column:1/-1; }
.cpg-options .cpg-options-choice input { width:20px; height:20px; flex:0 0 20px; margin:0; accent-color:var(--cpg-red); }
.cpg-options .cpg-options-choice img { width:64px; height:64px; object-fit:contain; border-radius:6px; flex:none; }
.cpg-options-choice-copy { min-width:0; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.cpg-options-choice-copy > span, .cpg-options-choice-copy > strong { display:block; }
.cpg-options-choice-copy > strong { margin-top:6px; font-size:13px; color:var(--cpg-brand); }
.cpg-options .woocommerce-Price-amount, .cpg-options .woocommerce-Price-currencySymbol { font-size:inherit!important; font-weight:inherit; color:inherit; }
.cpg-options .cpg-options-footer { flex:none; padding:18px 26px 22px; border-top:1px solid var(--cpg-line); background:#fff; box-shadow:0 -4px 18px #24324705; }
.cpg-options-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.cpg-options-total-label { display:block; font-size:13px; color:var(--cpg-muted); }
.cpg-options-total { display:block; font-size:26px; line-height:1.4; font-weight:700; }
.cpg-options-quantity { display:flex; align-items:center; gap:8px; }
.cpg-options-quantity button[data-options-step="1"] { background:var(--cpg-red); }
.cpg-options .cpg-options-quantity input { width:48px; height:44px; padding:0; border:0; background:#fff; color:var(--cpg-ink); text-align:center; font-size:18px; font-weight:700; appearance:textfield; -moz-appearance:textfield; }
.cpg-options-quantity input::-webkit-inner-spin-button, .cpg-options-quantity input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.cpg-options .cpg-options-submit { display:flex; align-items:center; justify-content:center; gap:12px; border:0; border-radius:14px; background:var(--cpg-red); color:#fff; padding:16px 20px; width:100%; min-height:54px; font-size:16px; font-weight:700; }
.cpg-options-error, .cpg-options-group-error { color:#b51916; font-size:13px; margin:8px 0 12px; }
.cpg-options-group[aria-invalid="true"] .cpg-options-choice { border-color:#c40805; background:#fff8f7; }
.cpg-options-group[aria-invalid="true"] .cpg-options-choice:has(input:focus-visible) { outline:none; box-shadow:inset 0 0 0 1px #c40805; }
@keyframes cpg-options-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:600px) {
  dialog.cpg-options { width:100%; max-height:94vh; max-height:94dvh; border-radius:24px 24px 0 0; margin:auto 0 0; border-bottom:0; }
  .cpg-options form { max-height:94vh; max-height:94dvh; }
  .cpg-options .cpg-options-header { padding:16px 18px; }
  .cpg-options h2 { font-size:20px; }
  .cpg-options h3 { font-size:18px; }
  .cpg-options .cpg-options-body { padding:18px; }
  .cpg-options .cpg-options-product > img { width:80px; height:80px; }
  .cpg-options-product { gap:14px; }
  .cpg-options-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .cpg-options .cpg-options-footer { padding:14px 18px max(18px,env(safe-area-inset-bottom)); }
  .cpg-options-total { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { .cpg-options[open] { animation:none; } .cpg-options-choice { transition:none; } }
