*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.checkout-page {
    width: 432px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
}

.checkout-content {
    --block-gap: 32px;
    --section-gap: calc(16px * 1.4);
    --footer-stack-gap: 48px;
    --checkout-section-gap: 33.4px;
    --checkout-button-color: #228b22;
    --checkout-button-color-light: #4aa04a;
    --checkout-button-text: #ffffff;
    --checkout-button-shadow: rgba(34, 139, 34, 0.25);
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.checkout-hero-cover {
    display: flex;
    justify-content: center;
    width: 384px;
    max-width: 100%;
    margin: 0 auto var(--checkout-section-gap);
}

.checkout-hero-cover__image {
    width: 209px;
    height: 209px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(10, 10, 10, 0.12);
}

.plan-single {
    margin: 0 0 var(--checkout-section-gap);
    width: 384px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.plan-option__box--selected {
    position: relative;
    border-color: rgba(31, 72, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(31, 72, 255, 0.12);
}

.plan-option__box--selected::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #1f48ff;
    background: #fff;
}

.plan-option__box--selected::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f48ff;
}

.plan-list {
    margin: 0 0 var(--checkout-section-gap);
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-benefit-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 384px;
    max-width: 100%;
    margin: 0 auto var(--checkout-section-gap);
    padding: 0;
}

.plan-benefit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 19px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: linear-gradient(180deg, #fffdf7 0%, #faf6eb 100%);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
    font-size: 14px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.78);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.included-bundle {
    width: 384px;
    max-width: 100%;
    margin: 0 auto var(--checkout-section-gap);
}

.included-bundle__content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.included-bundle__left {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.included-bundle__heading {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 14px;
}

.included-bundle__badge-icon {
    width: 20px;
    height: 20px;
    color: #c9a227;
    transform: rotate(-14deg);
    flex-shrink: 0;
}

.included-bundle__pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 19px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: linear-gradient(180deg, #fffdf7 0%, #faf6eb 100%);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
    font-size: 14px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.78);
    letter-spacing: 0.05em;
}

.included-bundle__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.included-bundle__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(10, 10, 10, 0.76);
    letter-spacing: 0.02em;
}

.included-bundle__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #c9a227;
    margin-top: 1px;
}

.included-bundle__cover {
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(10, 10, 10, 0.12);
}

.plan-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.plan-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.plan-option__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px;
    padding: 12px 14px 12px 46px;
    border-radius: 5px;
    border: 1px solid rgba(33, 33, 33, 0.09);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-option__box::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(31, 72, 255, 0.35);
    background: #fff;
    transition: border-color 0.15s ease;
}

.plan-option__box::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f48ff;
    transition: transform 0.15s ease;
}

