/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    color: #333;
}

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

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

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

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.cookie-consent-text p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.cookie-consent-text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #5a67d8;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: auto;
}

.cookie-btn-accept-all {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.cookie-btn-accept-all:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cookie-btn-reject {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.cookie-btn-reject:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.cookie-btn-customize {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.cookie-btn-customize:hover {
    background: #667eea;
    color: white;
}

.cookie-btn-accept {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.cookie-btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.cookie-settings-show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-settings-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    color: #333;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.cookie-settings-show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-settings-body p {
    margin: 0 0 1.5rem 0;
    color: #555;
    line-height: 1.5;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-category {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.cookie-category-description {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.cookie-list {
    margin-top: 0.5rem;
}

.cookie-list small {
    color: #888;
    font-size: 0.8rem;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

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

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

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

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

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

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-actions {
        justify-content: center;
    }
    
    .cookie-consent-actions .cookie-btn {
        flex: 1;
        min-width: auto;
        max-width: none;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: auto;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-settings-header {
        padding: 1rem;
    }
    
    .cookie-settings-body {
        padding: 1rem;
    }
    
    .cookie-settings-footer {
        padding: 1rem;
        flex-direction: column-reverse;
    }
    
    .cookie-settings-footer .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: auto;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: auto;
    }
    
    .cookie-consent-actions .cookie-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: auto;
    }
    
    .cookie-settings-footer .cookie-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: auto;
    }
    
    .cookie-settings-content {
        border-radius: 12px;
    }
} 