/**
 * ConsentManager CSS - De Movers (primary blue theme)
 */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #0f1218;
    border-top: 1px solid rgba(0, 142, 214, 0.3);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    font-family: Poppins, Inter, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #f9fafb;
    display: none;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.cookie-banner__text { flex: 1; min-width: 0; }

.cookie-banner__title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #008ED6;
}

.cookie-banner__description {
    margin: 0;
    color: rgba(249, 250, 251, 0.9);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    white-space: nowrap;
}

.cookie-banner__btn:focus {
    outline: 2px solid #008ED6;
    outline-offset: 2px;
}

.cookie-banner__btn--primary {
    background: #008ED6;
    color: #fff;
}

.cookie-banner__btn--primary:hover {
    background: #0066A0;
}

.cookie-banner__btn--secondary {
    background: #1a1d23;
    color: #f9fafb;
    border: 1px solid rgba(0, 142, 214, 0.5);
}

.cookie-banner__btn--secondary:hover {
    background: #374151;
    border-color: #008ED6;
}

.cookie-banner__btn--settings {
    background: transparent;
    color: #008ED6;
    text-decoration: underline;
    padding: 8px 12px;
    min-width: auto;
}

.cookie-banner__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(249, 250, 251, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cookie-banner__close:hover { color: #f9fafb; }
.cookie-banner__close:focus { outline: 2px solid #008ED6; outline-offset: 2px; }

/* Settings panel */
.cookie-settings {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
}

.cookie-settings__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-settings__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f1218;
    border: 1px solid rgba(0, 142, 214, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    font-family: Poppins, Inter, sans-serif;
    color: #f9fafb;
}

.cookie-settings__header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 142, 214, 0.2);
}

.cookie-settings__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #008ED6;
}

.cookie-settings__close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(249, 250, 251, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cookie-settings__close:hover { color: #f9fafb; }
.cookie-settings__close:focus { outline: 2px solid #008ED6; outline-offset: 2px; }

.cookie-settings__body { padding: 24px; }

.cookie-settings__section-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #008ED6;
}

.cookie-settings__section-description {
    margin: 0 0 16px 0;
    color: rgba(249, 250, 251, 0.85);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-settings__toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #f9fafb;
}

.cookie-settings__toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-settings__toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
    transition: background 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
}

.cookie-settings__toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cookie-settings__toggle-input:checked + .cookie-settings__toggle-slider {
    background: #008ED6;
}

.cookie-settings__toggle-input:checked + .cookie-settings__toggle-slider:before {
    transform: translateX(20px);
}

.cookie-settings__footer {
    padding: 20px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 142, 214, 0.2);
}

.cookie-settings__btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.cookie-settings__btn--primary {
    background: #008ED6;
    color: #fff;
}

.cookie-settings__btn--primary:hover { background: #0066A0; }

.cookie-settings__btn--secondary {
    background: #1a1d23;
    color: #f9fafb;
    border: 1px solid rgba(0, 142, 214, 0.5);
}

.cookie-settings__btn--secondary:hover { background: #374151; }

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    .cookie-banner__actions { justify-content: center; flex-wrap: wrap; }
    .cookie-banner__btn { flex: 1; min-width: 120px; }
    .cookie-banner__close { position: static; align-self: flex-end; margin-bottom: -8px; }
    .cookie-settings__content { width: 95%; margin: 20px; max-height: calc(100vh - 40px); }
    .cookie-settings__footer { flex-direction: column; }
    .cookie-settings__btn { width: 100%; }
}

@media (max-width: 480px) {
    .cookie-settings__content { width: 100%; height: 100%; border-radius: 0; margin: 0; max-height: 100vh; }
}

@media print {
    .cookie-banner, .cookie-settings { display: none !important; }
}
