/**
 * Cookie Consent Banner Styles
 */

#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 2px solid #1D328B;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-consent-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 600;
    color: #1D328B;
    margin: 0;
    flex: 1;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
}

.cookie-consent-text a {
    color: #1D328B;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #0a244a;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-consent-btn-primary {
    background-color: #1D328B;
    color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    background-color: #0a244a;
}

.cookie-consent-btn-secondary {
    background-color: transparent;
    color: #1D328B;
    border: 2px solid #1D328B;
}

.cookie-consent-btn-secondary:hover {
    background-color: #f8f9fa;
}

.cookie-consent-btn-link {
    background-color: transparent;
    color: #666666;
    padding: 12px 16px;
}

.cookie-consent-btn-link:hover {
    color: #1D328B;
    text-decoration: underline;
}

/* Settings Panel */
#cookie-consent-settings {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cookie-consent-settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D328B;
    margin: 0 0 15px 0;
}

.cookie-consent-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-consent-setting-item:last-child {
    border-bottom: none;
}

.cookie-consent-setting-info {
    flex: 1;
    margin-right: 20px;
}

.cookie-consent-setting-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 5px 0;
}

.cookie-consent-setting-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-setting-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-consent-setting-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-setting-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-consent-setting-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-consent-setting-toggle input:checked + .slider {
    background-color: #1D328B;
}

.cookie-consent-setting-toggle input:checked + .slider:before {
    transform: translateX(24px);
}

.cookie-consent-setting-toggle input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-consent-necessary-badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cookie-consent-title {
        font-size: 18px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

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

    .cookie-consent-setting-item {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent-setting-info {
        margin-right: 0;
    }

    .cookie-consent-setting-toggle {
        align-self: flex-end;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#cookie-consent-banner.show {
    animation: slideUp 0.3s ease-out;
}
