/* Cookie Consent Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

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

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

.cookie-consent-text a:hover {
    color: #66BB6A;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #4CAF50;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

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

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-link {
    background: transparent;
    color: #4CAF50;
    text-decoration: underline;
    border: none;
    padding: 10px 15px;
}

.cookie-btn-link:hover {
    color: #66BB6A;
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cookie-preferences-modal.show {
    opacity: 1;
}

.cookie-preferences-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.close-preferences {
    background: none;
    border: none;
    font-size: 28px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-preferences:hover {
    color: #1a1a1a;
}

.cookie-preference-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.cookie-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-preference-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
}

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

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

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

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #4CAF50;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-preference-item p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.cookie-preference-required {
    font-size: 12px;
    color: #999999;
    font-style: italic;
}

.cookie-preferences-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

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

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-preferences-content {
        padding: 20px;
        width: 95%;
    }

    .cookie-preferences-header h2 {
        font-size: 20px;
    }

    .cookie-preferences-footer {
        flex-direction: column;
    }

    .cookie-preferences-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 15px;
    }

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

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

    .cookie-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Footer Cookie Policy Link */
.footer-cookie-link {
    margin-top: 10px;
}

.footer-cookie-link a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.footer-cookie-link a:hover {
    color: #4CAF50;
}
