﻿.payment-site {
    margin: 0;
    background: #f5f7fa;
    color: #253649;
    font: 16px/1.55 "Open Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.payment-site * { box-sizing: border-box; }
.payment-site a { color: #176bb2; text-underline-offset: 3px; }
.payment-site a:hover { color: #11548d; }
.payment-site :focus-visible:not(.human-confirm, .human-confirm *) { outline: 3px solid #2581cb; outline-offset: 4px; }
/* The automatically focused dialog container keeps the shared dialog's own border. */
.payment-site .human-confirm__panel:focus { outline: none; }
.payment-site svg { flex-shrink: 0; }
.pay-header, .pay-container, .pay-footer { width: min(940px, calc(100% - 48px)); margin: auto; }
.pay-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 25px 0; }
.pay-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.35; }
.pay-support { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; min-height: 44px; }
.pay-intro { padding: 28px 0 30px; text-align: center; }
.pay-intro h1 { margin: 0; font: 700 clamp(28px, 4vw, 36px)/1.2 "Raleway", "Open Sans", sans-serif; letter-spacing: -.6px; color: #20384d; }
.pay-intro p { margin: 12px 0 0; color: #687789; font-size: 15px; }
.pay-card { padding: 30px; background: #fff; border: 1px solid #e1e7ee; border-radius: 22px; box-shadow: 0 8px 28px #253d5a05; }
.pay-card h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.35; color: #20384d; }
.pay-card h3 { font-size: 18px; line-height: 1.4; }
.pay-card p { margin: 0 0 16px; }
.pay-card dl { margin: 0; overflow-wrap: anywhere; }
.pay-card dt { margin-top: 16px; font-size: 13px; color: #687789; }
.pay-card dd { margin: 4px 0 0; }
.pay-help, .pay-card small { font-size: 13px; color: #687789; }
.pay-eyebrow { font-size: 13px; font-weight: 600; color: #57717c; }
.pay-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid #176bb2;
    border-radius: 12px;
    background: #176bb2;
    color: #fff !important;
    font: 600 16px/1.4 "Open Sans", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, box-shadow .15s;
}
.pay-button:hover { background: #125995; box-shadow: 0 5px 14px #176bb21f; }
.pay-button:disabled { opacity: .65; cursor: wait; }
.pay-button.secondary { background: #edf4fa; color: #176bb2 !important; border-color: #cfdfed; }
.pay-button.secondary:hover { background: #e4eff8; }

/* One action opens the bank. The marks describe payment methods, not extra buttons. */
.pay-direct { display: grid; grid-template-columns: minmax(0, 1fr) 304px; column-gap: 40px; padding: 28px 28px 0; overflow: hidden; }
.pay-direct-action { align-self: center; width: 100%; max-width: 350px; margin: 0 auto; padding: 20px 0; }
.pay-direct-action .pay-methods-label { margin-bottom: 20px; text-align: center; font-size: 14px; color: #687789; }
.pay-providers { display: flex; align-items: flex-start; justify-content: space-evenly; gap: 20px; margin-bottom: 30px; }
.pay-providers > div { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pay-providers img { display: block; width: auto; height: 48px; object-fit: contain; }
.pay-providers span { font-size: 11px; white-space: nowrap; color: #637487; }
.pay-primary { width: 100%; min-height: 58px; font-size: 18px; }
.pay-direct-action .pay-amount-hint { margin: 11px 0 0; font-size: 14px; text-align: center; color: #637487; }
.pay-direct-action .pay-bank-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 27px 0 0; font-size: 12px; color: #687789; text-align: center; }
.pay-bank-note svg { color: #607b71; }
.pay-direct-qr { padding: 22px 22px 16px; text-align: center; background: #f5f8fb; border-radius: 16px; }
.pay-direct-qr h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.pay-direct-qr .pay-help { margin: 0 0 8px; }
.pay-direct-qr > img { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto 6px; border-radius: 12px; background: white; }
.pay-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; font-size: 13px; text-decoration: none; }
.pay-recipient { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; padding: 20px 0; margin-top: 26px; border-top: 1px solid #e8edf2; color: #687789; font-size: 12px; }
.pay-recipient strong { font-weight: 600; color: #43586c; }
.pay-without-qr { grid-template-columns: 1fr; }
.pay-without-qr .pay-direct-action { max-width: 640px; }
.pay-without-qr .pay-primary { max-width: 350px; display: flex; margin: auto; }
.pay-without-qr .pay-requisites dl { display: grid; grid-template-columns: 180px 1fr; gap: 12px 20px; padding-top: 16px; }
.pay-without-qr .pay-requisites dt, .pay-without-qr .pay-requisites dd { margin: 0; }

/* Details are secondary to payment and stay closed until needed. */
.pay-report { margin-top: 16px; padding: 20px 26px; border-radius: 16px; box-shadow: none; }
.pay-report summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 44px; list-style: none; }
.pay-report summary::-webkit-details-marker { display: none; }
.pay-report-heading { display: flex; align-items: center; gap: 15px; font-size: 15px; font-weight: 600; }
.pay-report-heading > svg { color: #637c94; }
.pay-report-heading small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
.pay-report-action { display: inline-flex; align-items: center; gap: 8px; color: #176bb2; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pay-report details[open] > summary .pay-report-action svg { transform: rotate(180deg); }
.pay-report form { margin-top: 25px; padding-top: 24px; border-top: 1px solid #e8edf2; }
.pay-channel-switch { margin: 20px 0 0; text-align: center; font-size: 13px; }
.pay-channel-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; }
.pay-personal { margin: 3px auto 0; max-width: 100%; color: #687789; font-size: 13px; }
.pay-personal > details > summary { padding: 10px 0; text-align: center; cursor: pointer; }
.pay-personal form { max-width: 540px; margin: 16px auto 8px; text-align: left; }
.pay-personal p { margin: 16px 0 0; }
.pay-personal.pay-card { margin-top: 20px; font-size: 16px; }
.pay-personal.pay-card > details > summary { text-align: left; }
.pay-stack { display: flex; flex-direction: column; gap: 12px; }
.pay-stack .pay-card + .pay-card { margin-top: 8px; }
/* Same drop area and file chip treatment as the site's contact forms. */
.pay-receipt > label { display: block; margin-bottom: 6px; }
.pay-receipt > .pay-help { margin: 6px 0 10px; }
.pay-receipt-dropzone {
    position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 60px;
    padding: 8px 12px; border: 1px dashed #87aba2; border-radius: 8px; background: #f2f8f6; overflow: hidden;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pay-receipt-dropzone:hover, .pay-receipt-dropzone:focus-within, .pay-receipt-dropzone.hover {
    background: #e5f2ed; border-color: #388675; box-shadow: 0 0 0 .1rem #3886751f;
}
.pay-receipt-dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: .01; cursor: pointer; border: 0; }
.pay-receipt-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; pointer-events: none; }
.pay-receipt-hint > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: #1977cc; }
.pay-receipt-selected { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 8px; padding: 4px 8px 4px 12px; border: 1px solid #dee2e6; border-radius: 20px; background: #f8f9fa; font-size: 13px; }
.pay-receipt-selected > span { min-width: 0; overflow-wrap: anywhere; }
.pay-receipt-selected button { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #687789; font-size: 24px; cursor: pointer; }
.pay-receipt-selected button:hover { background: #e9ecef; color: #253649; }
.pay-card .pay-receipt-error { color: #a12b2b; font-size: 13px; margin: 8px 0 0; }
.pay-stack input, .pay-stack select, .pay-card input, .pay-card select {
    width: 100%; max-width: 100%; min-height: 48px; padding: 11px 13px;
    border: 1px solid #bdcbd8; border-radius: 9px; background: #fff; color: #253649; font: inherit;
}
.pay-stack label, .pay-card label { font-weight: 600; font-size: 14px; }
.pay-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pay-form-grid label { display: block; margin-bottom: 6px; }
.pay-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pay-card [hidden] { display: none !important; }

/* Existing personal orders, receipts and payment terms use the same visual language. */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.pay-notice { padding: 16px 18px; margin: 0 0 20px; border-radius: 12px; background: #edf4fa; border: 1px solid #d3e3ef; }
.pay-notice.error { color: #922d28; background: #fff4f2; border-color: #efc2bd; }
.pay-notice.success { color: #186348; background: #edf8f2; border-color: #bcdacb; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-methods .pay-help { margin: 0; text-align: center; }
.pay-qr { text-align: center; border: 1px solid #e1e7ee; border-radius: 12px; padding: 14px; }
.pay-qr summary, .pay-requisites summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; }
.pay-qr img { display: block; width: min(294px, 100%); height: auto; margin: 16px auto; }
.pay-requisites { margin-top: 20px; border-top: 1px solid #e8edf2; padding-top: 8px; }
.pay-summary { position: sticky; top: 20px; background: #f5faf8; border-color: #d3e3db; }
.pay-summary h2 { margin-top: 16px; }
.pay-total { font-size: 34px; font-weight: 700; letter-spacing: -.7px; line-height: 1.3; color: #226853; }
.pay-divider { height: 1px; background: #dbe6e0; margin: 24px 0; }
.pay-badge { display: inline-block; border-radius: 20px; background: #e3f3eb; color: #21664e; padding: 4px 12px; font-size: 13px; margin-bottom: 16px; }
.pay-welcome { max-width: 850px; }
.pay-terms { max-width: 850px; margin: auto; }
.pay-terms h2:not(:first-child) { margin-top: 30px; }
.pay-footer { padding: 24px 0 30px; margin-top: 30px; border-top: 1px solid #e1e7ee; text-align: center; color: #687789; font-size: 12px; }
.pay-footer p { margin: 0 0 12px; }
.pay-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
.pay-footer a { color: #60768c; }
.pay-skip { position: absolute; left: 12px; top: -60px; background: white; padding: 12px; z-index: 5; }
.pay-skip:focus { top: 8px; }

@media (max-width: 760px) {
    .pay-header, .pay-container, .pay-footer { width: calc(100% - 28px); }
    .pay-header { padding: 16px 0; gap: 16px; }
    .pay-brand { font-size: 13px; gap: 9px; max-width: 240px; overflow-wrap: anywhere; }
    .pay-brand img { width: 32px; height: 32px; }
    .pay-support { font-size: 12px; gap: 5px; }
    .pay-support svg { width: 18px; height: 18px; }
    .pay-intro { padding: 18px 0 24px; }
    .pay-intro h1 { font-size: 28px; }
    .pay-card { padding: 22px; border-radius: 18px; }
    .pay-direct { grid-template-columns: 1fr; padding: 24px 22px 0; gap: 0; }
    .pay-direct-action { max-width: 100%; padding: 0; }
    .pay-direct-action .pay-methods-label { margin-bottom: 16px; font-size: 13px; }
    .pay-providers { margin-bottom: 22px; gap: 16px; }
    .pay-providers > div { gap: 9px; }
    .pay-providers img { height: 42px; }
    .pay-providers span { font-size: 10px; }
    .pay-primary { min-height: 54px; font-size: 17px; }
    .pay-direct-action .pay-amount-hint { margin-top: 10px; font-size: 13px; }
    .pay-direct-action .pay-bank-note { margin: 16px 0 0; font-size: 11px; }
    .pay-direct-qr { margin-top: 24px; padding: 18px 16px 8px; }
    .pay-direct-qr h2 { font-size: 16px; }
    .pay-direct-qr > img { width: 220px; }
    .pay-direct-qr .pay-help { font-size: 12px; }
    .pay-recipient { margin-top: 20px; padding: 16px 0; gap: 4px 8px; font-size: 11px; }
    .pay-recipient > span:first-child { flex-basis: 100%; text-align: center; }
    .pay-report { padding: 16px 20px; border-radius: 14px; }
    .pay-report summary { gap: 10px; }
    .pay-report-heading { font-size: 14px; gap: 9px; }
    .pay-report-heading small { display: none; }
    .pay-report-action { font-size: 12px; gap: 4px; }
    .pay-report-heading > svg { width: 20px; height: 20px; }
    .pay-channel-switch { font-size: 12px; margin-top: 12px; }
    .pay-personal { font-size: 12px; }
    .pay-form-grid { grid-template-columns: 1fr; }
    .pay-stack input, .pay-stack select { font-size: 16px; }
    .pay-grid { grid-template-columns: 1fr; gap: 18px; }
    .pay-summary { position: static; grid-row: 1; }
    .pay-summary dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 14px; }
    .pay-summary dt, .pay-summary dd { margin-top: 0; }
    .pay-summary .pay-divider { margin: 18px 0; }
    .pay-total { font-size: 30px; }
    .pay-button { width: 100%; }
    .pay-without-qr .pay-requisites dl { grid-template-columns: 1fr; gap: 4px; }
    .pay-without-qr .pay-requisites dt:not(:first-child) { margin-top: 12px; }
    .pay-footer { margin-top: 20px; padding-top: 20px; font-size: 11px; }
    .pay-footer nav { gap: 10px 16px; }
}
[hidden] { display: none !important; }
.pay-back-nav { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
/* Same navigation treatment as the FKKO card's wch-tool / wch-back buttons. */
.pay-back-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid #d5e2eb; border-radius: 10px; background: transparent; color: #315e7c; font-size: .84rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.pay-back-nav a:hover { background: #edf6fb; color: #145a91; }
.pay-email-line { margin: 14px 0 0; font-size: 12px; color: #637181; overflow-wrap: anywhere; text-align: center; }
.pay-email-line button { background: none; border: 0; padding: 4px; color: #176bb2; text-decoration: underline; cursor: pointer; font: inherit; }
.pay-qr-frame { width: 240px; max-width: 100%; aspect-ratio: 1; margin: 14px auto; position: relative; }
.pay-qr-image { width: 100%; height: 100%; background: white center / contain no-repeat; }
.pay-qr-locked { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; position: relative; background: #fff; }
.pay-qr-pattern { position: absolute; inset: 16px; border: 2px dashed #d4dfe5; border-radius: 12px; }
.pay-qr-pattern i { position: absolute; width: 44px; height: 44px; border: 6px solid #8a9da9; border-radius: 10px; background: #fff; box-shadow: 0 0 0 6px #fff; }
.pay-qr-pattern i::after { content: ''; position: absolute; inset: 6px; border-radius: 3px; background: #8a9da9; }
.pay-qr-pattern i:nth-child(1) { top: -2px; left: -2px; }
.pay-qr-pattern i:nth-child(2) { top: -2px; right: -2px; }
.pay-qr-pattern i:nth-child(3) { bottom: -2px; left: -2px; }
.pay-qr-unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; gap: 10px; color: #425b72; }
.pay-qr-unlock .pay-button { width: auto; font-size: 13px; padding: 12px 16px; background: #fff; }
.pay-dialog { width: min(440px, calc(100% - 28px)); max-width: calc(100% - 28px); max-height: calc(100dvh - 32px); border: 1px solid #e2e8ee; border-radius: 24px; padding: 32px; background: #fff; color: #243749; box-shadow: 0 24px 100px #162e4d40; }
.pay-dialog::backdrop { background: #172d49a8; backdrop-filter: blur(4px); }
.pay-dialog h2 { font-size: 26px; margin: 16px 0 8px; }
.pay-dialog p { overflow-wrap: anywhere; }
.pay-dialog .pay-stack { margin-top: 20px; }
.pay-dialog .pay-primary { width: 100%; min-height: 52px; font-size: 16px; }
.pay-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: #f3f6f9; color: #637181; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.pay-dialog-icon { width: 46px; height: 46px; border-radius: 14px; background: #eaf3fb; color: #176bb2; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.pay-dialog-heading { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.pay-dialog-heading .pay-dialog-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 23px; flex: none; }
.pay-dialog .pay-dialog-heading h2 { margin: 0; font-size: clamp(18px, 4.4vw, 24px); }
.pay-privacy { font-size: 11px; line-height: 1.6; color: #637181; margin: 4px 0 0; }
.pay-dialog :focus-visible, .pay-back-nav a:focus-visible { outline: 3px solid #78b4e7; outline-offset: 3px; }
@media (max-width: 760px) {
    .pay-qr-frame { width: 220px; }
    .pay-dialog { padding: 26px 20px; border-radius: 20px; }
    .pay-dialog h2 { font-size: 23px; }
    .pay-dialog-heading { gap: 10px; }
    .pay-dialog-heading .pay-dialog-icon { width: 32px; height: 32px; font-size: 20px; }
    .pay-back-nav { padding-top: 4px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pay-button { transition: none; } }
@media print {
    .pay-header, .pay-footer, .pay-methods, .pay-report, .pay-personal, .pay-channel-switch, form { display: none; }
    .pay-grid { display: block; }
    .pay-card { box-shadow: none; margin-bottom: 20px; }
    .payment-site { background: white; }
}

.pay-access { margin: 36px auto; max-width: 540px; text-align: center; }
