.paywall-invoice-modal__dialog {
    max-width: 592px !important;
}

.paywall-invoice-modal__title {
    font-family: var(--font-onest);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #2A1C14;
    margin: 0 40px 24px 0;
}

.paywall-invoice-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.paywall-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.paywall-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paywall-form-field__label {
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #191919;
}

.paywall-form-field__req {
    color: #191919;
}

.paywall-form-field__input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #EBEDEF;
    background: var(--bg);
    font-family: var(--font-onest);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #191919;
    box-sizing: border-box;
    transition: border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.paywall-form-field__input::placeholder {
    color: #A7A8A8;
}

.paywall-form-field__input:focus {
    outline: none;
    border-color: var(--orange);
}

.paywall-form-field__select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    color: #A7A8A8;
}

.paywall-form-field__select.is-filled {
    color: #191919;
}

.paywall-form-field__select-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.paywall-form-field__select-flag:empty {
    display: none;
}

.paywall-form-field__select-flag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.paywall-form-field__select-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paywall-form-field__select-caret {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.paywall-invoice-form__total {
    font-family: var(--font-onest);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: #323232;
    text-align: right;
    margin-top: 4px;
    margin-bottom: 4px;
}

.paywall-invoice-form__total strong {
    font-weight: 600;
}

.paywall-invoice-form__error {
    margin: 0;
    color: #D63A19;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.paywall-invoice-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: #ffffff;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.paywall-invoice-form__submit:hover:not(:disabled) {
    background: #e04d23;
    border-color: #e04d23;
}

.paywall-invoice-form__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.paywall-invoice-form__submit:disabled {
    background: #FBD9CE;
    border-color: #FBD9CE;
    color: #ffffff;
    cursor: not-allowed;
}

.paywall-invoice-form__submit.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.paywall-invoice-form__hint {
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #919292;
    text-align: center;
    margin: 0;
}

.paywall-country-modal__dialog {
    max-width: 480px !important;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.paywall-country-modal__title {
    font-family: var(--font-onest);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #191919;
    margin: 0 40px 24px 0;
}

.paywall-country-modal__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 43px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #EBEDEF;
    background: var(--bg);
    margin-bottom: 24px;
}

.paywall-country-modal__search svg {
    flex-shrink: 0;
}

.paywall-country-modal__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-onest);
    font-size: 15px;
    color: #191919;
    height: 100%;
}

.paywall-country-modal__search-input::placeholder {
    color: #A7A8A8;
}

.paywall-country-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    margin-left: -8px;
    margin-right: -8px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.paywall-country-modal__item[hidden] {
    display: none;
}

.paywall-country-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.paywall-country-modal__item:hover,
.paywall-country-modal__item:focus-visible {
    background: #F7F8FA;
    outline: none;
}

.paywall-country-modal__item.is-selected {
    background: #F7F8FA;
}

.paywall-country-modal__flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.paywall-country-modal__name {
    flex: 1;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    color: #242526;
}

.paywall-country-modal__check {
    flex-shrink: 0;
    opacity: 0;
}

.paywall-country-modal__item.is-selected .paywall-country-modal__check {
    opacity: 1;
}

.paywall-country-modal__empty,
.paywall-country-modal__loading {
    padding: 16px;
    text-align: center;
    font-family: var(--font-onest);
    font-size: 14px;
    color: #A7A8A8;
    list-style: none;
}

@media screen and (max-width: 768px) {
    .paywall-invoice-modal__dialog {
        max-width: none !important;
        padding: 24px 16px !important;
    }

    .paywall-country-modal__dialog {
        max-width: none !important;
        padding: 24px 16px !important;
        height: 90vh;
    }

    .paywall-country-modal__list {
        margin-left: -16px;
        margin-right: -16px;
    }

    .paywall-country-modal__item {
        border-radius: 0;
    }
}
