#dryfog-dialog{box-sizing:border-box;width:min(510px,calc(100% - 32px));max-height:calc(100svh - 32px);overflow:auto;padding:32px;border:1px solid #336496;border-radius:22px;background:#0b2852;color:#fff}
#dryfog-dialog::backdrop{background:rgba(0,7,18,.8);backdrop-filter:blur(6px)}
#dryfog-dialog .modal-close{position:absolute;right:12px;top:10px;min-width:44px;min-height:44px;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}
#dryfog-dialog h2{margin:14px 28px 14px 0;font-size:clamp(26px,5vw,36px);line-height:1.12;color:#f2f8ff}
#dryfog-dialog>p{font-size:16px;line-height:1.5;color:#c4d7eb}
#dryfog-dialog .kicker{display:block;padding-right:28px;font-size:11px;color:#9cdcff;letter-spacing:.06em}
#dryfog-dialog form{display:grid;gap:13px}
#dryfog-dialog form[hidden],#dryfog-dialog .success[hidden]{display:none}
#dryfog-dialog label{display:block;font-size:14px;color:#d1e0ef}
#dryfog-dialog input:not([type=checkbox]):not([type=hidden]){box-sizing:border-box;display:block;width:100%;min-height:48px;padding:12px;margin-top:5px;border:1px solid #537da2;border-radius:10px;background:#061a37;color:#fff;font:inherit;font-size:16px}
#dryfog-dialog .consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5}
#dryfog-dialog .consent input{flex-shrink:0;margin-top:3px}
#dryfog-dialog a{color:#a8def5;text-decoration:underline}
#dryfog-dialog button[type=submit]{width:100%;min-height:48px;margin-top:4px}
#dryfog-dialog .success{padding:24px 0;color:#cce9d9}
#dryfog-dialog :focus-visible{outline:3px solid #9cdcff;outline-offset:3px}
@media(max-width:480px){#dryfog-dialog{padding:26px 20px}}
/* The purchase action stays with the equipment scene, outside its four animated steps. */
#dry-fog .dfog-purchase{position:absolute;z-index:5;inset:auto 0 14px;width:min(100%,760px);margin-inline:auto;display:flex;align-items:center;gap:20px;box-sizing:border-box;min-height:70px;padding:12px 18px;border:1px solid #467c9a;border-radius:16px;background:rgba(5,24,43,.96);box-shadow:0 12px 35px #0004;backdrop-filter:blur(12px);color:#eaf6ff}
#dry-fog .dfog-purchase-label{min-width:0;flex:1}
#dry-fog .dfog-purchase-label strong{font-size:16px;line-height:1.2}
#dry-fog .dfog-purchase-price{white-space:nowrap;font-size:26px;line-height:1.1}
#dry-fog .dfog-purchase button{flex-shrink:0;min-height:46px;padding:10px 22px;border:0;border-radius:10px;background:#87d8f4;color:#082439;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
#dry-fog .dfog-purchase button:focus-visible{outline:3px solid #fff;outline-offset:3px}
#dry-fog.is-video .dfog-scene>.dfog-tag{display:block;z-index:4;max-width:calc(100% - 32px);box-sizing:border-box;padding:7px 10px;background:rgba(3,17,30,.92);border:1px solid rgba(174,217,240,.45);color:#e2f3ff;font-size:12px;line-height:1.35;pointer-events:none}
#dry-fog.is-static .dfog-purchase{position:relative;inset:auto;grid-column:1/-1;grid-row:1}
@media(max-width:600px){
 #dry-fog .dfog-purchase{gap:8px;padding:9px 10px;bottom:12px;border-radius:12px}
 #dry-fog .dfog-purchase-label strong{font-size:13px}
 #dry-fog .dfog-purchase-price{font-size:clamp(16px,4.8vw,20px)}
 #dry-fog .dfog-purchase button{min-height:44px;padding:10px 12px;font-size:14px}
}
/* dryfog.js toggles these classes only while its corresponding offer is visible. */
html:is(.dfog-in,.dfog-entry-active,.dfog-story-active) .callback{opacity:0;visibility:hidden;pointer-events:none}
/* Without scene enhancement, keep the purchase strip in normal flow. */
#dry-fog:not(.dfog-ready) .dfog-purchase{position:relative;inset:auto;grid-column:1/-1;grid-row:1}
/* Phones: the active step participates in layout, so its copy cannot cover the scene.
   The persistent purchase strip replaces the duplicate button in the last step. */
@media(max-width:600px){
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-stage{height:100svh;grid-template-rows:minmax(0,auto) minmax(0,1fr);padding-bottom:96px}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-copy{min-height:0;max-height:calc(100svh - 300px);overflow-y:auto;overscroll-behavior-y:auto}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-step{display:none;position:static;inset:auto;margin-top:14px;transform:none}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-step.is-on{display:block;opacity:1}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-scene{min-height:0;height:100%}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-list{gap:6px}
 #dry-fog.dfog-ready:not(.is-static):not(.dfog-offer) .dfog-list li{padding:0;border:0;background:none;font-size:13px;line-height:1.35}
}
