/* Compact cookie consent bar */
.fw-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1090;
    color: #f5f5f5;
}

.fw-cookie-consent__bar {
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.fw-cookie-consent__panel {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
}

.fw-cookie-consent__panel .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.fw-cookie-consent__panel-note {
    margin: 0;
    font-size: 0.78rem;
    color: #aaa;
    flex: 1 1 200px;
}

.fw-cookie-consent__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.fw-cookie-consent__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.82rem;
    color: #ddd;
    cursor: pointer;
    white-space: nowrap;
}

.fw-cookie-consent__toggle input {
    accent-color: #833116;
}

body.fw-cookie-visible {
    padding-bottom: 0;
}

body.fw-cookie-panel-open {
    padding-bottom: 0;
}

.fw-cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.fw-cookie-consent__content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 280px;
    min-width: 0;
}

.fw-cookie-consent__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(131, 49, 22, 0.3);
    color: #e8b4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.fw-cookie-consent__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ccc;
}

.fw-cookie-consent__text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.fw-cookie-consent__text a:hover {
    color: #e8b4a0;
}

.fw-cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fw-cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.fw-cookie-consent__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.fw-cookie-consent__btn--decline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.fw-cookie-consent__btn--decline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
}

.fw-cookie-consent__btn--customize {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.fw-cookie-consent__btn--customize:hover:not(:disabled),
.fw-cookie-consent__btn--customize[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
}

.fw-cookie-consent__btn--accept,
.fw-cookie-consent__btn--save {
    background: #833116;
    color: #fff;
    border-color: #833116;
}

.fw-cookie-consent__btn--accept:hover:not(:disabled),
.fw-cookie-consent__btn--save:hover:not(:disabled) {
    background: #5a2210;
    border-color: #5a2210;
}

/* Tablet: stack content + actions, keep desktop bar unchanged above 992px */
@media (max-width: 991.98px) {
    .fw-cookie-consent__bar {
        padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }

    .fw-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .fw-cookie-consent__content {
        align-items: flex-start;
        flex: 1 1 auto;
    }

    .fw-cookie-consent__text {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .fw-cookie-consent__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .fw-cookie-consent__btn {
        flex: none;
        min-height: 36px;
        font-size: 0.78rem;
    }

    .fw-cookie-consent__btn--accept {
        grid-column: 1 / -1;
        min-height: 38px;
    }

    .fw-cookie-consent__panel .container {
        flex-direction: column;
        align-items: stretch;
    }

    .fw-cookie-consent__btn--save {
        width: 100%;
    }

    body.fw-cookie-visible {
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    body.fw-cookie-panel-open {
        padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
    }

    /* Keep floating buttons clear of the cookie bar */
    body.fw-cookie-visible #scrollTopBtn,
    body.fw-cookie-visible .fw-whatsapp-fab {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(12px) !important;
    }
}

@media (max-width: 575.98px) {
    .fw-cookie-consent__bar {
        padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .fw-cookie-consent__content {
        gap: 0.5rem;
    }

    .fw-cookie-consent__icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-top: 1px;
    }

    .fw-cookie-consent__text {
        font-size: 0.74rem;
        line-height: 1.38;
    }

    .fw-cookie-consent__actions {
        gap: 0.4rem;
    }

    .fw-cookie-consent__btn {
        min-height: 34px;
        padding: 0.3rem 0.65rem;
        font-size: 0.74rem;
    }

    .fw-cookie-consent__btn--accept {
        min-height: 36px;
    }

    body.fw-cookie-visible {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    body.fw-cookie-panel-open {
        padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px));
    }
}
