/* Checkout A3 previews only; WooCommerce still owns its rows and payment controls. */
.cd-line-preview-button{display:block;margin:.7rem 0 .2rem;padding:.55rem .8rem;border:1px solid #547335;border-radius:5px;background:#f3ebdc;color:#172117;font:600 14px/1.35 Arial,sans-serif;text-align:left;cursor:pointer;max-width:100%}
.cd-line-preview-button:hover{background:#e8f1d8}
.cd-line-preview-button:focus-visible,.cd-checkout-preview-close:focus-visible{outline:3px solid #547335;outline-offset:3px}
.cd-checkout-preview-dialog{width:min(1190px,calc(100vw - 32px));padding:clamp(16px,3vw,32px);border:0;border-radius:12px;background:#f3ebdc;color:#101611;box-shadow:0 20px 90px #0005}
.cd-checkout-preview-dialog::backdrop{background:#101611b8;backdrop-filter:blur(5px)}
.cd-checkout-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.cd-checkout-preview-heading h2{margin:0;font-size:clamp(25px,3vw,38px);line-height:1.15}
.cd-checkout-preview-eyebrow{margin:0 0 6px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.cd-checkout-preview-close{flex:none;width:44px;height:44px;display:grid;place-items:center;border:1px solid #647258;border-radius:50%;background:#101611;color:#f3ebdc;font:32px/1 Arial,sans-serif;cursor:pointer}
.cd-checkout-preview-note{margin:16px 0;font-size:15px;line-height:1.5}
.cd-checkout-preview-dialog .cd-preview-zoom-scroll{overflow:auto;max-width:100%;border-radius:6px}
.cd-checkout-preview-canvas{min-width:760px;width:100%;background:#f3ebdc}
.cd-checkout-preview-canvas svg{display:block;width:100%;height:auto}
.woocommerce .c4-gift-thumbnail{object-fit:contain}
.woocommerce .c4-session-thumbnail{object-fit:cover}
@media(max-width:480px){.cd-checkout-preview-dialog{width:calc(100vw - 20px);padding:16px}.cd-line-preview-button{font-size:13px}.cd-checkout-preview-note{font-size:14px}}

/* Native Woo metadata link: no DOM insertion inside its React tree. */
a.cd-line-preview-button{text-decoration:none}

/* The edit form belongs to the modal, never to Woo's native checkout fields. */
.cd-checkout-edit-form[hidden],.cd-checkout-edit-toggle[hidden]{display:none!important}
.cd-checkout-edit-toggle,.cd-checkout-edit-form button{min-height:44px;padding:.75rem 1.1rem;border:1px solid #547335;border-radius:6px;background:#101611;color:#f3ebdc;font:700 15px/1.35 Arial,sans-serif;cursor:pointer;white-space:normal}
.cd-checkout-edit-toggle{background:#a3ce4b;color:#101611}
.cd-checkout-edit-form{display:grid;gap:12px;max-width:760px;margin:0 0 16px;padding:18px;border:1px solid #c3cab8;border-radius:8px;background:#fff9ee}
.cd-checkout-edit-form label{display:block;margin:0;font:700 16px/1.45 Arial,sans-serif}
.cd-checkout-edit-form label span{margin-left:.35em;color:#4a5545;font-size:13px;font-weight:400}
.cd-checkout-edit-hint{margin:0;font:400 14px/1.5 Arial,sans-serif}
.cd-checkout-edit-form input,.cd-checkout-edit-form textarea{display:block;box-sizing:border-box;width:100%;margin:6px 0 0;padding:11px 12px;border:1px solid #718265;border-radius:5px;background:#fff;color:#101611;font:400 16px/1.5 Arial,sans-serif}
.cd-checkout-edit-form textarea{min-height:96px;resize:vertical}
.cd-checkout-edit-form .cd-checkout-edit-cancel{background:transparent;color:#101611}
.cd-checkout-edit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.cd-checkout-edit-status{margin:12px 0;font:400 15px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
.cd-checkout-edit-status:empty{display:none}
.cd-checkout-edit-status[data-state="error"]{color:#8f2419}
.cd-checkout-edit-toggle:focus-visible,.cd-checkout-edit-form :is(button,input,textarea):focus-visible{outline:3px solid #547335;outline-offset:3px}
.cd-checkout-preview-dialog :is(button,input,textarea):disabled{opacity:.65;cursor:not-allowed}
.cd-checkout-preview-dialog[aria-busy="true"] :is(button,input,textarea):disabled{cursor:wait}
.cd-checkout-preview-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
@supports not (height:100dvh){.cd-checkout-preview-dialog{max-height:calc(100vh - 32px)}}
@media(max-width:480px){.cd-checkout-edit-form{padding:12px;gap:10px}.cd-checkout-edit-toggle,.cd-checkout-edit-form button{width:100%}.cd-checkout-preview-dialog{max-height:calc(100dvh - 20px)}}
