/* A single placement stays attached to its document in banner and popup modes. */
.sandorithm-ad{position:relative;inset:auto;box-sizing:border-box;width:100%;max-width:none;margin:10px 0 16px;padding:8px 0;border:0;border-bottom:1px solid #d4e4ee;background:transparent;color:#173e5d;text-align:center;overflow:visible}
.sandorithm-ad[open]:not([hidden]){display:flex;flex-direction:column;align-items:center;gap:7px}
.sandorithm-ad[hidden]{display:none!important}
.ad-label{font:500 12px/1.4 Inter,system-ui,sans-serif;color:#526f86;letter-spacing:.04em}
#sandorithmAdFrame{line-height:0;max-width:100%}
.ad-load-note{display:grid;place-items:center;min-height:50px;font:400 13px/1.5 Inter,system-ui,sans-serif;color:#587186}
#sandorithmAdFrame>iframe{display:block;border:0;max-width:100%;background:transparent}
.ad-popup-heading,.ad-popup-footer{display:none}
.sandorithm-ad[data-mode=popup]{position:fixed;inset:0;width:min(440px,calc(100vw - 16px));max-width:100vw;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:18px;overflow:auto;background:#fff;box-shadow:0 24px 80px rgba(8,28,48,.35);gap:12px}
.sandorithm-ad[data-mode=popup]::backdrop{background:rgba(3,18,35,.62)}
.sandorithm-ad[data-mode=popup]>.ad-label{display:none}
.sandorithm-ad[data-mode=popup] .ad-popup-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;align-self:stretch;padding:12px 12px 0;text-align:left}
.ad-popup-heading h2{margin:0;font-size:20px;line-height:1.3;color:#173e5d}
.ad-popup-close{min-width:44px;min-height:44px;border:1px solid #ccdfec;border-radius:12px;background:#eef6fb;color:#173e5d;font-size:22px;line-height:1}
.sandorithm-ad[data-mode=popup] .ad-popup-footer{display:block;align-self:stretch;padding:0 12px 12px}
.ad-popup-footer p{font-size:14px;line-height:1.5;color:#536e82;margin:0 0 10px}
.ad-popup-footer .btn{width:100%;min-height:48px;font-size:16px}
.ad-modal-fallback{z-index:15000;box-shadow:0 0 0 100vmax rgba(3,18,35,.62),0 24px 80px rgba(8,28,48,.35)!important}
.ad-connection{margin-top:16px;border:1px solid #cbdfea;border-radius:14px;padding:12px;color:#244a69;background:#f7fbff}
.ad-connection summary{cursor:pointer;font-size:15px;font-weight:700;min-height:32px}
.ad-connection p{font-size:14px;line-height:1.5}
.ad-connection button{min-height:44px;font-size:16px}
.ad-check-link{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;font-size:16px;color:#075792;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.sandorithm-ad[data-mode=banner]{width:calc(100% + 22px);max-width:none;margin-left:-11px;margin-right:-11px}.sandorithm-ad[data-mode=popup]{margin:auto}}
@media(max-width:340px){.sandorithm-ad[data-mode=popup]{width:100vw;border-radius:0}}
@media(prefers-reduced-motion:reduce){.sandorithm-ad{scroll-behavior:auto}}
