/* Cookie Consent Styles */

/* Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

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

.cookie-consent-text {
    margin-bottom: 20px;
}

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

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

/* Button Styles */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #2563eb;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.cookie-btn-secondary:hover {
    background: #e5e7eb;
}

.cookie-btn-text {
    background: transparent;
    color: #6b7280;
    padding: 10px 12px;
}

.cookie-btn-text:hover {
    color: #374151;
}

/* Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.cookie-close:hover {
    background: #f3f4f6;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body > p {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cookie-category {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

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

.cookie-category-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #111827;
}

.cookie-category-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #2563eb;
}

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

.cookie-switch input:disabled + .cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cookie-consent-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Small banner link */
.cookie-preferences-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
    transition: all 0.2s;
}

.cookie-preferences-link:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #374151;
}

.cookie-preferences-link svg {
    width: 16px;
    height: 16px;
}