/* =========================================================
   BY OSMY — CTA FLOTANTE DE PRODUCTO
   ========================================================= */

body.os-site .os-floating-product-cta {
    position: fixed;
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    max-width: calc(100vw - 32px);
    min-height: 58px;
    padding: 9px 22px 9px 10px;

    background: var(
        --os-color-accent,
        var(--os-wine, #722f47)
    );

    color: var(--os-color-text-inverse, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    font-family: var(--os-font-body, sans-serif);
    font-size: 12px;
    font-weight: var(--os-weight-bold, 700);
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow:
        0 14px 35px rgba(45, 17, 27, 0.24),
        0 4px 12px rgba(45, 17, 27, 0.12);

    opacity: 0;
    transform: translateY(14px);

    animation: os-floating-cta-enter 500ms ease-out 250ms forwards;

    transition:
        background-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

body.os-site .os-floating-product-cta__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

body.os-site .os-floating-product-cta__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

body.os-site .os-floating-product-cta__label {
    display: block;
}

body.os-site .os-floating-product-cta:hover {
    background: var(
        --os-color-accent-hover,
        var(--os-wine-deep, #542034)
    );

    color: var(--os-color-text-inverse, #ffffff);
    text-decoration: none !important;

    transform: translateY(-3px);

    box-shadow:
        0 18px 42px rgba(45, 17, 27, 0.3),
        0 6px 14px rgba(45, 17, 27, 0.14);
}

body.os-site .os-floating-product-cta:focus-visible {
    outline: 3px solid var(--os-rose, #d9a3b2);
    outline-offset: 4px;
}

@keyframes os-floating-cta-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet y mobile */
@media (max-width: 767px) {
    body.os-site .os-floating-product-cta {
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));

        min-height: 52px;
        padding: 8px 16px 8px 8px;
        gap: 9px;

        font-size: 10.5px;
        letter-spacing: 0.045em;
    }

    body.os-site .os-floating-product-cta__icon {
        width: 36px;
        height: 36px;
    }

    body.os-site .os-floating-product-cta__icon svg {
        width: 19px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.os-site .os-floating-product-cta {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}