/* Cookie Consent Bar Styles */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.cookie-consent-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-text {
    flex: 1;
    padding-right: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #4CAF50;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cookie-consent-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cookie-consent-accept-all {
    background-color: #4CAF50;
    color: white;
}

.cookie-consent-accept-all:hover {
    background-color: #45a049;
}

.cookie-consent-reject-all {
    background-color: #f44336;
    color: white;
}

.cookie-consent-reject-all:hover {
    background-color: #d32f2f;
}

.cookie-consent-customize {
    background-color: #2196F3;
    color: white;
}

.cookie-consent-customize:hover {
    background-color: #0b7dda;
}

.cookie-consent-save {
    background-color: #ff9800;
    color: white;
}

.cookie-consent-save:hover {
    background-color: #e68a00;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.cookie-settings-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: #333;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-settings-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.cookie-settings-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.cookie-settings-tab.active {
    border-bottom-color: #4CAF50;
    font-weight: bold;
}

.cookie-settings-section {
    display: none;
    margin-bottom: 20px;
}

.cookie-settings-section.active {
    display: block;
}

.cookie-settings-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cookie-settings-section p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cookie-type-info {
    flex: 1;
}

.cookie-type-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cookie-type-description {
    font-size: 14px;
    color: #666;
}

.cookie-type-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-type-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-type-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-type-slider {
    background-color: #4CAF50;
}

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

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-settings-content {
        margin: 20px auto;
        width: 95%;
    }
}

/* Cookie consent button to open settings later */
.open-cookie-settings {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    font-size: 24px;
}

.open-cookie-settings:hover {
    background-color: #555;
}
