.fc-premium-modal__dialog {
    width: min(100% - 1.5rem, 800px);
    max-width: 800px;
}

.fc-premium-modal__content {
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 47, 72, 0.2);
}

.fc-premium-modal__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid #edf2f7;
}

.fc-premium-modal__topbar h2 {
    margin: 0;
    color: #1f2f48;
    font-size: 1.1rem;
    font-weight: 800;
}

.fc-premium-modal__close,
.fc-premium-back {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fc-premium-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #71839c;
}

.fc-premium-modal__close:hover,
.fc-premium-modal__close:focus-visible {
    color: #304766;
    background: #f3f6fa;
}

.fc-premium-modal__viewport {
    overflow: hidden;
}

.fc-premium-modal__stage {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.42s cubic-bezier(0.22, 0.75, 0.25, 1);
}

.fc-premium-modal__stage[data-premium-stage="checkout"] {
    transform: translateX(-50%);
}

.fc-premium-modal__screen {
    width: 50%;
    min-width: 50%;
    padding: 1.3rem 1.35rem 1.45rem;
}

.fc-premium-modal__screen--checkout {
    display: flex;
    flex-direction: column;
}

.fc-premium-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.fc-premium-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.55rem 1rem 1rem;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #fff;
}

.fc-premium-plan--premium {
    padding-top: 1.55rem;
    border-color: #e3b93f;
    background: #fffaf0;
    box-shadow: 0 10px 26px rgba(196, 145, 18, 0.12);
}

.fc-premium-plan__ribbon {
    position: absolute;
    top: 0;
    right: 0.85rem;
    transform: translateY(-1px);
    padding: 0.26rem 0.55rem;
    border-radius: 0 0 7px 7px;
    color: #6d4b00;
    background: #f6d777;
    font-size: 0.62rem;
    font-weight: 800;
}

.fc-premium-plan__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.fc-premium-plan h3 {
    margin: 0;
    color: #263b58;
    font-size: 1rem;
    font-weight: 800;
}

.fc-premium-plan--premium h3 {
    color: #6d4b00;
}

.fc-premium-plan__label {
    display: block;
    margin-top: 0.22rem;
    color: #8a9ab0;
    font-size: 0.67rem;
    line-height: 1.25;
}

.fc-premium-plan__price {
    flex-shrink: 0;
    color: #526782;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.fc-premium-plan--premium .fc-premium-plan__price {
    color: #8b6500;
}

.fc-premium-plan__price small {
    font-size: 0.68rem;
    font-weight: 700;
}

.fc-premium-plan__features {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 1.05rem;
    padding: 0;
    color: #536881;
    font-size: 0.77rem;
    line-height: 1.4;
    list-style: none;
}

.fc-premium-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.48rem;
}

.fc-premium-plan__features i {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: #18a566;
    font-size: 0.9rem;
    font-weight: 800;
}

.fc-premium-plan__features em {
    color: #5f8a72;
    font-size: 0.68rem;
    font-style: normal;
}

.fc-premium-plan__button,
.fc-premium-checkout__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-premium-plan__button {
    margin-top: auto;
}

.fc-premium-plan__button:active,
.fc-premium-checkout__submit:active:not(:disabled) {
    transform: translateY(1px);
}

.fc-premium-plan__button--current {
    border: 1px solid #dfe6ef;
    color: #93a1b2;
    background: #f3f6f9;
    cursor: default;
}

.fc-premium-plan__button--premium {
    border: 1px solid #b88918;
    color: #fff;
    background: #d4a72c;
    box-shadow: 0 7px 16px rgba(196, 145, 18, 0.18);
}

.fc-premium-checkout__submit {
    border: 1px solid #14915d;
    color: #fff;
    border-color: #14915d;
    background: #159b61;
    box-shadow: 0 7px 16px rgba(21, 155, 97, 0.18);
}

.fc-premium-plan__button--premium:hover,
.fc-premium-plan__button--premium:focus-visible {
    background: #bd8e1c;
    box-shadow: 0 9px 20px rgba(168, 119, 12, 0.24);
}

.fc-premium-checkout__submit:hover:not(:disabled),
.fc-premium-checkout__submit:focus-visible:not(:disabled) {
    background: #10804f;
    box-shadow: 0 9px 20px rgba(16, 128, 79, 0.24);
}

.fc-premium-back {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: auto;
    min-width: 92px;
    height: 34px;
    margin: -0.1rem 0 1rem;
    padding: 0 0.65rem;
    color: #55708f;
    font-size: 0.77rem;
    font-weight: 750;
    white-space: nowrap;
    justify-content: flex-start;
}

.fc-premium-back:hover,
.fc-premium-back:focus-visible {
    color: #1e9c63;
}

.fc-premium-checkout__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #e6edf5;
    border-radius: 10px;
    color: #71839c;
    background: #f8fafc;
    font-size: 0.76rem;
}

.fc-premium-checkout__summary strong {
    color: #2d4463;
}

.fc-premium-checkout__form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.95rem;
}

.fc-premium-checkout__submit {
    margin-top: auto;
}

.fc-premium-field {
    display: grid;
    gap: 0.38rem;
    color: #354d6c;
    font-size: 0.76rem;
    font-weight: 800;
}

.fc-premium-field input {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    color: #253b59;
    background: #fff;
    font: inherit;
    font-size: 0.84rem;
    outline: none;
}

.fc-premium-field input:focus {
    border-color: #42af7e;
    box-shadow: 0 0 0 3px rgba(21, 155, 97, 0.12);
}

.fc-premium-consent {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    color: #60738d;
    font-size: 0.72rem;
    line-height: 1.45;
    cursor: pointer;
}

.fc-premium-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0;
    accent-color: #159b61;
}

.fc-premium-checkout__submit:disabled {
    border-color: #d9e2ec;
    color: #9aa9ba;
    background: #edf2f6;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .fc-premium-modal__dialog {
        width: calc(100% - 0.8rem);
        margin: 0.4rem auto;
    }

    .fc-premium-modal__content {
        border-radius: 16px;
    }

    .fc-premium-modal__topbar {
        gap: 0.5rem;
        padding: 0.55rem 0.7rem;
    }

    .fc-premium-modal__topbar h2 {
        max-width: calc(100% - 2rem);
        font-size: 0.95rem;
        line-height: 1.1;
        letter-spacing: -0.015em;
        white-space: nowrap;
    }

    .fc-premium-modal__close {
        width: 28px;
        height: 28px;
    }

    .fc-premium-modal__screen {
        width: 50%;
        min-width: 50%;
        padding: 1rem 0.85rem 1.1rem;
    }

    .fc-premium-modal__stage {
        display: flex;
        flex-wrap: nowrap;
        width: 200%;
        transform: translateX(0);
    }

    .fc-premium-modal__stage[data-premium-stage="checkout"] {
        transform: translateX(-50%);
    }

    .fc-premium-plans {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .fc-premium-plan {
        padding: 1.5rem 0.9rem 0.9rem;
    }

    .fc-premium-plan--premium {
        padding-top: 1.5rem;
    }

    .fc-premium-consent {
        align-items: flex-start;
    }

    .fc-premium-consent input {
        margin-top: 0.12rem;
    }
}
