/* Scoped payment dialog. Account and learning windows keep their existing styles. */
.modal-backdrop:has(.gv-payment,.gv-card-payment){padding:14px;align-items:center;justify-content:center;background:#000b;backdrop-filter:blur(3px)}
.modal:has(>.gv-payment,>.gv-card-payment){width:100%;max-width:480px;max-height:calc(100svh - 28px);max-height:calc(100dvh - 28px);padding:0!important;border:1px solid #34383b!important;border-radius:22px!important;background:#121416!important;color:#f1f3f4;box-shadow:0 24px 90px #0009;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.modal:has(>.gv-payment,>.gv-card-payment)>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.modal:has(>.gv-payment,>.gv-card-payment)>.close-modal{top:13px;right:13px;width:40px;height:40px;border:0;border-radius:50%;background:transparent!important;box-shadow:none;color:#d4dadc;z-index:2;display:grid;place-items:center}
.modal:has(>.gv-payment,>.gv-card-payment)>.close-modal .icon{width:27px;height:27px;stroke-width:1.4}
.gv-payment{font-size:16px;line-height:1.5}
.gv-payment-header{display:flex;align-items:center;gap:14px;min-height:68px;padding:16px 62px 14px 24px;border-bottom:1px solid #34383b}
.gv-payment-header img{width:105px;height:38px;object-fit:contain}
.gv-payment-header>span{margin-left:auto;font-size:14px;color:#b4bfbc;font-weight:400}
.gv-payment-status{padding:24px 24px 18px;text-align:center}
.gv-payment-symbol{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:50%;background:#33c7bc;color:#092d2e}
.gv-payment-symbol svg{width:36px;height:36px}
.gv-payment-status h3{font-size:25px!important;line-height:1.2;font-weight:500;margin:0 0 8px;letter-spacing:-.4px;color:#f5f6f6}
.gv-payment-status p{font-size:16px!important;line-height:1.45!important;color:#b8c2c5;margin:0 auto;max-width:350px}
.gv-payment-details{margin:0 24px;padding:0;font-size:16px}
.gv-payment-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:center;gap:12px;min-height:42px;padding:10px 0;border-bottom:1px solid #363b3e}
.gv-payment-details dt{font-size:14px;color:#a1abad;font-weight:400;line-height:1.5}
.gv-payment-details dd{font-size:16px;color:#e8ebec;text-align:right;line-height:1.45;margin:0;overflow-wrap:anywhere}
.gv-payment-details .gv-payment-amount{min-height:52px}
.gv-payment-amount dd{font-size:25px;font-weight:650;color:#fff}
.gv-payment-actions{padding:16px 24px 16px}
.gv-payment-actions form{margin:0}
.gv-payment-actions p{margin:0;line-height:1.5!important;font-size:14px!important}
.gv-payment-terms{color:#d0d7d8}
.gv-payment-terms strong{color:#f4f6f6;font-weight:650}
.gv-payment-actions .gv-payment-choice{color:#a9b7bb;margin:10px 0}
.gv-payment a{color:#7ee1d3;text-decoration:underline;text-underline-offset:3px}
.gv-payment-actions .gv-payment-demo{margin:12px 0;color:#9bb7b1}
.gv-payment-actions .gv-payment-demo-complete{font-size:16px!important;line-height:1.55!important;margin:0 0 16px}
.gv-payment-submit{display:block;width:100%;min-height:48px;padding:12px 16px;background:#36c7ba;color:#082725;font-size:16px;font-weight:750;line-height:1.4;border:1px solid #4cddcf;border-radius:9px;box-shadow:none}
.gv-payment-submit:hover{background:#51d7ca}
.gv-payment-back{display:block;width:100%;min-height:44px;margin:6px 0 0;padding:10px 6px;background:transparent;color:#aebdc1;font-size:14px;line-height:1.4;text-decoration:underline;text-underline-offset:4px}
.gv-payment .ref-confirm-consents{margin:0 0 14px;gap:12px}
.gv-payment .ref-confirm-consents label{font-size:14px!important;color:#c0cbcd}
.gv-payment .ref-confirm-consents input[type=checkbox]{accent-color:#36c7ba}
.gv-payment :focus-visible{outline:3px solid #85e3d9;outline-offset:4px}
@media(max-width:600px){
 .modal-backdrop:has(.gv-payment,.gv-card-payment){padding:10px}
 .modal:has(>.gv-payment,>.gv-card-payment){max-height:calc(100svh - 20px);max-height:calc(100dvh - 20px);border-radius:18px!important}
 .gv-payment-header{padding-left:18px;gap:10px;min-height:62px}
 .gv-payment-header img{width:92px;height:32px}
 .gv-payment-header>span{font-size:14px}
 .gv-payment-status{padding:12px 18px 10px}
 .gv-payment-status h3{font-size:23px!important}
 .gv-payment-symbol{width:40px;height:40px;margin-bottom:8px}
 .gv-payment-symbol svg{width:30px;height:30px}
 .gv-payment-details{margin:0 18px}
 .gv-payment-details>div{min-height:36px;gap:10px;padding:7px 0}
 .gv-payment-details .gv-payment-amount{min-height:48px}
 .gv-payment-details dd{font-size:15px}
 .gv-payment-amount dd{font-size:24px}
 .gv-payment-actions{padding:14px 18px}
}
@media(prefers-reduced-motion:reduce){.modal-backdrop:has(.gv-payment,.gv-card-payment){animation:none}}
.gv-card-payment{padding:30px 26px 18px;color:#e7e8ea;font-size:16px;line-height:1.5}
.gv-card-payment h3{padding:0 30px;margin:2px 0 0;text-align:center;font-size:22px!important;font-weight:600;line-height:1.35;letter-spacing:0}
.gv-card-payment .gv-card-amount{margin:28px 0 34px;text-align:center;font-size:34px!important;font-weight:400;line-height:1.2}
.gv-card-field label{display:block;margin:0 0 7px;font-size:16px;color:#b7bbbf;font-weight:400}
.gv-card-field input{display:block;width:100%;height:48px;min-height:48px;margin:0;padding:8px 12px;border:1px solid #383c40;border-radius:5px;background:#111315;color:#d9e1e6;box-shadow:none;font-size:16px;appearance:none}
.gv-card-field input:disabled{opacity:1;cursor:not-allowed;-webkit-text-fill-color:#d9e1e6}
.gv-card-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:20px}
.gv-card-cvv{position:relative}
.gv-card-cvv>span{position:absolute;right:12px;bottom:13px;line-height:1;color:#84919e;pointer-events:none}
.gv-card-cvv .icon{width:25px;height:21px}
.gv-card-payment .gv-card-terms,.gv-payment-actions .gv-card-terms{font-size:14px!important;line-height:1.5!important;color:#b5bfc4;margin:20px 0 14px}
.gv-card-terms strong{font-weight:650;color:#d8e0e4}
.gv-card-payment a{color:#6ecdbf;text-decoration:underline;text-underline-offset:3px}
.gv-card-pay{margin-top:28px;display:block;width:100%;min-height:48px;padding:12px 18px;border:1px solid #278bc7;border-radius:5px;background:#146ea8;color:#e2edf7;font-size:18px;font-weight:500;line-height:1.3;box-shadow:none}
.gv-card-pay:disabled{opacity:1;cursor:not-allowed;filter:none;transform:none}
.gv-card-payment .gv-card-demo{margin:16px 0 0;color:#9aa9b1;text-align:center;font-size:14px!important;line-height:1.5!important}
.gv-card-back{display:block;width:100%;min-height:44px;padding:10px 4px;margin:6px 0 0;background:transparent;color:#aebdc1;font-size:14px;line-height:1.4;text-decoration:underline;text-underline-offset:3px}
.gv-card-payment :focus-visible{outline:3px solid #85e3d9;outline-offset:4px}
@media(max-width:600px){
 .gv-card-payment{padding:28px 24px 14px}
 .gv-card-payment h3{font-size:21px!important;padding:0 23px}
 .gv-card-payment .gv-card-amount{font-size:32px!important;margin:24px 0 28px}
}
@media(max-width:380px){
 .gv-card-payment{padding:24px 18px 10px}
 .gv-card-payment h3{font-size:20px!important;padding:0 20px}
 .gv-card-payment .gv-card-amount{margin:20px 0 24px}
 .gv-card-field-row{gap:20px;margin-top:18px}
 .gv-card-payment .gv-card-terms{margin-top:16px}
}

.gv-card-payment .gv-card-amount{display:flex;justify-content:center;align-items:baseline;gap:16px}
.gv-card-amount .ref-old-price{font-size:22px;font-weight:400;color:#aab2bd}
.gv-card-amount .ref-intro-price{font-size:inherit;font-weight:650;color:#f4f7fa}

/* A payment panel enters from the lower edge, with a stationary dimmed page. */
.modal-backdrop:has(.gv-payment,.gv-card-payment){align-items:flex-end;padding:16px 12px 0;overflow:hidden}
.modal:has(>.gv-payment,>.gv-card-payment){max-width:560px;max-height:calc(100svh - 16px);max-height:calc(100dvh - 16px);border-radius:26px 26px 0 0!important;border-bottom:0!important;padding-bottom:env(safe-area-inset-bottom)!important;animation:gv-payment-rise .32s cubic-bezier(.2,.75,.25,1) both}
@keyframes gv-payment-rise{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
.ref-payment-dock{animation:gv-dock-rise .36s cubic-bezier(.2,.75,.25,1) both}
@keyframes gv-dock-rise{from{translate:0 110%;opacity:0}to{translate:0 0;opacity:1}}

/* Missing checkboxes offer one explicit confirmation; closing accepts nothing. */
.modal-backdrop:has(.gv-consent){align-items:center;justify-content:center;padding:18px;background:#000b;backdrop-filter:blur(4px)}
.modal:has(>.gv-consent){max-width:460px;max-height:calc(100svh - 36px);max-height:calc(100dvh - 36px);padding:28px!important;border:1px solid #42534e!important;border-radius:20px!important;background:#151b1a!important;color:#f1f7f4;animation:gv-consent-enter .18s ease-out both;overscroll-behavior:contain}
.modal:has(>.gv-consent)>h2{margin:0 30px 18px 0;font-size:24px;line-height:1.25;letter-spacing:-.35px;color:#f4f8f6}
.modal:has(>.gv-consent)>.close-modal{top:15px;right:14px;width:36px;height:36px;background:transparent;color:#c6d4ce}
.gv-consent p{margin:0 0 18px!important;font-size:16px!important;line-height:1.55!important;color:#c5d2cc!important}
.gv-consent a{color:#a2e8d5;text-decoration:underline;text-underline-offset:3px}
.gv-consent-price{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px 16px;border:1px solid #455d54;border-radius:10px;background:#1c2b25;font-size:16px;line-height:1.45;color:#e1ece6}
.gv-consent-price strong{flex-shrink:0;font-size:27px;color:#fff}
.gv-consent .gv-consent-renewal strong{color:#f2f6f4;font-weight:650}
.gv-consent .gv-consent-choice{font-size:14px!important;color:#b0c0b8!important}
.gv-consent-continue{display:block;width:100%;min-height:52px;padding:13px 16px;border:1px solid #54dbc2;border-radius:9px;background:#49d3b3;color:#062f25;font-size:16px;font-weight:700;line-height:1.4}
.gv-consent-continue:hover{background:#6ee1c6}
.gv-consent :focus-visible{outline:3px solid #a5f5dc;outline-offset:4px}
.gv-consent .gv-consent-error{color:#ffbdc9!important;font-size:14px!important}
.gv-consent-error:empty{display:none}
@keyframes gv-consent-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
 .modal-backdrop:has(.gv-payment,.gv-card-payment){padding:12px 0 0}
 .modal:has(>.gv-payment,>.gv-card-payment){max-height:calc(100svh - 12px);max-height:calc(100dvh - 12px);border-radius:24px 24px 0 0!important}
 .modal:has(>.gv-consent){padding:24px!important}
 .modal:has(>.gv-consent)>h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){
 .modal:has(>.gv-payment,>.gv-card-payment,>.gv-consent),.ref-payment-dock{animation:none}
}

/* The payment confirmation contains only the document link and one action. */
.modal:has(>.gv-consent-compact){max-width:360px;padding:30px 24px 24px!important}
.modal:has(>.gv-consent-compact)>h2{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.gv-consent-compact{display:flex;flex-direction:column;gap:16px;text-align:center}
.gv-consent-terms{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:18px;line-height:1.5}
.gv-consent-compact .gv-consent-error:empty{display:none}
.gv-consent-compact .gv-consent-continue{min-height:52px;font-size:16px}
