.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    padding: 1rem;
    border-top: 1px solid #dbe2ea;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-inner {
    display: flex;
    max-width: 1180px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-copy {
    max-width: 760px;
    color: var(--dark);
}

.cookie-consent-copy > strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cookie-consent-copy p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-consent-copy details {
    margin-top: 0.4rem;
}

.cookie-consent-copy summary {
    width: max-content;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-copy details p {
    margin-top: 0.4rem;
}

.cookie-consent-copy a {
    color: var(--primary);
    font-weight: 600;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.65rem;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 7px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-button-primary {
    background: var(--primary);
    color: white;
}

.cookie-consent-button-secondary {
    background: white;
    color: var(--primary);
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    filter: brightness(0.94);
}

.footer-cookie-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    cursor: pointer;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
    color: var(--primary);
    outline: none;
}

@media (max-width: 760px) {
    .cookie-consent-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-button {
        flex: 1;
    }
}

@media (max-width: 430px) {
    .cookie-consent-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}
