/* SAH Download Validator 2.2.2 - shared styles for every shortcode style. */
.sah-dv { font-family: inherit; color: #1d1660; }
.sah-dv *, .sah-dv *::before, .sah-dv *::after { box-sizing: border-box; }

/* Form */
.sah-dv .sah-dv-field { margin-bottom: 16px; }
.sah-dv .sah-dv-field label { display: block; margin-bottom: 8px; color: #334155; font-weight: 600; }
.sah-dv .sr-serial-input { width: 100%; padding: 12px 14px; border: 1.5px solid #b9b4d6; border-radius: 8px; font-size: 16px; color: #1d1660; background: #fff; }
.sah-dv .sr-serial-input:focus { outline: 3px solid #9cc9ae; outline-offset: 1px; border-color: #1e7a46; }

/* Green "go" button */
.sah-dv .sah-dv-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #1e7a46; color: #fff; border: 0; border-radius: 8px; padding: 14px 22px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; cursor: pointer; text-decoration: none; }
.sah-dv .sah-dv-go:hover { background: #176238; color: #fff; }
.sah-dv .sah-dv-go:focus-visible, .sah-dv button:focus-visible, .sah-dv a:focus-visible { outline: 3px solid #1d1660; outline-offset: 2px; }
.sah-dv .sah-dv-go[disabled] { opacity: .75; cursor: wait; }
.sah-dv .sr-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; border-top-color: transparent; animation: sah-dv-spin .6s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes sah-dv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sah-dv .sr-spinner { animation-duration: 2s; } }

/* style="full" */
.sah-dv-full { max-width: 600px; margin: 40px auto; padding: 20px; }
.sah-dv-full .sah-dv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 32px; }

/* style="panel" (product pages) */
.sah-dv-panel-style .sah-dv-dark { background: #1d1660; border-radius: 16px; padding: 24px; }
.sah-dv-panel-style .sah-dv-dark-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: #fff; }
.sah-dv-panel-style .sah-dv-dark-text { margin: 0 0 16px; padding: 0; font-size: 15px; line-height: 1.5; color: #dcd8f5; }
.sah-dv-panel-style .sah-dv-field label { color: #fff; }
.sah-dv-panel-style .sr-serial-input { border: 0; }

/* style="compact" */
.sah-dv-compact { position: relative; }
.sah-dv-compact .sah-dv-toggle { width: auto; font-size: 18px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 6px 20px rgba(20, 60, 40, .22); }
.sah-dv-compact .sah-dv-toggle[aria-expanded="true"] { display: none; }
.sah-dv-compact .sah-dv-pop { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(40, 30, 120, .18); }
.sah-dv-compact .sah-dv-head { display: flex; align-items: center; gap: 8px; background: #1d1660; padding: 10px 10px 10px 20px; }
.sah-dv-compact .sah-dv-head h2 { flex: 1; margin: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: #fff; }
.sah-dv-compact .sah-dv-close, .sah-dv-compact .sah-dv-expand { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; border: 0; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sah-dv-compact .sah-dv-expand { padding: 0 10px; border: 1px solid rgba(255, 255, 255, .45); }
.sah-dv-compact .sah-dv-close:hover, .sah-dv-compact .sah-dv-expand:hover { background: rgba(255, 255, 255, .12); }
.sah-dv-compact .sah-dv-step { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sah-dv-compact .sah-dv-step[hidden], .sah-dv-compact [hidden] { display: none !important; }
.sah-dv-compact .sah-dv-q { margin: 0; padding: 0; font-size: 17px; font-weight: 700; color: #1d1660; }
.sah-dv-compact .sah-dv-choice { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; font-family: inherit; font-size: 16px; font-weight: 700; color: #3a2db8; background: #fff; border: 2px solid #3a2db8; border-radius: 10px; padding: 12px 16px; cursor: pointer; }
.sah-dv-compact .sah-dv-choice-main { color: #fff; background: #3a2db8; }
.sah-dv-compact .sah-dv-choice:hover { background: #efe8fd; color: #1d1660; }
.sah-dv-compact .sah-dv-link-btn { justify-content: space-between; }
.sah-dv-compact .sah-dv-note { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #5c3400; background: #fff4e0; border-radius: 10px; }
.sah-dv-compact .sah-dv-note .sah-dv-textbtn { color: #5c3400; font-weight: 700; }
.sah-dv-compact .sah-dv-small { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: #4a4570; }
.sah-dv-compact .sah-dv-textbtn { align-self: flex-start; background: none; border: 0; padding: 4px 0; font-family: inherit; font-size: 14px; font-weight: 600; color: #3a2db8; text-decoration: underline; cursor: pointer; }
.sah-dv-compact .sr-validation-success { margin-bottom: 0 !important; padding: 18px !important; }
.sah-dv-compact .sr-validation-success h2 { font-size: 22px; }

/* Full-screen results */
.sah-dv-compact .sah-dv-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(29, 22, 96, .55); }
.sah-dv-compact.sah-dv-is-full .sah-dv-pop { position: fixed; z-index: 100001; top: 4vh; left: 50%; transform: translateX(-50%); width: min(820px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; }
.sah-dv-compact.sah-dv-is-full .sr-validation-success { padding: 28px !important; }
body.sah-dv-noscroll { overflow: hidden; }
