.float-action-stack {
    --fab-size: 64px;
    --fab-quote-height: 52px;
    --fab-gap: 10px;
    --fab-offset-bottom: 24px;
    --fab-offset-right: 24px;

    position: fixed;
    bottom: var(--fab-offset-bottom);
    right: var(--fab-offset-right);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--fab-gap);
    z-index: 1000;
}

.float-action {
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.float-action:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.float-action--whatsapp {
    background-color: #25d366;
    color: #fff;
}

.float-action--whatsapp:hover {
    color: #fff;
}

.float-action--quote {
    width: auto;
    min-width: max-content;
    height: var(--fab-quote-height);
    min-height: var(--fab-quote-height);
    padding: 0 1.65rem 0 1.2rem;
    border: none;
    border-radius: 9999px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--cn-orange, #f0785a);
    color: #fff;
    font-family: var(--cn-font-family);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(240, 120, 90, 0.35);
    overflow: hidden;
}

.float-action--quote:hover {
    color: #fff;
    background: var(--cn-orange-dark, #e56548);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(240, 120, 90, 0.42);
}

.float-action .socicon {
    font-size: 1.5em;
    line-height: 1;
    color: #fff;
}

.float-action--whatsapp .socicon:before {
    color: #fff;
}

.float-action--quote svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke: #fff;
}

.float-action__label {
    line-height: 1;
    padding-top: 0.05rem;
}

.has-float-actions .back-to-top {
    bottom: calc(var(--fab-offset-bottom) + var(--fab-size) + var(--fab-gap) + 10px);
    right: calc(var(--fab-offset-right) + ((var(--fab-size) - 50px) / 2));
}

.has-float-actions:has(.float-action--quote) .back-to-top {
    bottom: calc(var(--fab-offset-bottom) + var(--fab-quote-height) + var(--fab-gap) + var(--fab-size) + var(--fab-gap) + 10px);
}

@media (max-width: 768px) {
    .float-action-stack {
        --fab-size: 56px;
        --fab-quote-height: 46px;
        --fab-gap: 8px;
        --fab-offset-bottom: 20px;
        --fab-offset-right: 20px;
    }

    .float-action--quote {
        font-size: 0.88rem;
        padding: 0 1.45rem 0 1.05rem;
        gap: 0.5rem;
    }

    .float-action--quote svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    .has-float-actions .back-to-top {
        width: 40px;
        height: 40px;
        right: calc(var(--fab-offset-right) + ((var(--fab-size) - 40px) / 2));
    }
}

@media (max-width: 576px) {
    .float-action-stack {
        --fab-size: 52px;
        --fab-quote-height: 42px;
        --fab-gap: 8px;
        --fab-offset-bottom: 16px;
        --fab-offset-right: 16px;
    }

    .float-action--quote {
        font-size: 0.82rem;
        padding: 0 1.25rem 0 0.95rem;
    }

    .has-float-actions .back-to-top {
        width: 35px;
        height: 35px;
        right: calc(var(--fab-offset-right) + ((var(--fab-size) - 35px) / 2));
    }
}

@media (max-width: 400px) {
    .float-action-stack {
        --fab-size: 48px;
        --fab-quote-height: 40px;
        --fab-gap: 8px;
        --fab-offset-bottom: 14px;
        --fab-offset-right: 14px;
    }

    .float-action--quote {
        font-size: 0.78rem;
        padding: 0 1.15rem 0 0.85rem;
        gap: 0.4rem;
    }

    .float-action--quote svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .has-float-actions .back-to-top {
        width: 30px;
        height: 30px;
        right: calc(var(--fab-offset-right) + ((var(--fab-size) - 30px) / 2));
    }
}
