/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.cookie-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-accept {
    background: #2ecc71;
    color: white;
}

.cookie-btn-accept:hover {
    background: #27ae60;
}

.cookie-btn-reject {
    background: #e74c3c;
    color: white;
}

.cookie-btn-reject:hover {
    background: #c0392b;
}

.cookie-btn-settings {
    background: #3498db;
    color: white;
}

.cookie-btn-settings:hover {
    background: #2980b9;
}

.cookie-link {
    color: #3498db;
    text-decoration: underline;
    font-size: 14px;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #2ecc71;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.disabled .cookie-slider {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.cookie-category-content {
    padding: 20px;
}

.cookie-category-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-purposes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.cookie-purposes h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.cookie-purposes ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-footer-left {
    display: flex;
    gap: 10px;
}

.cookie-footer-right {
    display: flex;
    gap: 10px;
}

/* Settings Icon */
.cookie-settings-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.cookie-settings-icon:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.cookie-settings-icon.show {
    display: flex;
}

.cookie-settings-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: auto;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-footer-left,
    .cookie-footer-right {
        justify-content: center;
    }
}