/* CSS Document */
/* Cookie Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 400px;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 24px;
    z-index: 999999;
    font-family: system-ui, -apple-system, sans-serif;
    display: none;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #eaeaea;
}

.cookie-consent-banner.show {
    display: flex;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-title { font-size: 1.15rem; font-weight: 600; margin: 0; color: #111111; }
.cookie-text { font-size: 0.9rem; line-height: 1.5; margin: 0; color: #555555; }
.cookie-text a { color: #007bff; text-decoration: none; font-weight: 500; }
.cookie-text a:hover { text-decoration: underline; }

/* Preferences Sections */
.cookie-preferences {
    display: none;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
    margin-top: 4px;
}
.cookie-preferences.show { display: flex; }
.preference-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preference-info { display: flex; flex-direction: column; gap: 2px; }
.preference-label { font-size: 0.9rem; font-weight: 600; color: #222222; }
.preference-desc { font-size: 0.8rem; color: #666666; line-height: 1.4; }

/* Switch Toggle Styling */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e0e0e0; transition: .3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 24px;
}
.switch-slider:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:checked + .switch-slider { background-color: #007bff; }
input:disabled + .switch-slider { background-color: #f0f0f0; cursor: not-allowed; }
input:disabled + .switch-slider:before { background-color: #bcbcbc; }
input:checked + .switch-slider:before { transform: translateX(20px); }

/* Buttons Controls Layout */
.cookie-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.btn-row { display: flex; gap: 8px; width: 100%; }
.cookie-btn { font-size: 0.9rem; font-weight: 500; padding: 10px 16px; border-radius: 6px; border: none; cursor: pointer; text-align: center; flex: 1; }
.btn-accept { background-color: #111111; color: #ffffff; }
.btn-accept:hover { background-color: #2a2a2a; }
.btn-secondary { background-color: #f1f3f5; color: #495057; }
.btn-secondary:hover { background-color: #e9ecef; }
.btn-save { display: none; background-color: #007bff; color: #ffffff; width: 100%; }
.btn-save:hover { background-color: #0056b3; }

/* Mobile Adaptability */
@media (max-width: 480px) {
    .cookie-consent-banner { bottom: 0; left: 0; right: 0; max-width: 100%; border-radius: 12px 12px 0 0; }
    .btn-row { flex-direction: column; }
}


