/* =====================================================================
   AMH Floating Bar — Estilos
   ===================================================================== */

.amh-fb {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-sizing: border-box;
    min-height: 56px;
    padding: 10px 16px;
    font-family: inherit;
    line-height: 1.4;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .18);
    transition: transform .3s ease, opacity .3s ease;
}

.amh-fb__inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.amh-fb--has-close .amh-fb__inner {
    padding-right: 34px;
}

.amh-fb--top {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.amh-fb--hidden {
    pointer-events: none;
    opacity: 0;
}

.amh-fb--top.amh-fb--hidden {
    transform: translateY(-110%);
}

.amh-fb--bottom.amh-fb--hidden {
    transform: translateY(110%);
}

.amh-fb__text {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.amh-fb__text p,
.amh-fb__text strong,
.amh-fb__text span,
.amh-fb__text a {
    color: inherit;
}

.amh-fb__actions {
    flex-shrink: 0;
}

.amh-fb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease, transform .15s ease;
    box-shadow: none;
}

.amh-fb__btn:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.amh-fb__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: .75;
    transition: opacity .2s ease;
}

.amh-fb__close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .amh-fb {
        padding: 12px 14px;
    }

    .amh-fb__inner {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .amh-fb--has-close .amh-fb__inner {
        padding-right: 24px;
    }

    .amh-fb__text {
        text-align: center;
        font-size: 13px;
    }

    .amh-fb__actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .amh-fb__btn {
        width: 100%;
        max-width: 260px;
    }

    .amh-fb__close {
        top: 2px;
        transform: none;
    }
}
