/* ================================================================
   Follow on Google — Sticky Bottom Bar
   Inherits Foxiz theme typography via CSS custom properties.
   ================================================================ */
.fv-follow-google {
    --ad-offset: 0px;
    position: fixed;
    bottom: var(--ad-offset);
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, bottom .3s ease;
    pointer-events: none;
    font-family: var(--body-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.fv-follow-google.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.fv-follow-google__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 18px 44px 16px 22px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .10), 0 0 0 1px rgba(0, 0, 0, .03);
    text-align: center;
}

/* Close button */
.fv-follow-google__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #9aa0a6;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.fv-follow-google__close:hover,
.fv-follow-google__close:focus-visible {
    background: #f1f3f4;
    color: #5f6368;
}

/* Title */
.fv-follow-google__title {
    margin: 0 0 3px;
    font-family: var(--h4-family, var(--body-family, inherit));
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Subtext */
.fv-follow-google__sub {
    margin: 0 0 14px;
    font-family: var(--body-family, inherit);
    font-size: 13px;
    font-weight: 400;
    color: #5f6368;
    line-height: 1.45;
}

/* CTA buttons */
.fv-follow-google__buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.fv-follow-google__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    font-family: var(--body-family, inherit);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 24px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.fv-follow-google__btn:active {
    transform: scale(.97);
}

.fv-follow-google__btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Preferred Sources — primary */
.fv-follow-google__btn--pref {
    background: #1a73e8;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(26, 115, 232, .3);
}

.fv-follow-google__btn--pref:hover {
    background: #1557b0;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, .35);
}

/* Google News — secondary */
.fv-follow-google__btn--news {
    background: #fff;
    color: #1a73e8 !important;
    border: 1.5px solid #dadce0;
}

.fv-follow-google__btn--news:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1557b0 !important;
}

/* Hint text */
.fv-follow-google__hint {
    margin: 10px 0 0;
    font-family: var(--meta-family, var(--body-family, inherit));
    font-size: 11px;
    font-weight: 400;
    color: #9aa0a6;
    letter-spacing: 0.01em;
}

/* Toast notification */
.fv-follow-google__toast {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: #1a1a1a;
    color: #fff;
    font-family: var(--body-family, inherit);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 12px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    z-index: 10000;
    pointer-events: none;
    max-width: 88vw;
    text-align: center;
    transition: opacity .25s ease, transform .25s ease;
}

.fv-follow-google__toast.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Hide when exit-intent popup or any overlay modal is active */
body:has(.fv-exit-popup) .fv-follow-google,
body.modal-open .fv-follow-google {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile */
@media (max-width: 600px) {
    .fv-follow-google__inner {
        margin: 0 8px;
        margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        padding: 16px 38px 14px 16px;
        border-radius: 14px;
    }

    .fv-follow-google__title { font-size: 14px; }
    .fv-follow-google__sub   { font-size: 12px; margin-bottom: 12px; }

    .fv-follow-google__buttons {
        flex-direction: column;
    }

    .fv-follow-google__btn {
        justify-content: center;
        width: 100%;
        padding: 11px 16px;
    }
}

/* Print */
@media print {
    .fv-follow-google,
    .fv-follow-google__toast { display: none !important; }
}
