/**
 * RFB Legal Services Floating Bar
 */

:root {
    --rfb-floating-bar-height: 50px;
    --rfb-floating-bar-background: #204070;
}

.rfb-services-floating-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    min-height: var(--rfb-floating-bar-height);
    background: var(--rfb-floating-bar-background);
    color: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}

.rfb-services-floating-bar.is-visible {
    transform: translateY(0);
}

.rfb-services-floating-bar__inner {
    width: min(100% - 48px, 1440px);
    min-height: var(--rfb-floating-bar-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 5px 46px 5px 0;
    position: relative;
}

.rfb-services-floating-bar__message {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
}

.rfb-services-floating-bar__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 9999px;
    background: #b99a58;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rfb-services-floating-bar__button:hover,
.rfb-services-floating-bar__button:focus {
    background: #111827;
    color: #fff;
    text-decoration: none;
}

.rfb-services-floating-bar__button:focus-visible,
.rfb-services-floating-bar__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.rfb-services-floating-bar__button-icon {
    width: 20px;
    height: 20px;
    margin-left: 12px;
    object-fit: contain;
}

.rfb-services-floating-bar__close {
    position: absolute;
    top: 50%;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
}

.rfb-services-floating-bar__close:hover {
    opacity: 0.75;
}

body.rfb-floating-bar-active {
    padding-bottom: var(--rfb-floating-bar-height);
}

@media (max-width: 767px) {
    .rfb-services-floating-bar {
        min-height: auto;
    }

    .rfb-services-floating-bar__inner {
        width: 100%;
        min-height: auto;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 48px 8px 16px;
    }

    .rfb-services-floating-bar__message {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .rfb-services-floating-bar__button {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    .rfb-services-floating-bar__button-icon {
        width: 17px;
        height: 17px;
        margin-left: 8px;
    }

    .rfb-services-floating-bar__close {
        right: 8px;
    }

    body.rfb-floating-bar-active {
        padding-bottom: 66px;
    }
}

@media (max-width: 480px) {
    .rfb-services-floating-bar__inner {
        align-items: center;
    }

    .rfb-services-floating-bar__message {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .rfb-services-floating-bar__button-icon {
        display: none;
    }
}
