#wb-checkout-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid #B8935A;border-radius:14px;background:#FAF3E9;color:#2B1B12;font:15px/1.6 'Poppins',Arial,sans-serif}
#wb-checkout-dialog::backdrop{background:rgba(43,27,18,.6)}
#wb-checkout-dialog h2{font:600 28px/1.2 'Playfair Display',Georgia,serif;margin:0}
#wb-checkout-dialog .wb-quick-top{display:flex;justify-content:space-between;align-items:center;gap:18px}
#wb-checkout-dialog .wb-close{padding:10px 16px;border:1px solid #B8935A;border-radius:6px;background:transparent;color:#2B1B12;font:inherit}
#wb-checkout-dialog .wb-shipping-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#wb-checkout-dialog label{display:grid;gap:5px;font-size:13px}
#wb-checkout-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid #B8935A;border-radius:5px;background:#fff;color:#2B1B12;font:16px 'Poppins',Arial,sans-serif}
#wb-checkout-dialog .wb-note{font-size:13px}
#wb-checkout-dialog a{color:#5A4636}
#wb-checkout-dialog .wb-main{padding:14px 18px;border:0;border-radius:6px;background:#2B1B12;color:#FAF3E9;font:500 15px 'Poppins',Arial,sans-serif;width:100%}
#wb-checkout-dialog button:disabled{opacity:.55}
#wb-checkout-dialog .wb-checkout-error{color:#A13D3D}
#wb-checkout-dialog #wb-checkout-success{overflow-wrap:anywhere}
@media(max-width:500px){#wb-checkout-dialog{padding:20px}#wb-checkout-dialog .wb-shipping-grid{grid-template-columns:1fr}}

/* Checkout at normal zoom: compact spacing, visible feedback, accessible controls. */
#wb-checkout-dialog{width:min(800px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:18px 22px;line-height:1.4}
#wb-checkout-dialog .wb-quick-top{position:sticky;top:-18px;z-index:2;background:#FAF3E9;padding:10px 0;border-bottom:1px solid #d8c4a3}
#wb-checkout-dialog h2{font-size:26px}
#wb-checkout-dialog h3{font-size:17px;margin:14px 0 8px}
#wb-checkout-dialog .wb-shipping-grid{gap:9px 16px}
#wb-checkout-dialog input{padding:9px 10px;min-height:42px}
#wb-checkout-dialog #wb-checkout-summary p{margin:6px 0}
#wb-checkout-dialog .wb-note{margin:9px 0}
#wb-checkout-dialog #wb-checkout-message{margin:10px 0;padding:10px 12px;border-radius:6px;background:#eee5d7;font-size:14px;scroll-margin-top:65px;overflow-wrap:anywhere}
#wb-checkout-dialog #wb-checkout-message:empty{display:none}
#wb-checkout-dialog #wb-checkout-message.wb-checkout-error{color:#831f25;background:#fff0ee;border:2px solid #a13d3d;font-weight:600}
#wb-checkout-dialog #wb-checkout-message:focus{outline:3px solid #b8935a;outline-offset:2px}
@media(max-width:500px){#wb-checkout-dialog{padding:12px 14px}#wb-checkout-dialog .wb-quick-top{top:-12px}#wb-checkout-dialog h2{font-size:24px}#wb-checkout-dialog .wb-shipping-grid{grid-template-columns:1fr}}

/* V5: compact checkout while retaining readable fields and touch targets. */
#wb-checkout-dialog{padding:12px 20px}
#wb-checkout-dialog .wb-quick-top{top:-12px;padding:4px 0 8px}
#wb-checkout-dialog #wb-checkout-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 16px}
#wb-checkout-dialog #wb-checkout-summary p{margin:4px 0}
#wb-checkout-dialog h3{margin:8px 0 6px}
#wb-checkout-dialog .wb-shipping-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 14px}
#wb-checkout-dialog .wb-shipping-grid label{grid-column:span 3;min-width:0;gap:3px}
#wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-city"],
#wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-state"],
#wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-postal"]{grid-column:span 2}
#wb-checkout-dialog .wb-note{font-size:12px;line-height:1.4;margin:6px 0}
#wb-checkout-dialog #wb-checkout-message{margin:6px 0;padding:8px 10px}
#wb-checkout-dialog #wb-pay{min-height:44px;padding:11px 16px;margin-top:4px}
@media(max-width:500px){
 #wb-checkout-dialog{padding:12px 14px}
 #wb-checkout-dialog .wb-shipping-grid{grid-template-columns:minmax(0,1fr)}
 #wb-checkout-dialog .wb-shipping-grid label,
 #wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-city"],
 #wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-state"],
 #wb-checkout-dialog .wb-shipping-grid label[for="wb-ship-postal"]{grid-column:1}
}

/* A server-confirmed decline follows successful card validation. Reuse the
   blank feedback space below Square's fields, without hiding SDK validation.
   Keep auto height so wrapped messages remain readable on narrow screens. */
#wb-checkout-dialog #wb-card-container + #wb-checkout-message.wb-payment-declined{
 position:relative;margin-top:-34px;margin-bottom:6px;box-sizing:border-box;
}

/* Email confirmation feedback belongs beside the field that needs fixing. */
#wb-checkout-dialog .wb-field-error{color:#831f25;font-size:12px;line-height:1.4;font-weight:600}
#wb-checkout-dialog .wb-field-error[hidden]{display:none}
#wb-checkout-dialog input[aria-invalid="true"]{border:2px solid #a13d3d;background:#fff0ee}

#wb-checkout-dialog #wb-ship-state{text-transform:uppercase}
