/* The Crown popup */
body.the-crown-popup-open {
    overflow: hidden;
}

.the-crown-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    direction: ltr;
}

.the-crown-popup.is-hidden {
    display: none;
}

.the-crown-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
}

.the-crown-popup__dialog {
    position: relative;
    width: min(100%, 700px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    direction: rtl;
    margin-left: auto;
    margin-right: auto;
}

.the-crown-popup__close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(2px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.the-crown-popup__close-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.the-crown-popup__hero {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #111111;
}

.the-crown-popup__hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.the-crown-popup__hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.the-crown-popup__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.2) 100%);
}

.the-crown-popup__hero-title {
    position: absolute;
    top: 14px;
    left: 56px;
    right: 56px;
    z-index: 2;
    margin: 0;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.the-crown-popup__hero-title-text,
.the-crown-popup__hero-title-text .the-crown-popup__latin {
    color: #ffffff;
}

.the-crown-popup__body {
    padding: 22px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.the-crown-popup__state {
    width: 100%;
    display: none;
}

.the-crown-popup__state.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.the-crown-popup__copy {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6px;
    text-align: center;
}

.the-crown-popup__copy--reward {
    max-width: 460px;
    padding-top: 4px;
}

.the-crown-popup__title {
    margin: 0;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.34;
    color: #000000;
    letter-spacing: -0.01em;
}

.the-crown-popup__latin {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.the-crown-popup__subtitle {
    margin: 14px 0 0;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    color: #424242;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__copy {
    max-width: 466px;
    padding-top: 8px;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__title {
    font-size: 20px;
    line-height: 1.3;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__subtitle {
    margin-top: 12px;
    font-size: 16px;
    max-width: 408px;
}

.the-crown-popup__title--reward {
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}

.the-crown-popup__subtitle--reward {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.5;
    color: #424242;
    text-align: center;
}

.the-crown-popup__tier-meta,
.the-crown-popup__tier-copy {
    margin: 0;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #424242;
    text-align: center;
}

.the-crown-popup__tier-meta {
    margin-top: 8px;
    font-size: 16px;
}

.the-crown-popup__tier-copy {
    max-width: 536px;
    margin-top: 14px;
}

.the-crown-popup__form {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 36px;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__form {
    margin-top: 28px;
}

.the-crown-popup__label {
    display: block;
    margin-bottom: 8px;
    text-align: right;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #222029;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__label {
    margin-bottom: 10px;
    font-size: 15px;
}

.the-crown-popup__field-shell {
    width: 100%;
}

.the-crown-popup__field {
    position: relative;
    height: 60px;
    border: 1px solid #c2c1c9;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.the-crown-popup__country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.the-crown-popup__flag {
    width: 23px;
    height: 16px;
    display: block;
    border: 1px solid rgba(34, 32, 41, 0.08);
    border-radius: 1px;
    overflow: hidden;
}

.the-crown-popup__flag.is-ae {
    background:
        linear-gradient(90deg, #dc251c 0 31%, transparent 31% 100%),
        linear-gradient(180deg, #2b9f5a 0 33.33%, #f5f8fb 33.33% 66.66%, #222029 66.66% 100%);
}

.the-crown-popup__flag.is-sa {
    background-color: #006c35;
    background-image: url('../img/flags/sa.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.the-crown-popup__country-select {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.the-crown-popup__chevron {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #7d7a86;
    border-bottom: 1.6px solid #7d7a86;
    transform: rotate(45deg) translateY(-1px);
    display: inline-block;
}

.the-crown-popup__country-label {
    font-family: 'Poppins', 'Readex Pro', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    color: #222029;
}

.the-crown-popup__country-menu {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 120px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.the-crown-popup__country-menu-item {
    padding: 6px 14px;
    font-family: 'Readex Pro', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #222029;
    cursor: pointer;
    white-space: nowrap;
}

.the-crown-popup__country-menu-item.is-active {
    background: #f5f5f5;
    font-weight: 600;
}

.the-crown-popup__country-menu-item:hover {
    background: #f0f0f0;
}

.the-crown-popup__country.is-open .the-crown-popup__country-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.the-crown-popup__prefix {
    font-family: 'Poppins', 'Readex Pro', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #222029;
    white-space: nowrap;
}

.the-crown-popup__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font-family: 'Poppins', 'Readex Pro', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: #222029;
    text-align: left;
    direction: ltr;
}

.the-crown-popup__input::placeholder {
    color: #9a97a3;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__field {
    padding: 0 20px;
    gap: 10px;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__country {
    gap: 4px;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__prefix,
.the-crown-popup__state[data-state="precheck"] .the-crown-popup__input {
    font-size: 16px;
}

.the-crown-popup__state[data-state="precheck"] .the-crown-popup__submit {
    margin-top: 16px;
}

.the-crown-popup__field-error {
    margin: 8px 0 0;
    min-height: 17px;
    text-align: right;
    font-family: 'Readex Pro', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #bf1e2e;
}

.the-crown-popup__field--focus {
    border-color: #222029;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.08);
}

.the-crown-popup__field--error {
    border-color: #bf1e2e;
    background: #fff6f7;
}

.the-crown-popup__field--success {
    border-color: #1f6f42;
    background: #f3fbf6;
}

.the-crown-popup__submit {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 7.456px;
    background: #020202;
    color: #ffffff;
    min-height: 56px;
    padding: 16px 20px;
    font-family: 'Poppins', 'Readex Pro', sans-serif;
    font-weight: 700;
    font-size: 13.9px;
    line-height: 1.4;
    cursor: pointer;
}

.the-crown-popup__submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.the-crown-popup__status {
    margin: 10px auto 0;
    padding: 0;
    min-height: 28px;
    max-width: 312px;
    font-family: 'Readex Pro', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

.the-crown-popup__status.is-success {
    color: #1f6f42;
}

.the-crown-popup__status.is-error {
    color: #9f221c;
}

.the-crown-popup__actions {
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
}

.the-crown-popup__promo-button {
    border: 0;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    min-height: 74px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: 0.3s ease;
    overflow: visible;
}

.the-crown-popup__promo-button:hover {
    transform: translateY(-1px);
}

.the-crown-popup__back-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(2px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.the-crown-popup__back-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.the-crown-popup[data-state="precheck"] .the-crown-popup__back-button {
    display: none;
}

.the-crown-popup__copy-toast {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: 'Readex Pro', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.the-crown-popup__copy-toast.show {
    opacity: 1;
    top: -32px;
}

.the-crown-popup__copy-toast-global {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Readex Pro', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.the-crown-popup__copy-toast-global.is-visible {
    opacity: 1;
}

.the-crown-popup__promo-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', 'Readex Pro', sans-serif;
    font-weight: 600;
    font-size: 14.912px;
    line-height: 1.4;
}

.the-crown-popup__promo-main i {
    font-size: 21px;
    line-height: 1;
}

.the-crown-popup__promo-sub {
    display: block;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 300;
    font-size: 10px;
    line-height: 1.4;
    color: #bdbdbd;
}

.the-crown-popup__balance-pill {
    display: inline-block;
    margin: 16px auto 0;
    padding: 8px 14px;
    border: 1px solid #efeeee;
    border-radius: 24px;
    background: #f6f6f6;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #424242;
    text-align: center;
}

.the-crown-popup__submit--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 12px;
}

.the-crown-popup__footer {
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.the-crown-popup__help-text {
    width: 100%;
    max-width: 288px;
    margin: 0 auto 4px;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: #727272;
}

.the-crown-popup__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 2px 8px;
    color: #000000;
    text-decoration: none;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.the-crown-popup[data-state="precheck"] .the-crown-popup__help-text {
    max-width: 310px;
}

.the-crown-popup__whatsapp i {
    font-size: 21px;
    line-height: 1;
}

.the-crown-popup__whatsapp--disabled {
    opacity: 0.55;
    cursor: default;
}

.the-crown-popup__close:focus-visible,
.the-crown-popup__back-button:focus-visible,
.the-crown-popup__promo-button:focus-visible,
.the-crown-popup__submit:focus-visible,
.the-crown-popup__whatsapp:focus-visible,
.the-crown-popup__country-select:focus-visible {
    outline: 2px solid #020202;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .the-crown-popup {
        padding: 16px;
    }

    .the-crown-popup__dialog {
        width: min(100%, 390px);
        max-height: calc(100vh - 32px);
        border-radius: 20px;
        margin: 0 auto;
    }

    .the-crown-popup__close {
        top: 14px;
        left: 14px;
        width: 36px;
        height: 36px;
    }

    .the-crown-popup__back-button {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .the-crown-popup__hero {
        height: 254px;
        border-radius: 20px 20px 0 0;
    }

    .the-crown-popup__hero-title {
        top: 16px;
        left: 56px;
        right: 56px;
        font-size: 20px;
        line-height: 1.2;
    }

    .the-crown-popup__body {
        padding: 20px 16px 18px;
    }

    .the-crown-popup__state {
        max-width: 358px;
        margin: 0 auto;
    }

    .the-crown-popup__title {
        font-size: 18px;
        line-height: 1.4;
    }

    .the-crown-popup__subtitle {
        font-size: 15px;
        line-height: 1.47;
        max-width: 330px;
    }

    .the-crown-popup__state[data-state="precheck"] .the-crown-popup__title {
        font-size: 18px;
        line-height: 1.4;
    }

    .the-crown-popup__state[data-state="precheck"] .the-crown-popup__subtitle {
        font-size: 15px;
        max-width: 314px;
        margin-top: 14px;
    }

    .the-crown-popup__state[data-state="precheck"] .the-crown-popup__copy {
        max-width: 342px;
        padding-top: 0;
    }

    .the-crown-popup__title--reward {
        font-size: 18px;
        line-height: 1.4;
    }

    .the-crown-popup__subtitle--reward {
        max-width: 332px;
        font-size: 15px;
        line-height: 1.55;
    }

    .the-crown-popup__copy--reward {
        max-width: 342px;
        padding-top: 0;
    }

    .the-crown-popup__form {
        max-width: 358px;
        margin-top: 20px;
    }

    .the-crown-popup__actions {
        max-width: 358px;
        margin-top: 24px;
        gap: 12px;
    }

    .the-crown-popup__field {
        height: 60px;
        padding: 0 16px;
        gap: 10px;
        border-radius: 12px;
    }

    .the-crown-popup__promo-main {
        font-size: 14.912px;
    }

    .the-crown-popup__submit {
        min-height: 53px;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 16px;
    }

    .the-crown-popup__promo-button {
        min-height: 70px;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .the-crown-popup__tier-meta {
        font-size: 16px;
        line-height: 1.5;
    }

    .the-crown-popup__balance-pill {
        font-size: 13px;
        margin-top: 18px;
        padding: 9px 14px;
    }

    .the-crown-popup__tier-copy {
        max-width: 332px;
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.55;
    }

    .the-crown-popup__footer {
        margin-top: 24px;
    }

    .the-crown-popup__help-text {
        max-width: 300px;
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 1.45;
    }

    .the-crown-popup__whatsapp {
        gap: 6px;
        font-size: 15px;
    }
}
