/* Root container */
.cookie-consent-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    max-width: 550px;
    padding: 20px;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: 999999;
    animation: fadeIn 0.4s ease-out;
}
.cookie-consent-heading {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-left: 0;
}
.cookie-consent-heading img {
    width: 35px;
    margin-right: 15px;
}
/* Image styling */
.cookie-consent-image {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

/* Text container */
.cookie-consent-content {
    display: flex;
    flex-direction: column;
}

/* Title */
.cookie-consent-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-H1-color);
    padding-bottom: 2px;
}

/* Description text */
.cookie-consent-text {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.45;
}
.cookie-consent-text a {
    color: var(--color-underline-cta);
    text-decoration: underline;
    cursor: pointer;
}
.cookie-consent-text a {
    text-decoration-color: var(--color-underline-cta);
}
/* Buttons container */
.cookie-consent-buttons {
    display: flex;
    gap: 0.6rem;
    margin-left: 0;
    margin-top: 20px;
}


/* Base button style */
.cookie-consent-buttons button {
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Accept All */
.cookie-btn-accept-all {
    background: var(--color-underline-cta);
    color: #fff;
    margin-left: 0;
}
.cookie-btn-accept-all:hover {
    background: #0066d2;
}

/* Essential Only */
.cookie-btn-essential-only {
    background: #E5E5E5;
    color: #333;
    margin-left: 0;
}
.cookie-btn-essential-only:hover {
    background: #d2d2d2;
}

/* Settings */
.cookie-btn-preferences {
    background: var(--light-grey-shadowing);
    border: 2px solid #333;
    color: #333;
    margin-left: 0;
}
.cookie-btn-preferences:hover {
    background: #E5E5E5;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile layout */
@media (max-width: 576px) {
    .cookie-consent-box {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 14px 14px 0 0;
        transform: none;
        padding: 1.25rem 1.25rem 1.5rem;
        gap: 10px;
    }

    .cookie-consent-heading img {
        width: 28px;
    }

    .cookie-consent-title {
        font-size: 1.1rem;
    }

    .cookie-consent-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 10px;
    }

    .cookie-consent-buttons button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

