/* ===== MomCookieConsent (LGPD) ===== */

.mom-cc-root {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2147483000;
    font-family: inherit;
    color: #1a1a1a;
    pointer-events: none;
}

.mom-cc-root * {
    box-sizing: border-box;
}

.mom-cc-bar,
.mom-cc-panel,
.mom-cc-modal {
    pointer-events: auto;
}

.mom-cc-bar {
    margin: 0 auto;
    max-width: 1100px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 18px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.mom-cc-bar__text {
    flex: 1 1 280px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
}

.mom-cc-bar__text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.mom-cc-bar__text p {
    margin: 0;
    color: #444;
}

.mom-cc-bar__text a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.mom-cc-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.mom-cc-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    background: #f3f4f6;
    color: #1a1a1a;
}

.mom-cc-btn:hover {
    filter: brightness(0.97);
}

.mom-cc-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.mom-cc-btn--primary {
    background: #1f2937;
    color: #fff;
}

.mom-cc-btn--ghost {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.15);
}

.mom-cc-panel {
    display: none;
    margin: 0 auto;
    max-width: 1100px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    border-radius: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 0 18px 18px;
}

.mom-cc-panel.mom-cc-open {
    display: block;
}

.mom-cc-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mom-cc-cat__info {
    flex: 1;
    min-width: 0;
}

.mom-cc-cat__info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.mom-cc-cat__info span {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.mom-cc-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mom-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.mom-cc-switch span {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mom-cc-switch span::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mom-cc-switch input:checked + span {
    background: #2563eb;
}

.mom-cc-switch input:checked + span::after {
    transform: translateX(20px);
}

.mom-cc-switch input:disabled + span {
    opacity: 0.7;
    cursor: not-allowed;
    background: #9ca3af;
}

.mom-cc-switch input:focus-visible + span {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.mom-cc-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
}

.mom-cc-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
}

.mom-cc-modal-backdrop.mom-cc-open {
    display: flex;
}

.mom-cc-modal {
    width: min(720px, 100%);
    max-height: min(80vh, 640px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mom-cc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mom-cc-modal__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.mom-cc-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    color: #333;
}

.mom-cc-modal__body {
    padding: 16px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.5;
}

.mom-cc-modal__body p {
    margin: 0 0 0.75em;
}

.mom-cc-modal__body .mom-cc-loading,
.mom-cc-modal__body .mom-cc-empty {
    color: #666;
}

@media (max-width: 640px) {
    .mom-cc-bar {
        border-radius: 0;
        max-width: none;
    }

    .mom-cc-panel {
        max-width: none;
    }

    .mom-cc-bar__actions {
        width: 100%;
    }

    .mom-cc-bar__actions .mom-cc-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
