/* Consentimento LGPD: site ao fundo borrado + painel por cima */

.correios-blur-stage {
    position: relative;
    min-height: 100vh;
}

.correios-blur-stage--blur {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.cookie-consent-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: auto;
}

.cookie-consent-layer__dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: auto;
}

.cookie-consent-panel--floating {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    max-height: min(50vh, 24rem);
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    background: rgba(250, 250, 250, 0.97);
    border-top: 3px solid #0071ad;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    font-family: 'Trebuchet MS', 'arial', 'helvetica', 'Open Sans', sans-serif;
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
    .cookie-consent-panel--floating {
        max-height: none;
        padding: 1.25rem 2rem 1.5rem;
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .cookie-consent-panel--floating .cookie-consent-panel__text {
        flex: 1 1 18rem;
        min-width: 0;
    }

    .cookie-consent-panel--floating .cookie-consent-panel__actions {
        flex: 0 0 auto;
    }
}

.cookie-consent-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #00416b;
    font-weight: 700;
}

.cookie-consent-panel__body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #555577;
}

.cookie-consent-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.cookie-consent-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0071ad;
}

.cookie-consent-btn--accept {
    background: #0071ad;
    color: #fff;
    border-color: #0071ad;
}

.cookie-consent-btn--accept:hover {
    background: #005a8c;
    border-color: #005a8c;
}

.cookie-consent-btn--reject {
    background: #fff;
    color: #00416b;
    border-color: #c5ced4;
}

.cookie-consent-btn--reject:hover {
    background: #eef2f5;
    border-color: #a8b4bd;
}

body.cookie-consent-open {
    overflow: hidden;
}
