/* Hosting Promo Popup */

.hp-hosting-promo {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 350px;
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
    padding: 21px;
    z-index: 999999;

    background: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow:
        0 24px 65px rgba(15, 23, 42, .18),
        0 5px 18px rgba(15, 23, 42, .08);

    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;

    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 24px, 0) scale(.97);
    transition:
        opacity .32s ease,
        transform .42s cubic-bezier(.22, .61, .36, 1),
        visibility .32s ease;
}

.hp-hosting-promo.hp-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

.hp-hosting-promo__close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 23px;
    line-height: 31px;
    text-align: center;
    transition: background .18s ease, color .18s ease;
}

.hp-hosting-promo__close:hover,
.hp-hosting-promo__close:focus-visible {
    background: #eef2f7;
    color: #0f172a;
    outline: none;
}

.hp-hosting-promo__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 28px 10px 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff4df;
    color: #9a5700;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .055em;
}

.hp-hosting-promo__title {
    margin: 0;
    padding-right: 26px;
    color: #111827;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
}

.hp-hosting-promo__subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.hp-hosting-promo__domain {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    color: #176b43;
    font-size: 12px;
    line-height: 1.3;
}

.hp-hosting-promo__domain strong {
    font-weight: 800;
}

.hp-hosting-promo__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.hp-hosting-promo__price {
    padding: 10px 11px;
    border-radius: 11px;
    background: #f1f5f9;
}

.hp-hosting-promo__price span {
    display: block;
    margin-bottom: 2px;
    color: #7b8798;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .06em;
}

.hp-hosting-promo__price strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.hp-hosting-promo__price small {
    color: #7b8798;
    font-size: 10px;
}

.hp-hosting-promo__discount {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    color: #176b43;
    font-size: 12px;
    line-height: 1.3;
}

.hp-hosting-promo__code {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.hp-hosting-promo__code strong {
    color: #111827;
    font-weight: 800;
}

.hp-hosting-promo__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 11px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 750;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.hp-hosting-promo__button:hover,
.hp-hosting-promo__button:focus-visible {
    background: #000;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, .18);
    outline: none;
}

.hp-hosting-promo__button span {
    font-size: 17px;
    transition: transform .18s ease;
}

.hp-hosting-promo__button:hover span {
    transform: translateX(3px);
}

.hp-hosting-promo__note {
    margin-top: 8px;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 600px) {
    .hp-hosting-promo {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-width: none;
        padding: 17px;
        border-radius: 16px;
    }

    .hp-hosting-promo__title {
        font-size: 19px;
    }

    .hp-hosting-promo__price strong {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hosting-promo {
        transition: opacity .2s ease, visibility .2s ease;
        transform: none;
    }

    .hp-hosting-promo.hp-is-visible {
        transform: none;
    }
}




/* v1.3.1 — Reliable centered modal overlay */
.hp-hosting-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.hp-hosting-promo-overlay.hp-is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hp-hosting-promo-overlay .hp-hosting-promo {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    width: 390px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(18px) scale(.96);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.hp-hosting-promo-overlay.hp-is-visible .hp-hosting-promo {
    transform: translateY(0) scale(1);
}

.hp-hosting-promo__domain {
    line-height: 1.45;
}

@media (max-width: 600px) {
    .hp-hosting-promo-overlay {
        padding: 14px;
    }

    .hp-hosting-promo-overlay .hp-hosting-promo {
        width: 100%;
        max-height: calc(100vh - 28px);
    }
}
