
/* Climote centred cookie consent */

.climote-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 31, 0.68);
    overflow-y: auto;
    box-sizing: border-box;
}

.climote-consent-card {
    width: 100%;
    max-width: 490px;
    margin: auto;
    padding: 28px;
    background: #fff;
    color: #263238;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    box-sizing: border-box;
}

.climote-consent-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.climote-consent-heading .material-icons {
    color: #2e8540;
    font-size: 27px;
}

.climote-consent-heading h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.climote-consent-description {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.climote-consent-policy {
    font-size: 13px;
    line-height: 1.6;
    color: #59656b;
    margin-bottom: 20px;
}

.climote-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.climote-consent-actions button {
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.climote-consent-necessary {
    background: #fff;
    color: #263238;
    border: 1px solid #7b878d;
}

.climote-consent-accept {
    background: #2e8540;
    color: #fff;
    border: 1px solid #2e8540;
}

.climote-consent-necessary:hover {
    background: #f1f4f2;
}

.climote-consent-accept:hover {
    background: #246c34;
}

.climote-consent-customise {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #245e39;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.climote-consent-note {
    margin: 13px 0 0;
    text-align: center;
    font-size: 12px;
    color: #66747b;
}

/* Tablet and mobile */
@media (max-width: 600px) {
    .climote-consent-overlay {
        padding: 14px;
    }

    .climote-consent-card {
        max-width: 420px;
        padding: 22px 18px;
        border-radius: 10px;
    }

    .climote-consent-heading h3 {
        font-size: 19px;
    }

    .climote-consent-actions {
        grid-template-columns: 1fr;
    }

    .climote-consent-actions button {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-height: 550px) {
    .climote-consent-overlay {
        align-items: flex-start;
    }
}

/* Ensure preferences modal is above the cookie popup. */
#cookie-settings-modal {
    z-index: 100002;
}

.modal-backdrop {
    z-index: 100001;
}

/* Keep consent popup above normal website content. */
.climote-consent-overlay {
    z-index: 99999;
}