:root {
    --gc-contact-edge: 20px;
    --gc-contact-width: 86px;
    --gc-contact-row: 94px;
    --gc-contact-green: #006b00;
    --gc-contact-left: calc(var(--gc-contact-edge) + env(safe-area-inset-left, 0px));
    --gc-contact-bottom: calc(var(--gc-contact-edge) + env(safe-area-inset-bottom, 0px));
}

.gc-floating-call {
    position: fixed;
    left: var(--gc-contact-left);
    bottom: var(--gc-contact-bottom);
    z-index: 900;
    width: var(--gc-contact-width);
}

.gc-floating-call__links {
    width: 100%;
    border: 1px solid #e2e8e3;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}

.gc-floating-call__action {
    display: grid;
    min-height: var(--gc-contact-row);
    justify-items: center;
    align-content: center;
    gap: 5px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.gc-floating-call__action + .gc-floating-call__action {
    border-top: 1px solid #e6ebe7;
}

.gc-floating-call__action:first-child { border-radius: 16px 16px 0 0; }
.gc-floating-call__action:last-child { border-radius: 0 0 16px 16px; }
.gc-floating-call__action:hover { background: #f1f7f2; }
.gc-floating-call__action:focus-visible {
    outline: 2px solid var(--gc-contact-green);
    outline-offset: -3px;
}

.gc-floating-call__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
}

.gc-floating-call__zalo { border-radius: 11px; }
.gc-floating-call__phone { color: var(--gc-contact-green); }
.gc-floating-call__phone .gc-floating-call__icon {
    background: var(--gc-contact-green);
    box-shadow: 0 0 0 6px #ccebd3;
    animation: gc-floating-call-wave 2.8s ease-out infinite;
}
.gc-floating-call__phone svg { animation: gc-floating-call-ring 2.8s ease-in-out infinite; }
@keyframes gc-floating-call-wave {
    0%, 100% { box-shadow: 0 0 0 6px rgb(0 132 37 / 20%); }
    60% { box-shadow: 0 0 0 9px rgb(0 132 37 / 0%); }
}

@keyframes gc-floating-call-ring {
    0%, 24%, 100% { transform: rotate(0); }
    6%, 18% { transform: rotate(-12deg); }
    12% { transform: rotate(12deg); }
}

@media (max-width: 849px) {
    :root {
        --gc-contact-edge: 14px;
        --gc-contact-width: 73px;
        --gc-contact-row: 82px;
    }

    .gc-floating-call__action { font-size: 12px; }
    .gc-floating-call__icon { width: 41px; height: 41px; }
}

@media (prefers-reduced-motion: reduce) {
    .gc-floating-call__phone .gc-floating-call__icon,
    .gc-floating-call__phone svg {
        animation: none;
    }
}
