/* Cookie consent banner — self-contained styles. Colours aligned with
   the main TypeMatrix palette (primary #adc400 / secondary #356da9). */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #ffffff;
    color: #333;
    border-top: 3px solid #adc400;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    animation: cookie-slide-up 0.35s ease-out;
}

@keyframes cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent-inner {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    grid-template-columns: 1fr auto;
    align-items: start;
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        grid-template-columns: 1fr;
    }
}

.cookie-consent-main h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #222;
}

.cookie-consent-main p {
    margin: 0;
    color: #555;
    line-height: 1.45;
}

.cookie-consent-main a {
    color: #356da9;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cookie-consent-actions .btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cookie-consent-actions .btn-primary {
    background: #adc400;
    color: #222;
    border-color: #adc400;
}
.cookie-consent-actions .btn-primary:hover { background: #97ab00; }

.cookie-consent-actions .btn-outline-secondary {
    background: transparent;
    border-color: #356da9;
    color: #356da9;
}
.cookie-consent-actions .btn-outline-secondary:hover {
    background: #356da9;
    color: #fff;
}

.cookie-consent-customize {
    grid-column: 1 / -1;
    border-top: 1px solid #e6e6e6;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cookie-consent-customize h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #222;
}

.cookie-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cookie-category {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

.cookie-category:last-child { border-bottom: none; }

.cookie-category label {
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
}

.cookie-category input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #adc400;
    flex: 0 0 auto;
}

.cookie-category-body {
    flex: 1 1 auto;
}

.cookie-category-body strong {
    color: #222;
}

.cookie-category-required {
    color: #818181;
    font-weight: normal;
    font-style: italic;
}

.cookie-category-description {
    display: block;
    margin-top: 0.2rem;
    color: #555;
    font-size: 0.88rem;
    line-height: 1.4;
}

.cookie-consent-customize-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.cookie-consent-customize-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: #adc400;
    color: #222;
    border: 1px solid #adc400;
    font-weight: 600;
    cursor: pointer;
}
.cookie-consent-customize-actions .btn:hover { background: #97ab00; }
