/**
 * Nextiva click-to-call button.
 *
 * @package Gaia_Goods_Child
 */

.gaia-call-btn,
.gaia-call-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    border: 0;
    cursor: pointer;
    /* Force white over theme link colors that use !important. */
    color: #fff !important;
}

.gaia-call-btn .gaia-call-btn-text,
.gaia-call-btn .gaia-call-icon {
    color: #fff !important;
}

.gaia-call-btn .gaia-call-icon {
    flex: 0 0 auto;
    display: block;
}

/* Floating action button -------------------------------------------------- */

.gaia-call-btn--fab {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9990;
    height: 58px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--gaia-brand-green, #194108);
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(19, 46, 27, 0.32);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.gaia-call-btn--fab:hover,
.gaia-call-btn--fab:focus {
    color: #fff !important;
    background: var(--gaia-brand-green-deep, #214842);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(19, 46, 27, 0.38);
}

.gaia-call-btn--fab:focus-visible {
    outline: 3px solid var(--gaia-brand-gold, #f4c945);
    outline-offset: 2px;
}

.gaia-call-btn--fab .gaia-call-btn-text {
    font-size: 15px;
    white-space: nowrap;
}

/* Inline / shortcode button ---------------------------------------------- */

.gaia-call-btn--inline {
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--gaia-brand-green, #194108);
    color: #fff !important;
    font-size: 15px;
}

.gaia-call-btn--inline:hover,
.gaia-call-btn--inline:focus {
    color: #fff !important;
    background: var(--gaia-brand-green-deep, #214842);
}

.gaia-call-btn--inline .gaia-call-btn-text {
    white-space: nowrap;
}

/* Small screens: compact the floating button to an icon-only circle, and
   keep it clear of a typical bottom-right chat widget by staying bottom-left. */

@media (max-width: 600px) {
    .gaia-call-btn--fab {
        left: 16px;
        bottom: 16px;
        height: 54px;
        width: 54px;
        padding: 0;
        justify-content: center;
    }

    .gaia-call-btn--fab .gaia-call-btn-text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
}

@media print {
    .gaia-call-btn--fab {
        display: none;
    }
}
