/**
 * Cookie Consent Banner
 *
 * BEM naming convention:
 * Block: .cookie-consent
 * Elements: __text, __info, __link, __actions, __button
 * Modifiers: --primary, --secondary, --hidden
 */

.cookie-consent {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 25rem;
    padding: 1.25rem;
    background: var(--color-white);
    border: 2px solid var(--color-black);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-03);
    line-height: var(--line-height);
}

.cookie-consent--hidden {
    display: none;
}

.cookie-consent__text {
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
}

.cookie-consent__info {
    margin: 0 0 1rem 0;
    color: var(--color-text-2);
    font-size: var(--font-size-02);
}

.cookie-consent__link {
    color: var(--color-text);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus {
    color: var(--color-text-2);
}

.cookie-consent__actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

/* Button base - matches global .button styles */
.cookie-consent__button {
    display: inline-block;
    flex: 1;
    min-width: 8rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    text-align: center;
    font-family: "Maax Medium";
    font-weight: 400;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

/* Primary button - matches global .button--primary */
.cookie-consent__button--primary {
    background: var(--color-black);
    color: var(--color-white);
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus {
    background: var(--color-black);
    text-decoration: none;
}

/* Secondary button - matches global .button--secondary */
.cookie-consent__button--secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--secondary:focus {
    background: var(--color-gray-light);
    text-decoration: none;
}

/* Focus styles for accessibility */
.cookie-consent__button:focus {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

.cookie-consent__link:focus {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 480px) {
    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__button {
        min-width: 100%;
    }
}
