.checkout-page {
    display: flex;
    justify-content: center;
    padding: 0 0 2rem;
    color: #111827;
}

.checkout-card {
    width: 100%;
    max-width: 440px;
    padding: 28px 30px 26px;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.checkout-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.checkout-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-card__badge {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f1f5ff;
    color: #46526a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.checkout-price {
    min-width: 0;
}

.checkout-price p {
    margin: 0;
}

.checkout-price__amount {
    font-family: Poppins, "Noto Sans JP", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.015em;
}

.checkout-price__period {
    margin-left: 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.checkout-price .checkout-price__tax {
    margin-top: 2px;
    color: #687386;
    font-size: 11px;
    font-weight: 600;
}

.checkout-renewal {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0;
    color: #596579;
    font-size: 12px;
    font-weight: 700;
}

.checkout-renewal__info {
    display: inline-flex;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #748095;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.checkout-divider {
    height: 1px;
    margin-top: 15px;
    background: #dbe0e8;
}

.checkout-benefits {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.checkout-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #273246;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.checkout-benefits svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: #1264ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.checkout-action {
    margin-top: 30px;
}

.checkout-action__button {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 7px;
    background: #1019ff;
    box-shadow: 0 8px 18px rgba(16, 25, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.checkout-action__button:hover {
    background: #000bd8;
    box-shadow: 0 9px 22px rgba(16, 25, 255, 0.26);
    transform: translateY(-1px);
}

.checkout-action__button:focus-visible {
    outline: 3px solid rgba(16, 25, 255, 0.28);
    outline-offset: 3px;
}

.checkout-action__button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.checkout-action__notes {
    margin-top: 11px;
    color: #687386;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
}

.checkout-action__notes p {
    margin: 0;
}

.checkout-methods-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: #778195;
    font-size: 11px;
    white-space: nowrap;
}

.checkout-methods-title::before,
.checkout-methods-title::after {
    height: 1px;
    flex: 1;
    background: #e0e4eb;
    content: "";
}

.checkout-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.checkout-brand {
    display: flex;
    width: 56px;
    height: 29px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dfe3e9;
    border-radius: 3px;
    background: #fff;
    line-height: 1;
}

.checkout-brand--visa {
    color: #1939a3;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1px;
}

.checkout-brand--mastercard {
    gap: 2px;
    color: #313747;
    font-family: Arial, sans-serif;
    font-size: 5px;
}

.checkout-brand__circles {
    display: flex;
    width: 22px;
}

.checkout-brand__circles i {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ec1c24;
}

.checkout-brand__circles i + i {
    margin-left: -6px;
    background: rgba(247, 158, 27, 0.9);
}

.checkout-brand--jcb {
    gap: 1px;
    border: 0;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.checkout-brand--jcb span {
    display: flex;
    width: 15px;
    height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: #1469b8;
    color: #fff;
}

.checkout-brand--jcb span:nth-child(2) { background: #d92c36; }
.checkout-brand--jcb span:nth-child(3) { background: #168b58; }

.checkout-brand--amex {
    background: #3498d2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-weight: 900;
    line-height: 0.9;
    text-align: center;
}

.checkout-security {
    margin-top: 24px;
    padding: 17px 18px 16px;
    border: 1px solid #dfe3ea;
    border-radius: 7px;
    background: linear-gradient(135deg, #fbfcff 0%, #f8fafc 100%);
}

.checkout-security__title-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkout-security__title-row svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #1264ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.checkout-security h2 {
    margin: 0;
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.checkout-security ul {
    display: grid;
    gap: 4px;
    margin: 10px 0 0 29px;
    padding: 0;
    color: #506075;
    font-size: 11px;
    line-height: 1.6;
    list-style: none;
}

.checkout-security li {
    position: relative;
    padding-left: 14px;
}

.checkout-security li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #0a9f82;
    content: "\2713";
    font-weight: 900;
}

.checkout-confirmation {
    margin-top: 18px;
}

.checkout-confirmation p {
    margin: 0;
    color: #687386;
    font-size: 12px;
    line-height: 1.8;
}

.checkout-confirmation a {
    color: #0818ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-links {
    display: grid;
    gap: 11px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2e6ec;
}

.checkout-links a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    color: #0818ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
}

.checkout-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-links svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 480px) {
    .checkout-page {
        margin-right: -8px;
        margin-left: -8px;
        padding-bottom: 1rem;
    }

    .checkout-card {
        padding: 24px 22px 22px;
        border-radius: 10px;
    }

    .checkout-price__amount {
        font-size: 29px;
    }

    .checkout-methods {
        gap: 7px;
    }

    .checkout-brand {
        width: 51px;
    }

    .checkout-action__button {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-action__button {
        transition: none;
    }
}
