/* Sticky WhatsApp button (bottom right on every public page) */
.gcc-wa-float {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: #1A7F45; /* darker green so the white label passes the contrast check */
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gcc-wa-float:hover,
.gcc-wa-float:focus-visible {
    background: #146B3A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.34);
}

.gcc-wa-float:focus-visible {
    outline: 3px solid #0F172A;
    outline-offset: 3px;
}

.gcc-wa-float__icon {
    flex: 0 0 auto;
    display: block;
}

.gcc-wa-float__label {
    white-space: nowrap;
}

/* Scroll-to-top sits above the WhatsApp button instead of underneath it (same corner).
   WhatsApp: 20px from the bottom + 56px tall, then 16px gap. */
body .gcc-to-top {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* Small screens: icon only, so the button does not cover the page */
@media (max-width: 600px) {
    .gcc-wa-float {
        right: 14px;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
    .gcc-wa-float__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gcc-wa-float,
    .gcc-wa-float:hover {
        transition: none;
        transform: none;
    }
}
