.floating-subscribe__pill {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + var(--sticky-bar-height, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-primary-strong);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(13, 30, 48, 0.22);
    animation: floating-subscribe-in 0.3s ease-out;
}

.floating-subscribe__pill:hover {
    background: var(--navy);
    color: var(--white);
}

.floating-subscribe__pill svg {
    flex: 0 0 auto;
}

@keyframes floating-subscribe-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.floating-subscribe__dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(13, 30, 48, 0.28);
    overflow: auto;
}

.floating-subscribe__dialog::backdrop {
    background: rgba(13, 30, 48, 0.55);
}

.floating-subscribe__panel {
    position: relative;
    padding: 36px 24px 20px;
    text-align: center;
}

.floating-subscribe__dialog .blog-subscribe {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: var(--white);
}

.floating-subscribe__dialog .blog-subscribe__title {
    padding: 0 28px;
    font-size: 22px;
    color: var(--navy);
}

.floating-subscribe__dialog .blog-subscribe__text {
    color: var(--text-secondary);
}

.floating-subscribe__later {
    margin-top: 12px;
    padding: 8px 12px;
    border: 0;
    background: var(--white);
    color: var(--brand-primary-strong);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.floating-subscribe__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
}

.floating-subscribe__close:hover {
    background: var(--sage-pale);
    color: var(--navy);
}

@media (max-width: 720px) {
    .floating-subscribe__pill {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + var(--sticky-bar-height, 0px) + env(safe-area-inset-bottom, 0px));
        padding: 8px 14px;
        font-size: 14px;
    }

    body:has(.back-to-top) .floating-subscribe__pill {
        bottom: calc(76px + var(--sticky-bar-height, 0px) + env(safe-area-inset-bottom, 0px));
    }

    .floating-subscribe__panel {
        padding: 36px 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-subscribe__pill {
        animation: none;
    }
}
