/* Steam top-up on the home page. Variables and new classes isolate legacy styles. */
.catalog-page #steam-topup.steam-widget{--sw-bg:var(--surface);--sw-soft:var(--surface-soft);--sw-text:var(--text);--sw-muted:var(--muted);--sw-line:var(--line);--sw-strong:var(--line-strong);--sw-blue:#2563eb;--sw-blue-text:#1d4ed8;--sw-blue-soft:#eef4ff;--sw-blue-line:#b9cef9;--sw-green:#15803d;--sw-red:#b42318;position:relative;min-width:0;padding:26px;border:1px solid var(--sw-line)!important;border-radius:20px;color:var(--sw-text)!important;background:var(--sw-bg)!important;box-shadow:var(--shadow-sm)!important;overflow:visible}
.catalog-page #steam-topup.steam-widget::before,.catalog-page #steam-topup.steam-widget::after{display:none!important}
.steam-widget [hidden],#steamOrderModal.steam-widget-modal [hidden]{display:none!important}
.steam-widget-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid var(--sw-line)}
.steam-widget-heading{display:flex;align-items:center;gap:14px;min-width:0}
.steam-widget-logo{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border:1px solid var(--sw-line);border-radius:14px;background:var(--sw-soft);color:var(--sw-text);font-size:28px}
.catalog-page #steam-topup.steam-widget h1{margin:0;font-size:28px!important;line-height:1.2!important;letter-spacing:-.04em;font-weight:700}
.steam-widget-badge{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;padding:7px 10px;border:1px solid var(--sw-line);border-radius:9px;background:var(--sw-soft);color:var(--sw-muted);font-size:11px;font-weight:600;line-height:1.5}
.steam-widget-badge i{color:var(--sw-blue-text);font-size:12px}
.steam-widget-form{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start;position:relative;margin:0}
.steam-widget-setup{min-width:0}
.steam-widget-fields{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:16px}
.steam-widget-field{min-width:0}
.steam-widget-field label{display:block;margin:0 0 9px;font-size:13px;font-weight:600;line-height:1.5}
.steam-widget-field>label{display:flex;align-items:center;min-height:44px;margin:0}
.steam-widget-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.steam-widget-label-row label{margin:0}
.steam-widget-help-link{display:inline-flex;align-items:center;gap:5px;min-height:44px;margin:0;color:var(--sw-blue-text);font-size:12px;font-weight:600;white-space:nowrap;padding:0;border:0;background:transparent;font-family:inherit;cursor:pointer}
html[data-theme="dark"] .steam-widget-help-link{color:var(--sw-blue-text)}
.steam-widget-help-link:hover{text-decoration:underline;text-underline-offset:3px}
.steam-widget-help-link:focus-visible{outline:2px solid var(--sw-blue);outline-offset:3px;border-radius:4px}
.catalog-page #steam-topup.steam-widget .steam-widget-field input{display:block;box-sizing:border-box;width:100%;height:54px;padding:0 14px;border:1px solid var(--sw-strong)!important;border-radius:11px;background:var(--sw-bg)!important;color:var(--sw-text)!important;box-shadow:none!important;font:inherit;font-size:15px;font-weight:500;line-height:1.5;outline:none}
.catalog-page #steam-topup.steam-widget .steam-widget-field input::placeholder{color:var(--sw-muted)!important;opacity:1;font-size:13px;font-weight:400}
.catalog-page #steam-topup.steam-widget .steam-widget-field input:focus{border-color:var(--sw-blue)!important;box-shadow:0 0 0 3px rgba(37,99,235,.13)!important}
.catalog-page #steam-topup.steam-widget .steam-widget-field.is-valid input{border-color:var(--sw-green)!important}
.catalog-page #steam-topup.steam-widget .steam-widget-field.is-invalid input,.catalog-page #steam-topup.steam-widget .steam-widget-field input[aria-invalid="true"]{border-color:var(--sw-red)!important;box-shadow:0 0 0 3px rgba(239,68,68,.14)!important}
.steam-widget-amount-input{position:relative}
.catalog-page #steam-topup.steam-widget .steam-widget-amount-input input{padding-right:36px;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.steam-widget-amount-input input::-webkit-outer-spin-button,.steam-widget-amount-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.steam-widget-amount-input>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--sw-muted);font-size:16px}
.steam-widget-range{margin:8px 0 0;color:var(--sw-muted);font-size:11px;line-height:1.65}
.steam-widget-login-status{display:flex;align-items:flex-start;gap:7px;min-height:20px;margin:9px 0 0;color:var(--sw-muted);font-size:12px;font-weight:500;line-height:1.6}
.steam-widget-login-status>i{margin-top:3px;flex:0 0 13px;font-size:12px}
.steam-widget-login-status.valid{color:var(--sw-green)}
.steam-widget-login-status.invalid{color:var(--sw-red)}
.steam-widget-login-status.checking{color:var(--sw-blue-text)}
.steam-widget-help{position:relative;flex-shrink:0}
.steam-widget-login-help{position:absolute;right:0;top:calc(100% + 6px);z-index:40;width:320px;max-width:calc(100vw - 64px);box-sizing:border-box;padding:14px 16px;border:1px solid var(--sw-line);border-radius:12px;background:var(--sw-bg);box-shadow:var(--shadow-md);color:var(--sw-text);text-align:left}
.steam-widget-login-help strong{display:block;margin:0 0 6px;font-size:12px;font-weight:700;line-height:1.5}
.steam-widget-login-help p{margin:0;color:var(--sw-muted);font-size:12px;line-height:1.7}
.steam-widget-payments{min-width:0;width:100%;margin:24px 0 0;padding:0;border:0}
.steam-widget-payments legend{float:left;width:100%;margin-bottom:12px;padding:0;color:var(--sw-muted);font-size:11px;font-weight:700;line-height:1.5;letter-spacing:.055em}
.steam-widget-methods{clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;min-width:0}
.steam-widget-option{position:relative;display:block;min-width:0;cursor:pointer}
.steam-widget-option>input{position:absolute;top:0;left:0;width:1px;height:1px;opacity:0;margin:0;overflow:hidden}
.steam-widget-method{display:flex;flex-direction:column;gap:3px;box-sizing:border-box;height:100%;min-height:80px;padding:10px 12px;border:1px solid var(--sw-strong);border-radius:10px;background:var(--sw-bg);transition:background .18s ease,border-color .18s ease}
.steam-widget-method-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:2px}
.steam-widget-method-top>i{color:var(--sw-muted);font-size:16px}
.steam-widget-selected{display:grid;place-items:center;width:14px;height:14px;border:1px solid var(--sw-strong);border-radius:50%;background:var(--sw-bg)}
.steam-widget-selected>i{display:none;font-size:8px;color:#fff}
.steam-widget-method strong{color:var(--sw-text);font-size:12px;font-weight:700;line-height:1.35}
.steam-widget-method small{color:var(--sw-muted);font-size:10px;line-height:1.5;font-weight:500}
.steam-widget-option:hover .steam-widget-method{background:var(--sw-soft);border-color:var(--sw-blue-line)}
.steam-widget-option>input:checked+.steam-widget-method{border-color:var(--sw-blue);background:var(--sw-blue-soft)}
.steam-widget-option>input:checked+.steam-widget-method .steam-widget-method-top>i{color:var(--sw-blue-text)}
.steam-widget-option>input:checked+.steam-widget-method .steam-widget-selected{border-color:var(--sw-blue);background:var(--sw-blue)}
.steam-widget-option>input:checked+.steam-widget-method .steam-widget-selected>i{display:block}
.steam-widget-option>input:focus-visible+.steam-widget-method{outline:3px solid var(--sw-blue);outline-offset:3px}
.steam-widget-option.is-disabled{cursor:not-allowed}
.steam-widget-option.is-disabled .steam-widget-method{border-color:var(--sw-line);background:var(--sw-soft);cursor:not-allowed}
.steam-widget-option.is-disabled .steam-widget-method-top>i{opacity:.45}
.steam-widget-option.is-disabled .steam-widget-method strong,.steam-widget-option.is-disabled .steam-widget-method small{color:var(--sw-muted)}
.steam-widget-error{margin:9px 0 0;color:var(--sw-red);font-size:12px;line-height:1.65}
.steam-widget-summary{min-width:0;padding:22px;border:1px solid var(--sw-line);border-radius:15px;background:var(--sw-soft)}
.steam-widget-summary h2{margin:0 0 20px;font-size:17px;font-weight:700;line-height:1.5;letter-spacing:-.02em}
.steam-widget-summary-rows{display:grid;gap:14px}
.steam-widget-summary-rows>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;font-size:12px;line-height:1.6;color:var(--sw-muted)}
.steam-widget-summary-rows strong{min-width:0;color:var(--sw-text);font-size:13px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.steam-widget-summary-rows .steam-widget-balance-row strong{color:var(--sw-green)}
.steam-widget-total{display:grid;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid var(--sw-line)}
.steam-widget-total>span{color:var(--sw-muted);font-size:12px;line-height:1.5}
.steam-widget-total>strong{color:var(--sw-text);font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.steam-widget-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:52px;box-sizing:border-box;margin-top:20px;padding:10px 12px;border:1px solid #2563eb;border-radius:11px;background:#2563eb;color:#fff;font:inherit;font-size:13px;font-weight:700;line-height:1.45;text-align:center;cursor:pointer;transition:background .18s ease}
.steam-widget-submit>i:first-child{font-size:12px}
.steam-widget-submit>i:last-child{font-size:10px;margin-left:auto}
.steam-widget-submit>span{flex:1}
.steam-widget-submit:hover{background:#1d4ed8;border-color:#1d4ed8}
html[data-theme="dark"] .steam-widget-submit{color:#fff}
.catalog-page #steam-topup.steam-widget button.steam-widget-submit:disabled{color:var(--sw-muted)!important;border-color:var(--sw-line)!important;background:var(--sw-bg)!important;box-shadow:none!important;cursor:not-allowed;transform:none;opacity:1}
.steam-widget-submit-help{margin:10px 0 0;min-height:18px;color:var(--sw-muted);font-size:11px;line-height:1.65;text-align:center}
.steam-widget-unavailable{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid var(--sw-line);border-radius:12px;background:var(--sw-soft);color:var(--sw-text)}
.steam-widget-unavailable>i{margin-top:3px;color:var(--sw-muted);font-size:20px}
.steam-widget-unavailable strong{font-size:15px;font-weight:600;line-height:1.5}
.steam-widget-unavailable p{margin:6px 0 0;color:var(--sw-muted);font-size:13px;line-height:1.7}
.steam-widget-unavailable a{color:var(--sw-blue-text);text-decoration:underline;text-underline-offset:3px}
.steam-widget :is(a,button,summary):focus-visible{outline:3px solid var(--sw-blue);outline-offset:3px}
html[data-theme="dark"] .catalog-page #steam-topup.steam-widget{--sw-blue-text:#93c5fd;--sw-blue-soft:#17283f;--sw-blue-line:#35547c;--sw-green:#86efac;--sw-red:#fca5a5}
/* Confirmation retains the existing payment handlers and summary IDs. */
#steamOrderModal.steam-widget-modal .steam-order-modal-dialog{padding:24px;border-radius:20px;background:var(--surface);border-color:var(--line)}
#steamOrderModal.steam-widget-modal .steam-order-modal-title{font-size:23px;font-weight:700;line-height:1.3;letter-spacing:-.03em}
#steamOrderModal.steam-widget-modal .steam-order-modal-subtitle{font-size:13px;line-height:1.7}
#steamOrderModal.steam-widget-modal .steam-order-modal-close{width:44px;height:44px;border-radius:11px;background:var(--surface-soft);font-size:14px}
#steamOrderModal.steam-widget-modal .steam-order-summary{background:var(--surface-soft)}
#steamOrderModal.steam-widget-modal .steam-order-summary-row{min-height:50px;font-size:13px;font-weight:500}
#steamOrderModal.steam-widget-modal .steam-order-summary-row strong{font-size:14px;font-weight:600}
#steamOrderModal.steam-widget-modal .steam-order-summary-row.total strong{font-size:22px;font-weight:700}
#steamOrderModal.steam-widget-modal .steam-order-modal-actions{grid-template-columns:1fr 1.5fr;gap:10px}
#steamOrderModal.steam-widget-modal .steam-order-modal-actions .btn{min-height:50px;border-radius:11px;font-size:13px;font-weight:700;box-shadow:none!important;transform:none!important}
#steamOrderModal.steam-widget-modal .steam-order-modal-actions .btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
#steamOrderModal.steam-widget-modal .steam-order-modal-note{font-size:12px;line-height:1.7}
#steamOrderModal.steam-widget-modal :is(button,section):focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(min-width:981px){.steam-widget-label-row,.steam-widget-field>label{min-height:50px}.steam-widget-help-link{min-height:50px}.steam-widget-submit{min-height:56px}.steam-widget-login-help summary{min-height:50px}}
@media(max-width:1080px){.steam-widget-form{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.steam-widget-fields{grid-template-columns:minmax(0,1fr) 150px;gap:12px}.steam-widget-summary{padding:20px}.steam-widget-method{padding:10px}.steam-widget-help-link{font-size:10px}}
@media(max-width:880px){.steam-widget-form{grid-template-columns:1fr;gap:22px}.steam-widget-fields{grid-template-columns:minmax(0,1fr) 210px;gap:16px}.steam-widget-summary{padding:20px}.steam-widget-summary-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.steam-widget-summary-rows>div{flex-direction:column;gap:4px}.steam-widget-summary-rows strong{font-size:16px}.steam-widget-total{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding-top:16px}.steam-widget-total>strong{font-size:30px}.steam-widget-head{gap:14px}.steam-widget-badge{font-size:10px;padding:6px 8px}.steam-widget-logo{width:46px;height:46px;flex-basis:46px}.steam-widget-submit{margin-top:16px}}
@media(max-width:620px){.catalog-page #steam-topup.steam-widget{padding:18px;border-radius:18px}.steam-widget-head{margin-bottom:20px;padding-bottom:18px}.steam-widget-heading{gap:11px}.catalog-page #steam-topup.steam-widget h1{font-size:24px!important}.steam-widget-heading p{font-size:12px;margin-top:4px}.steam-widget-badge{display:none}.steam-widget-logo{width:44px;height:44px;flex-basis:44px;font-size:26px;border-radius:12px}.steam-widget-fields{grid-template-columns:1fr;gap:16px}.steam-widget-label-row{min-height:44px}.steam-widget-field>label{min-height:30px}.steam-widget-help-link{font-size:12px;min-height:44px;margin:0}.catalog-page #steam-topup.steam-widget .steam-widget-field input{height:52px;font-size:16px}.steam-widget-login-status{font-size:12px}.steam-widget-methods{gap:8px}.steam-widget-method{padding:9px 8px;min-height:76px;gap:3px}.steam-widget-method strong{font-size:12px}.steam-widget-method small{font-size:10px;white-space:nowrap}.steam-widget-payments{margin-top:22px}.steam-widget-summary{padding:18px;border-radius:13px}.steam-widget-summary h2{font-size:16px;margin-bottom:16px}.steam-widget-summary-rows{grid-template-columns:1fr;gap:10px}.steam-widget-summary-rows>div{flex-direction:row;align-items:baseline;gap:12px}.steam-widget-summary-rows strong{font-size:13px}.steam-widget-total>strong{font-size:28px}.steam-widget-submit{min-height:50px;font-size:13px}.steam-widget-summary-rows>div,.steam-widget-total>span{font-size:12px}#steamOrderModal.steam-widget-modal .steam-order-modal-actions{grid-template-columns:1fr}#steamOrderModal.steam-widget-modal .steam-order-summary-row{font-size:12px}#steamOrderModal.steam-widget-modal .steam-order-modal-note{font-size:11px}}
@media(max-width:360px){.catalog-page #steam-topup.steam-widget{padding:16px}.catalog-page #steam-topup.steam-widget h1{font-size:22px!important}.steam-widget-method strong{font-size:11px}.steam-widget-fee-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.steam-widget-total>strong{font-size:25px}.steam-widget-summary{padding:16px}.steam-widget-summary-rows>div,.steam-widget-total>span{font-size:11px}.steam-widget-help-link{font-size:11px}}
@media(prefers-reduced-motion:reduce){.steam-widget *,.steam-widget-modal *{transition:none!important;scroll-behavior:auto!important}}

/* Both fees stay readable on narrow method tiles. */
.catalog-page #steam-topup .steam-widget-method small{white-space:normal;line-height:1.45}
