/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.gsa-whatsapp-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9998;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 56px;
    padding: 0 19px 0 14px;
    border-radius: 999px;

    background: #25d366;
    color: #fff !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.12);

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.gsa-whatsapp-float:hover {
    background: #20bd5a;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.23),
        0 5px 12px rgba(0, 0, 0, 0.14);
}

.gsa-whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 4px;
}

.gsa-whatsapp-float__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
}

.gsa-whatsapp-float__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Shortcode del pedido
   ========================================================================== */

.gsa-order-whatsapp {
    box-sizing: border-box;
    width: 100%;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.gsa-order-whatsapp *,
.gsa-order-whatsapp *::before,
.gsa-order-whatsapp *::after {
    box-sizing: border-box;
}

.gsa-order-whatsapp__title {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(20px, 4vw, 26px);
    line-height: 1.2;
}

.gsa-order-whatsapp__summary {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.gsa-order-whatsapp__summary-heading,
.gsa-order-whatsapp__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
}

.gsa-order-whatsapp__summary-heading {
    border-bottom: 1px solid #e5e7eb;
}

.gsa-order-whatsapp__summary-heading span,
.gsa-order-whatsapp__total span {
    color: #6b7280;
    font-size: 13px;
}

.gsa-order-whatsapp__summary-heading strong,
.gsa-order-whatsapp__total strong {
    color: #111827;
}

.gsa-order-whatsapp__products {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gsa-order-whatsapp__products li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.gsa-order-whatsapp__products li > span {
    min-width: 0;
    color: #374151;
}

.gsa-order-whatsapp__products small {
    color: #6b7280;
}

.gsa-order-whatsapp__products strong {
    flex-shrink: 0;
    color: #111827;
    text-align: right;
}

.gsa-order-whatsapp__total {
    background: #fff;
}

.gsa-order-whatsapp__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gsa-order-whatsapp__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 11px 16px;
    border-radius: 12px;

    background: #25d366;
    color: #fff !important;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gsa-order-whatsapp__button:hover {
    background: #20bd5a;
    color: #fff !important;
    transform: translateY(-1px);
}

.gsa-order-whatsapp__button > span {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.gsa-order-whatsapp__button svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gsa-order-whatsapp__button small {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .gsa-whatsapp-float {
        width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 0;
    }

    .gsa-whatsapp-float__label {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .gsa-whatsapp-float__icon {
        width: 33px;
        height: 33px;
    }

    .gsa-order-whatsapp {
        padding: 15px;
        border-radius: 14px;
    }

    .gsa-order-whatsapp__products li {
        gap: 10px;
    }
}

@media (min-width: 700px) {
    .gsa-order-whatsapp__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}