/* ApolloRisk Consent Manager — v1.0.0 */

/* ── Banner ── */
#arcm-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 16px 24px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    /* sem margin/padding no topo do conteúdo — não causa CLS */
    contain: layout;
}

.arcm-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.arcm-banner-text {
    flex: 1;
    margin: 0;
}

.arcm-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Botões ── */
.arcm-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.arcm-btn:hover { opacity: .85; }
.arcm-btn:focus { outline: 2px solid #7b61ff; outline-offset: 2px; }

.arcm-btn-primary {
    background: #7b61ff;
    color: #fff;
}
.arcm-btn-secondary {
    background: transparent;
    color: #b0b0c8;
    border: 1px solid #444;
}
.arcm-btn-danger {
    background: #c0392b;
    color: #fff;
}

/* ── Modal overlay ── */
#arcm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}
.arcm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.arcm-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 8px;
    width: min(90vw, 560px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.arcm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #2e2e4a;
}
.arcm-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}
.arcm-modal-close {
    background: none;
    border: none;
    color: #9090b0;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.arcm-modal-close:focus { outline: 2px solid #7b61ff; outline-offset: 2px; }

/* ── Categorias ── */
.arcm-modal-body { padding: 8px 0; }

.arcm-category {
    padding: 16px 24px;
    border-bottom: 1px solid #2e2e4a;
}
.arcm-category:last-child { border-bottom: none; }
.arcm-category-disabled { opacity: .5; }

.arcm-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.arcm-category-header strong { font-size: 14px; color: #fff; }
.arcm-category-desc { margin: 4px 0 0; font-size: 12px; color: #9090b0; }

.arcm-always-active {
    font-size: 12px;
    color: #7b61ff;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Toggle switch ── */
.arcm-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.arcm-toggle input { opacity: 0; width: 0; height: 0; }
.arcm-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 24px;
    transition: background .2s;
    cursor: pointer;
}
.arcm-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.arcm-toggle input:checked + .arcm-slider { background: #7b61ff; }
.arcm-toggle input:checked + .arcm-slider::before { transform: translateX(20px); }
.arcm-toggle input:focus + .arcm-slider { outline: 2px solid #7b61ff; outline-offset: 2px; }
.arcm-toggle input:disabled + .arcm-slider { cursor: not-allowed; }

/* ── Footer do modal ── */
.arcm-modal-footer {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #2e2e4a;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Prevenção de scroll quando modal aberto ── */
body.arcm-modal-open { overflow: hidden; }
