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

body {
    margin: 0;
    background: #ffffff;
}

.v5-page {
    width: 432px;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    background: #fff;
}

.v5-header {
    height: 203px;
    background: #f7f7f7;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 33px;
}

.v5-logo {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 12px;
}

.v5-brand-title {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    color: #0a0a0a;
}

.v5-content {
    --v5-block-gap: 32px;
    --v5-block-gap-tight: 16px;
    --v5-section-gap: calc(var(--v5-block-gap-tight) * 1.4);
    padding: 34px 24px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.v5-section-label {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.v5-plan-wrap {
    margin-bottom: var(--v5-block-gap);
}

.v5-plan-box {
    width: 384px;
    max-width: 100%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid rgba(33, 33, 33, 0.09);
    background: #fff;
    position: relative;
}

.v5-radio-outer {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #1f48ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v5-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f48ff;
}

.v5-plan-price {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.v5-plan-then {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-weight: 300;
    font-size: 14px;
    color: rgba(43, 43, 43, 0.82);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

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

.v5-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: v5-skeleton-shimmer 1.4s ease-in-out infinite;
}

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

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

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

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

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

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

.v5-skeleton-access-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--v5-section-gap);
}

.v5-skeleton-access-label {
    width: 220px;
    max-width: 70%;
    height: 14px;
}

.v5-skeleton-access-price {
    width: 36px;
    height: 14px;
    flex-shrink: 0;
}

.v5-skeleton-join {
    width: 100%;
    height: 41px;
    margin-bottom: var(--v5-section-gap);
}

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

.v5-express-wrap {
    width: 384px;
    max-width: 100%;
    min-height: 48px;
    margin-bottom: 0;
}

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

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

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

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

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

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

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

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

.v5-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: "Inter", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: -0.02px;
    background: #fff;
}

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

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

.v5-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: var(--v5-section-gap);
}

#card-element {
    width: 100%;
}

.v5-access-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 384px;
    max-width: 100%;
    margin-bottom: var(--v5-section-gap);
}

.v5-access-label {
    font-weight: 300;
    font-size: 14px;
    color: rgba(43, 43, 43, 0.82);
    letter-spacing: -0.02em;
}

.v5-access-price {
    font-weight: 500;
    font-size: 14px;
    color: rgba(43, 43, 43, 0.82);
    letter-spacing: -0.02em;
}

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

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

.v5-join-wrap {
    margin-bottom: var(--v5-section-gap);
}

.v5-join-btn {
    width: 382px;
    max-width: 100%;
    height: 41px;
    background: #f8d481;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 15px;
    color: #0a0a0a;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

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

.v5-trust-row {
    display: flex;
    justify-content: space-between;
    width: 384px;
    max-width: 100%;
}

.v5-trust-item {
    font-weight: 300;
    font-size: 14px;
    color: rgba(43, 43, 43, 0.82);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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