/* Floating WhatsApp button — same design as the Laravel store (PieseZskLaravel app.css .amz-wa). */
.amz-wa {
    position: fixed;
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 9989;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    transition: background-color 0.2s, transform 0.15s, bottom 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.amz-wa:hover,
.amz-wa:focus-visible {
    background: #1ebe57;
    color: #fff;
}

.amz-wa:active {
    transform: scale(0.98);
}

.amz-wa:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.45);
    outline-offset: 3px;
}

.amz-wa__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
}

.amz-wa__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 0;
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0;
    transition: max-width 0.3s, padding 0.3s, opacity 0.3s;
}

@media (hover: hover) {
    .amz-wa:hover .amz-wa__label,
    .amz-wa:focus-visible .amz-wa__label {
        max-width: 220px;
        padding-left: 1.25rem;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .amz-wa {
        right: 1.75rem;
        bottom: 1.75rem;
    }
}


/* Product page: the floating „Adaugă în coș” pill sits at the bottom centre on phones —
   lift the WhatsApp bubble above it so they never overlap. */
@media (max-width: 767px) {
    body.amz-sticky-cart-on .amz-wa {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    body.amz-sticky-cart-on .amz-wa {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .amz-wa,
    .amz-wa__label {
        transition: none;
    }
}
