/* CemLIF consent banner + preferences panel (see js/consent.js) */

.cemlif-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    background: var(--white-color, #fff);
    color: var(--gray-color, #353C41);
    font-family: var(--fustat-font, sans-serif);
    box-shadow: 0 -4px 24px rgba(2, 16, 25, 0.12);
    border-top: 3px solid var(--blue-color, #177CB9);
}

.cemlif-consent__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cemlif-consent__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 420px;
}

.cemlif-consent__text a,
.cemlif-consent__panel a {
    color: var(--blue-color, #177CB9);
    text-decoration: underline;
}

.cemlif-consent__gpc {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.8;
}

.cemlif-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cemlif-consent__btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--blue-color, #177CB9);
    background: transparent;
    color: var(--blue-color, #177CB9);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cemlif-consent__btn:hover {
    background: rgba(23, 124, 185, 0.08);
}

.cemlif-consent__btn--primary {
    background: var(--blue-color, #177CB9);
    color: var(--white-color, #fff);
}

.cemlif-consent__btn--primary:hover {
    background: #12629a;
}

.cemlif-consent__btn--link {
    border-color: transparent;
    text-decoration: underline;
    padding-left: 6px;
    padding-right: 6px;
}

.cemlif-consent__btn:focus-visible,
.cemlif-consent__close:focus-visible,
.cemlif-consent__cat input:focus-visible {
    outline: 3px solid #021019;
    outline-offset: 2px;
}

/* Preferences panel */

.cemlif-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 16, 25, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cemlif-consent__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--white-color, #fff);
    color: var(--gray-color, #353C41);
    font-family: var(--fustat-font, sans-serif);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(2, 16, 25, 0.3);
}

.cemlif-consent__panel h2 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--gray-color, #353C41);
}

.cemlif-consent__panel-intro,
.cemlif-consent__cat-desc,
.cemlif-consent__note {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cemlif-consent__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--gray-color, #353C41);
    cursor: pointer;
}

.cemlif-consent__close:hover {
    background: rgba(2, 16, 25, 0.06);
}

.cemlif-consent__cats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.cemlif-consent__cat {
    border: 1px solid rgba(53, 60, 65, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
}

.cemlif-consent__cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.cemlif-consent__cat-head input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--blue-color, #177CB9);
    cursor: pointer;
}

.cemlif-consent__cat-head input:disabled {
    cursor: default;
}

.cemlif-consent__cat-head label {
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.cemlif-consent__cat-desc {
    margin: 0;
    opacity: 0.85;
}

.cemlif-consent__panel .cemlif-consent__actions {
    justify-content: flex-end;
    margin-top: 8px;
}

body.cemlif-consent-open {
    overflow: hidden;
}

/* Toast shown after withdrawing consent */

.cemlif-consent__toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 99995;
    background: #021019;
    color: #fff;
    font-family: var(--fustat-font, sans-serif);
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(2, 16, 25, 0.3);
    max-width: calc(100vw - 40px);
}

/* Placeholders for consent-gated embeds (e.g. reviews widget) */

.cemlif-consent-placeholder {
    background: #F3F8FC;
    border: 1px dashed rgba(23, 124, 185, 0.4);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    font-family: var(--fustat-font, sans-serif);
    color: var(--gray-color, #353C41);
    max-width: 640px;
    margin: 0 auto;
}

.cemlif-consent-placeholder p {
    margin: 0 0 14px;
    font-size: 15px;
}

@media (max-width: 575px) {
    .cemlif-consent__inner {
        padding: 14px 16px;
    }
    .cemlif-consent__actions {
        width: 100%;
    }
    .cemlif-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }
    .cemlif-consent__panel {
        padding: 22px 18px 18px;
        border-radius: 12px;
    }
}
