*,
*::before,
*::after {
    box-sizing: border-box;
}

body.pay-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Manrope, "Segoe UI", system-ui, sans-serif;
    color: #1c2b36;
    line-height: 1.5;
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(253, 192, 0, 0.22), transparent 60%),
        radial-gradient(800px 380px at 100% 0%, rgba(2, 48, 72, 0.08), transparent 55%),
        #eef3f6;
}

.pay-header {
    background: #023048;
    color: #fff;
    border-bottom: 3px solid #fdc000;
}

.pay-header-inner,
.pay-shell,
.pay-footer-inner {
    margin-left: 8%;
    margin-right: 8%;
}

.pay-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: 0.85rem 0;
}

.pay-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.pay-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fdc000;
    color: #023048;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.pay-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.pay-brand-text strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.pay-brand-text small {
    margin-top: 0.15rem;
    color: #fdc000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pay-header-tools {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pay-lock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #d7e4ec;
    font-size: 0.78rem;
    font-weight: 700;
}

.pay-lock svg,
.pay-sign-mark svg,
.pay-icon svg,
.pay-status-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pay-lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.pay-lang a {
    min-width: 38px;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #d7e4ec;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
}

.pay-lang a[aria-current="true"] {
    background: #fdc000;
    color: #023048;
}

.pay-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.7fr);
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0 2.5rem;
}

.pay-stage-head {
    margin-bottom: 1rem;
    padding: 0.95rem 1.25rem 0.8rem;
    background: #fff;
    border: 1px solid #e3eaee;
    border-top: 4px solid #fdc000;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(2, 48, 72, 0.06);
}

.pay-stage-head .pay-steps {
    margin: 0;
}

.pay-stage-split {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.15fr);
    gap: 1.25rem;
    align-items: stretch;
}

.pay-izipay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-trust,
.pay-card {
    background: #fff;
    border: 1px solid #e3eaee;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(2, 48, 72, 0.06);
}

.pay-trust {
    padding: 1.5rem 1.35rem 1.25rem;
}

.pay-kicker {
    margin: 0 0 0.35rem;
    color: #8a6a00;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pay-trust h2,
.pay-card h1 {
    margin: 0;
    color: #023048;
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pay-trust-lead,
.pay-card .pay-lead {
    margin: 0.65rem 0 0;
    color: #5c6f7c;
    font-size: 0.92rem;
}

.pay-statement {
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #f7f4ea;
    color: #24343f;
    font-size: 0.88rem;
}

.pay-trust-list {
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.pay-trust-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-top: 1px solid #eef2f4;
}

.pay-trust-list strong,
.pay-trust-list small {
    display: block;
}

.pay-trust-list strong {
    color: #023048;
    font-size: 0.9rem;
}

.pay-trust-list small {
    margin-top: 0.15rem;
    color: #5c6f7c;
    font-size: 0.8rem;
}

.pay-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f6ef;
    color: #0c6b45;
}

.pay-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.pay-cards span {
    padding: 0.28rem 0.55rem;
    border: 1px solid #d7e0e6;
    border-radius: 6px;
    background: #f7fafb;
    color: #354250;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.pay-card {
    padding: 1.5rem 1.5rem 1.35rem;
    border-top: 4px solid #fdc000;
}

.pay-steps {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
}

.pay-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    color: #8aa0ad;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pay-step span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e7eef2;
    color: #5c6f7c;
    font-size: 0.72rem;
}

.pay-step.is-current {
    color: #023048;
}

.pay-step.is-current span,
.pay-step.is-done span {
    background: #023048;
    color: #fdc000;
}

.pay-step.is-done {
    color: #0c6b45;
}

.pay-step.is-done span {
    background: #0c6b45;
    color: #fff;
}

.pay-field {
    margin-top: 1rem;
}

.pay-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #24343f;
    font-size: 0.84rem;
    font-weight: 800;
}

.pay-field input {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid #d5e0e6;
    border-radius: 10px;
    background: #fbfcfd;
    color: #1c2b36;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pay-field input:focus {
    outline: none;
    border-color: #023048;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 48, 72, 0.12);
}