.plan-option__input:checked + .plan-option__box {
    border-color: rgba(31, 72, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(31, 72, 255, 0.12);
}

.plan-option__input:checked + .plan-option__box::before {
    border-color: #1f48ff;
}

.plan-option__input:checked + .plan-option__box::after {
    transform: translateY(-50%) scale(1);
}

.plan-option__input:focus-visible + .plan-option__box {
    outline: 2px solid #1f48ff;
    outline-offset: 2px;
}

.plan-option:hover .plan-option__box {
    border-color: rgba(31, 72, 255, 0.25);
}

.plan-option__item {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.plan-option__price {
    margin: 0;
    font-weight: 300;
    font-size: 14px;
    color: rgba(43, 43, 43, 0.82);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.payment-skeleton {
    width: 384px;
    max-width: 100%;
}

.payment-skeleton[hidden] {
    display: none !important;
}

.skeleton {
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        rgba(33, 33, 33, 0.06) 0%,
        rgba(33, 33, 33, 0.1) 50%,
        rgba(33, 33, 33, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-divider {
    width: 100%;
    height: 12px;
    margin-top: 1.4px;
    margin-bottom: calc(12px + 1.4px);
}

.skeleton-express {
    width: 100%;
    height: 48px;
    margin-bottom: calc(12px + 1.4px);
}

.skeleton-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.skeleton-input {
    width: 188px;
    height: 53px;
    flex-shrink: 0;
}

.skeleton-card {
    width: 100%;
    height: 53px;
    margin-bottom: var(--section-gap);
}

.skeleton-join {
    width: 100%;
    height: 82px;
}

#payment-methods[hidden] {
    display: none !important;
}

.express-wrap {
    width: 384px;
    max-width: 100%;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.express-wrap:not(.is-express-collapsed) {
    margin-bottom: calc(12px + 1.4px);
}

.express-wrap.is-express-collapsed {
    display: none;
}

.express-wrap.is-checkout-busy {
    pointer-events: none;
}

.express-wrap.is-checkout-busy #express-checkout-element {
    visibility: hidden;
}

.checkout-block-stack {
    display: grid;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.checkout-block-stack > * {
    grid-area: 1 / 1;
}

.block-loader-track {
    display: none;
    align-self: stretch;
    justify-self: stretch;
    z-index: 5;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    background: rgba(255, 255, 255, 0.88);
    pointer-events: none;
}

.is-checkout-busy .block-loader-track {
    display: flex;
}

.express-wrap.is-checkout-busy .block-loader-track {
    background: rgba(0, 0, 0, 0.75);
}

.block-loader__spinner {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(33, 33, 33, 0.2);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: block-loader-spin 0.7s linear infinite;
}

.express-wrap.is-checkout-busy .block-loader__spinner {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
}

@keyframes block-loader-spin {
    to { transform: rotate(360deg); }
}

#express-checkout-element {
    width: 100%;
    min-height: 48px;
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 384px;
    max-width: 100%;
    margin-top: 1.4px;
    margin-bottom: calc(12px + 1.4px);
}

.divider-row[hidden] {
    display: none !important;
}

#divider-row {
    margin-bottom: 33.4px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(33, 33, 33, 0.09);
}

.divider-text {
    font-size: 12px;
    color: rgba(43, 43, 43, 0.5);
    font-weight: 400;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.name-email-row {
    display: flex;
    gap: 8px;
    width: 384px;
    max-width: 100%;
    margin-bottom: 8px;
}

.text-input {
    width: 188px;
    height: 53px;
    flex-shrink: 0;
    border: 1px solid rgba(33, 33, 33, 0.09);
    border-radius: 5px;
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    font-weight: 400;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: -0.02px;
    background: #fff;
}

.text-input::placeholder {
    color: rgba(43, 43, 43, 0.44);
}

.text-input:focus {
    border: 1px solid rgba(33, 33, 33, 0.3);
}

.card-single-line {
    width: 384px;
    max-width: 100%;
    height: 53px;
    border: 1px solid rgba(33, 33, 33, 0.09);
    border-radius: 5px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 33.4px;
}

#card-element {
    width: 100%;
}

.payment-error {
    display: none;
    font-size: 13px;
    color: #df1b41;
    margin-bottom: 8px;
}

.payment-error:not(:empty) {
    display: block;
}

.join-wrap.is-checkout-busy {
    pointer-events: none;
}

.join-wrap.is-checkout-busy .join-btn {
    opacity: 1;
}

.join-wrap {
    position: relative;
    margin-bottom: var(--footer-stack-gap);
    width: 100%;
    max-width: 384px;
    margin-left: auto;
    margin-right: auto;
}

.join-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 382px;
    min-height: 82px;
    height: auto;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--checkout-button-color-light) 0%, var(--checkout-button-color) 100%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    padding: 12px 16px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 18px var(--checkout-button-shadow);
}

.join-btn:hover:not(:disabled) {
    filter: brightness(1.04);
}

.join-btn__title {
    width: 100%;
    max-width: 100%;
    font-weight: 700;
    font-size: 17px;
    color: var(--checkout-button-text);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
}

.join-btn__subtitle {
    width: 100%;
    max-width: 100%;
    font-weight: 300;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
}

.join-btn__loading {
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    color: var(--checkout-button-text);
    letter-spacing: 0.02em;
    text-align: center;
}

.join-btn.is-loading .join-btn__title,
.join-btn.is-loading .join-btn__subtitle {
    display: none;
}

.join-btn.is-loading .join-btn__loading {
    display: block !important;
}

.join-btn:not(.is-loading) .join-btn__loading {
    display: none !important;
}

.join-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.card-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 384px;
    max-width: 100%;
    margin-bottom: var(--footer-stack-gap);
}

.card-brand {
    width: 36px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.checkout-support {
    width: 384px;
    max-width: 100%;
    margin: 0 auto var(--footer-stack-gap);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-align: center;
    color: rgba(43, 43, 43, 0.62);
    line-height: 1.45;
}

.checkout-support__label {
    display: block;
}

.checkout-support__email {
    display: block;
    margin-top: 2px;
    color: rgba(43, 43, 43, 0.62);
    text-decoration: none;
}

.checkout-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    width: 384px;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.checkout-legal a {
    font-size: 12px;
    font-weight: 400;
    color: rgba(43, 43, 43, 0.62);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.checkout-legal a:hover {
    color: rgba(43, 43, 43, 0.85);
}

.checkout-legal__sep {
    font-size: 12px;
    color: rgba(43, 43, 43, 0.35);
}

.checkout-ui-hidden {
    display: none !important;
}

@media (max-width: 432px) {
    .checkout-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .name-email-row {
        flex-direction: column;
    }

    .text-input,
    .skeleton-input {
        width: 100%;
    }

    .join-btn {
        padding: 12px 14px;
        min-height: 76px;
    }

    .join-btn__title {
        font-size: 16px;
    }

    .join-btn__subtitle {
        font-size: 12px;
    }
}
