/* =========================================================
   ISLAB 2026 — Cookie Consent (LGPD) — Banner + Modal
   Paleta cyan oficial:
     primary:      #0891b2  (cyan-600)
     primary-dark: #155e75  (cyan-700)
     accent:       #06b6d4  (cyan-500)
   Adaptado de labocliv_2026final/themes/labocliv2/assets/css/cookie-consent.css
   Prefixo: .icc-* (Islab Cookie Consent)
   ========================================================= */

/* ---------- Banner ---------- */
.icc-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 680px;
    padding: 24px 28px;
    background: rgba(15, 23, 42, 0.96);  /* slate-900 com transparencia */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    z-index: 99998;
    display: none;
}

.icc-cookie-banner.is-visible {
    display: block;
    animation: icc-fade-in .35s ease;
}

@keyframes icc-fade-in {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

.icc-cookie-banner__text {
    margin: 0 0 18px;
    text-align: center;
}

.icc-cookie-banner__text a {
    color: #06b6d4;
    text-decoration: underline;
}
.icc-cookie-banner__text a:hover { color: #67e8f9; }

.icc-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* ---------- Buttons (banner + modal) ---------- */
.icc-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, background .2s, color .2s, border-color .2s;
    color: #fff;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
}
.icc-btn:hover  { opacity: .9; }
.icc-btn:focus  { outline: 2px solid #06b6d4; outline-offset: 2px; }

.icc-btn--primary      { background: #0891b2; border-color: #0891b2; color: #fff; }
.icc-btn--primary:hover{ background: #155e75; border-color: #155e75; opacity: 1; }
.icc-btn--secondary    { background: #475569; border-color: #475569; color: #fff; }
.icc-btn--secondary:hover { background: #334155; border-color: #334155; opacity: 1; }
.icc-btn--outline      { background: transparent; border-color: #fff; color: #fff; }
.icc-btn--outline:hover{ background: rgba(255,255,255,.1); }
.icc-btn--outline-dark { background: transparent; border-color: #0891b2; color: #0891b2; }
.icc-btn--outline-dark:hover { background: #0891b2; color: #fff; opacity: 1; }

/* ---------- Modal ---------- */
.icc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .65);
    overflow-y: auto;
    padding: 32px 16px;
    font-family: 'Inter', Arial, sans-serif;
}
.icc-modal.is-visible { display: block; }
body.icc-modal-open   { overflow: hidden; }

.icc-modal__dialog {
    background: #fff;
    color: #1f2937;
    max-width: 940px;
    margin: 0 auto;
    padding: 36px 32px 28px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    position: relative;
}

.icc-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}
.icc-modal__close:hover { color: #0891b2; }

.icc-modal__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #155e75;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.icc-modal__intro {
    margin: 0 auto 8px;
    max-width: 740px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* ---------- Category cards ---------- */
.icc-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 20px;
}
@media (max-width: 760px) { .icc-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .icc-cats { grid-template-columns: 1fr; } }

.icc-cat {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 12px 14px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
    user-select: none;
}
.icc-cat:hover { border-color: #cbd5e1; transform: translateY(-2px); }

.icc-cat.is-active {
    background: #ecfeff;
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, .15) inset;
}

.icc-cat__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
    transition: background .2s, color .2s;
}

.icc-cat.is-active .icc-cat__icon {
    background: #cffafe;
    color: #0891b2;
}

.icc-cat__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1f2937;
}

.icc-cat__check { margin-top: 6px; }
.icc-cat__check input { transform: scale(1.25); accent-color: #0891b2; cursor: pointer; }
.icc-cat__check input:disabled { opacity: .8; cursor: not-allowed; }

/* ---------- Two-column lists (this site will / will not) ---------- */
.icc-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 600px) {
    .icc-lists { grid-template-columns: 1fr; gap: 18px; }
}

.icc-lists h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #155e75;
    font-weight: 600;
}

.icc-lists ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.icc-lists li {
    padding: 4px 0 4px 14px;
    position: relative;
}

.icc-lists li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.icc-lists li strong { color: #1f2937; }

/* ---------- Footer do modal ---------- */
.icc-modal__footer {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Link "Configurações de Cookies" no footer geral do site ---------- */
.icc-cookie-prefs-link {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.icc-cookie-prefs-link:hover { color: #0891b2; }

/* ---------- Responsivo do banner ---------- */
@media (max-width: 480px) {
    .icc-cookie-banner {
        bottom: 12px;
        padding: 18px 20px;
        max-width: 100%;
        border-radius: 8px;
    }
    .icc-cookie-banner__text { font-size: 13px; }
    .icc-cookie-banner__actions { flex-direction: column; }
    .icc-cookie-banner__actions .icc-btn { width: 100%; }
}
