/* =========================================================
   FLOATING NEWSLETTER CTA
   ========================================================= */

.newsletter-floating-cta {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999998;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 24px;

    border: 0;
    border-radius: 999px;

    background: #f47b20;
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.newsletter-floating-cta:hover {
    transform: translateY(-2px);
}

.newsletter-floating-cta:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}


/* =========================================================
   POPUP OVERLAY
   ========================================================= */

.beehiiv-popup-overlay {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.65);
}


/* =========================================================
   POPUP MODAL
   ========================================================= */

.beehiiv-popup-modal {
    position: relative;

    width: 100%;
    max-width: 600px;

    padding: 0;

    background: transparent;

    border-radius: 8px;

    box-sizing: border-box;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.beehiiv-popup-close {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 20;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.95);

    color: #000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   BEEHIIV EMBED
   ========================================================= */

.beehiiv-popup-modal iframe {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto;

    border: 0;

    border-radius: 8px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .beehiiv-popup-overlay {
        padding: 12px;
    }

    .beehiiv-popup-modal {
        max-width: 100%;
    }

    .newsletter-floating-cta {
        position: fixed;

        left: 190px;
        right: auto;
        bottom: 16px;

        transform: none;

        width: auto;
        max-width: calc(100vw - 32px);

        min-height: 46px;
        padding: 0 18px;

        white-space: nowrap;

        font-size: 14px;

        z-index: 999998;
    }

    .newsletter-floating-cta:hover {
        transform: none;
    }
}

/* =========================================================
   FOOTER NEWSLETTER CTA
   ========================================================= */

.gh-footer-signup .footer-signup-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.gh-footer-signup .gh-footer-signup-header {
    margin: 0;
}

.gh-footer-signup .newsletter-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 125px;
    height: 62px;
    padding: 0 32px;

    margin: 0;

    border: 0;
    border-radius: 4px;

    background: #1b1b1b;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gh-footer-signup .newsletter-footer-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.gh-footer-signup .newsletter-footer-cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* Mobile */

@media (max-width: 768px) {

    .gh-footer-signup .footer-signup-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .gh-footer-signup .newsletter-footer-cta {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================================
   CATEGORY NEWSLETTER CTA
   ========================================================= */

.category-newsletter-signup {
    padding: 20px 24px;
}

.category-newsletter-signup .footer-signup-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 24px;
    width: 100%;
    padding: 0;
}

.category-newsletter-signup .gh-footer-signup-header {
    margin: 0;

    font-size: 18px;
    line-height: 1.2;

    white-space: nowrap;
}

.category-newsletter-signup .newsletter-footer-cta {
    flex: 0 0 auto;

    width: auto;
    min-width: auto;
    height: 44px;
    min-height: 44px;

    padding: 0 20px;

    font-size: 14px;
    border-radius: 4px;
}


/* Mobile */

@media (max-width: 768px) {

    .category-newsletter-signup {
        padding: 20px;
    }

    .category-newsletter-signup .footer-signup-wrapper {
        flex-direction: column;
        gap: 14px;
    }

    .category-newsletter-signup .gh-footer-signup-header {
        white-space: normal;
        text-align: center;
        font-size: 17px;
    }

    .category-newsletter-signup .newsletter-footer-cta {
        width: auto;
        max-width: none;
    }
}