.dg-product-grid{grid-template-columns:repeat(var(--dg-columns,4),minmax(0,1fr))}
@media(max-width:900px){.dg-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.dg-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Structural fallback only (zero specificity). All colours, sizes, fonts and shapes of the Buy now pop-up,
   order-completed pop-up, payment options and Thank You page are styled by the active theme (DG Security Theme 1.7.0+). */
:where(html.dg-modal-open){overflow:hidden}
:where(.dg-modal-overlay){position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;background:rgba(0,0,0,.55)}
:where(.dg-modal){position:relative;box-sizing:border-box;width:100%;max-width:400px;max-height:100%;overflow:auto;padding:20px;background:#fff}
:where(.dg-modal-x){position:absolute;top:6px;right:10px}

/* Google reCAPTCHA form spacing */
.g-recaptcha{margin:14px 0;max-width:100%;}

/* reCAPTCHA inside grid forms: always take a full row so it never shares a cell with the button or total */
:where(.asl-contact-form,.dg-checkout-form,.dg-bn-form)>.g-recaptcha,:where(.dg-bn-captcha){grid-column:1/-1}