.pay-amount {
    display: flex;
    align-items: stretch;
}

.pay-amount span {
    display: grid;
    place-items: center;
    padding: 0 0.85rem;
    border: 1px solid #d5e0e6;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #023048;
    color: #fdc000;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pay-amount input {
    border-radius: 0 10px 10px 0;
}

.pay-hint,
.pay-secure-note {
    margin: 0.4rem 0 0;
    color: #6d8090;
    font-size: 0.78rem;
}

.pay-secure-note {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.8rem;
    border-radius: 10px;
    background: #f3f8f6;
    color: #245746;
}

.btn-pay,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-pay {
    background: #fdc000;
    color: #023048;
    box-shadow: 0 8px 18px rgba(253, 192, 0, 0.28);
}

.btn-pay:hover {
    background: #ffd24a;
}

.btn-back {
    width: auto;
    background: #023048;
    color: #fff;
}

.btn-back:hover {
    background: #034a6b;
}

.pay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.pay-actions .btn-pay,
.pay-actions .btn-back {
    width: 100%;
    margin-top: 0;
}

.alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

.alert-error {
    background: #fdecec;
    color: #8d1d1d;
    border: 1px solid #f3c7c7;
}

.alert-success {
    background: #e8f6ee;
    color: #0f5c38;
    border: 1px solid #bfe3ce;
}

.pay-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0.95rem 1rem;
    border: 1px solid #e5edf1;
    border-radius: 12px;
    background: #f7fafb;
}

.pay-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pay-summary dt {
    color: #6d8090;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pay-summary dd {
    margin: 0.1rem 0 0;
    color: #023048;
    font-weight: 700;
}

.pay-summary-total {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #d5e0e6;
}

.pay-summary-total strong {
    color: #023048;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.payment-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.25rem;
}

.payment-form-wrapper .kr-embedded,
.payment-form-wrapper .pay-secure-note {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.pay-izipay .payment-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin-top: 0;
}

.pay-status {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.pay-status-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.pay-status-icon svg {
    width: 26px;
    height: 26px;
}

.pay-status.is-success .pay-status-icon {
    background: #e5f6ec;
    color: #0c6b45;
}

.pay-status.is-error .pay-status-icon {
    background: #fdecec;
    color: #9b1c1c;
}

.result-details {
    margin: 1.15rem 0 0;
    padding: 0.35rem 1rem 0.9rem;
    border-radius: 12px;
    background: #f7fafb;
    border: 1px solid #e5edf1;
}

.result-details div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #e8eef2;
}

.result-details div:first-child {
    border-top: 0;
}

.result-details dt {
    color: #6d8090;
    font-size: 0.8rem;
    font-weight: 700;
}

.result-details dd {
    margin: 0;
    color: #023048;
    font-weight: 800;
    text-align: right;
    word-break: break-all;
}

.pay-footer {
    margin-top: auto;
    background: #023048;
    color: #d5e2ea;
}

.pay-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.pay-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.pay-sign-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(253, 192, 0, 0.14);
    color: #fdc000;
    flex-shrink: 0;
}

.pay-sign-mark svg {
    width: 16px;
    height: 16px;
}

.pay-sign-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.pay-sign-line strong {
    color: #fff;
    font-size: inherit;
    font-weight: 700;
}

.pay-sign-line small {
    color: #b7c9d4;
    font-size: inherit;
}

.pay-sign-line em {
    color: #fdc000;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 900px) {
    .pay-header-inner,
    .pay-shell,
    .pay-footer-inner {
        margin-left: 5%;
        margin-right: 5%;
    }
}

@media (max-width: 640px) {
    .pay-shell,
    .pay-stage-split {
        grid-template-columns: 1fr;
    }

    .pay-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pay-lock span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .pay-step {
        font-size: 0;
    }

    .pay-step span {
        font-size: 0.72rem;
    }

    .pay-summary > div,
    .result-details div {
        display: block;
    }

    .result-details dd,
    .pay-summary dd {
        text-align: left;
    }
}
