#dt-home-popup {
    border: 0; padding: 0; margin: auto; background: transparent; color: #171717;
    width: min(560px, calc(100vw - 32px)); max-width: none;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow: auto; border-radius: 12px; overscroll-behavior: contain;
    font-family: inherit; color-scheme: light; box-shadow: 0 16px 60px #0005;
}
#dt-home-popup:not([open]) { display: none; }
#dt-home-popup::backdrop { background: rgba(0,0,0,.7); }
#dt-home-popup .dt-popup-card { position: relative; background: #fff; border-radius: 12px; overflow: hidden; }
#dt-home-popup .dt-popup-close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    padding: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255,44,44,.92); color: #fff; font: 23px/1 Arial,sans-serif;
    cursor: pointer; transition: background .22s ease;
}
#dt-home-popup .dt-popup-close:hover { background: rgba(210,32,32,.96); }
#dt-home-popup .dt-popup-media { position: relative; width: 100%; aspect-ratio: 1; background: #fff; }
#dt-home-popup .dt-popup-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; }
#dt-home-popup .dt-popup-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
#dt-home-popup .dt-popup-slide img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain; }
#dt-home-popup .dt-popup-panel { background: #fff; color: #171717; padding: 10px 12px 16px; }
#dt-home-popup .dt-popup-navigation { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; }
#dt-home-popup .dt-popup-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
#dt-home-popup .dt-popup-dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: transparent; border: 0; cursor: pointer; }
#dt-home-popup .dt-popup-dot::after { content: ''; width: 8px; height: 8px; border: 1px solid #999; background: #fff; border-radius: 50%; transition: background .2s; }
#dt-home-popup .dt-popup-dot[aria-current="true"]::after { background: #ff2c2c; border-color: #ff2c2c; }
#dt-home-popup .dt-popup-pause { border: 1px solid #ddd; background: #fff; color: #333; border-radius: 50%; width: 28px; height: 28px; padding: 0; font-size: 12px; cursor: pointer; }
#dt-home-popup .dt-popup-pause[hidden] { display: none; }
#dt-home-popup .dt-popup-dismiss { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
#dt-home-popup .dt-popup-dismiss label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; font-weight: 400; line-height: 24px; color: #171717; }
#dt-home-popup .dt-popup-dismiss input { appearance: auto; position: static; opacity: 1; margin: 0; width: 16px; height: 16px; accent-color: #ff2c2c; }
#dt-home-popup button:focus-visible, #dt-home-popup a:focus-visible, #dt-home-popup input:focus-visible { outline: 2px solid #ff2c2c; outline-offset: -2px; }
#dt-home-popup .dt-popup-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; }
@media (max-width: 480px) {
    #dt-home-popup .dt-popup-dismiss { gap: 6px 12px; }
    #dt-home-popup .dt-popup-dismiss label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #dt-home-popup .dt-popup-slide { transition: none; } }

/* Native modal focus isolation also needs an explicit document scroll lock. */
html.dt-home-popup-open { overflow: hidden !important; overscroll-behavior: none !important; }
body.dt-home-popup-open {
    position: fixed !important;
    top: var(--dt-popup-scroll-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Preview notices use the preview brand accent; production retains its colors. */
#dt-home-popup[data-preview="true"] .dt-popup-close { background: #ff6e2e; }
#dt-home-popup[data-preview="true"] .dt-popup-close:hover { background: #e85e22; }
#dt-home-popup[data-preview="true"] .dt-popup-dot[aria-current="true"]::after {
    background: #ff6e2e;
    border-color: #ff6e2e;
}
#dt-home-popup[data-preview="true"] .dt-popup-dismiss input { accent-color: #ff6e2e; }
#dt-home-popup[data-preview="true"] :is(button, a, input):focus-visible { outline-color: #ff6e2e; }
