/* Banner de consentimento de cookies (LGPD) — modelo do Escalando OS.
   Carregado só pela partial _lgpdConsentBanner, junto do lgpd-consent.js; autocontido
   (não depende do tema da página). Fica acima dos banners do PWA (z-index 1080). */

.sesmt-lgpd-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 2000;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    color: #12303b;
    border: 1px solid #dce4e1;
    border-top: 3px solid #0A3543;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 30, 49, .22);
    font-family: inherit;
    text-align: left;
}

.sesmt-lgpd-banner[hidden] {
    display: none !important;
}

.sesmt-lgpd-banner__inner {
    padding: 1.1rem 1.25rem;
}

.sesmt-lgpd-banner__content {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}

.sesmt-lgpd-banner__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #eef4f3;
    color: #0A3543;
}

.sesmt-lgpd-banner__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.sesmt-lgpd-banner__title {
    margin: 0 0 .3rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0A3543;
}

.sesmt-lgpd-banner__desc {
    margin: 0 0 .9rem;
    font-size: .9rem;
    line-height: 1.5;
    color: #3d5961;
}

.sesmt-lgpd-banner__link {
    color: #0A3543;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sesmt-lgpd-banner__link:hover {
    color: #144B60;
}

.sesmt-lgpd-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.sesmt-lgpd-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: .5rem 1rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sesmt-lgpd-btn:focus-visible {
    outline: 2px solid #c89b63;
    outline-offset: 2px;
}

.sesmt-lgpd-btn--primary {
    background: #0A3543;
    color: #ffffff;
}

.sesmt-lgpd-btn--primary:hover {
    background: #144B60;
    color: #ffffff;
}

.sesmt-lgpd-btn--ghost {
    background: transparent;
    border-color: #c5d3d1;
    color: #12303b;
}

.sesmt-lgpd-btn--ghost:hover {
    background: #f1f6f5;
    border-color: #93aaa8;
}

.sesmt-lgpd-banner__custom {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e3eae8;
}

.sesmt-lgpd-banner__custom[hidden] {
    display: none !important;
}

.sesmt-lgpd-switch {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0;
    font-size: .875rem;
    line-height: 1.45;
    color: #3d5961;
    cursor: pointer;
}

.sesmt-lgpd-switch strong {
    color: #12303b;
}

.sesmt-lgpd-switch input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: .2rem;
    accent-color: #0A3543;
}

.sesmt-lgpd-switch input[type="checkbox"]:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.sesmt-lgpd-banner__custom-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 540px) {
    .sesmt-lgpd-banner {
        left: .5rem;
        right: .5rem;
        bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    }

    .sesmt-lgpd-banner__inner {
        padding: 1rem;
    }

    .sesmt-lgpd-banner__icon {
        display: none;
    }

    .sesmt-lgpd-banner__actions {
        flex-direction: column-reverse;
    }

    .sesmt-lgpd-btn {
        width: 100%;
    }
}

@media print {
    .sesmt-lgpd-banner {
        display: none !important;
    }
}
