/**
 * Cookie Consent Popup Styles
 * Similar to citilink.ru implementation
 */

/* Overlay removed - no longer blocking content */

/* Main popup */
.cookie-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.3s ease;
    padding: 20px;
    max-width: 100%;
    /* Ensure popup doesn't block content interaction */
    pointer-events: auto;
}

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

.cookie-consent-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}

.cookie-learn-more {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-learn-more:hover {
    color: #0052a3;
    text-decoration: none;
}

.cookie-consent-actions {
    flex-shrink: 0;
}

.cookie-consent-btn {
    background: #ff8a00;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 100px;
}

.cookie-consent-btn:hover {
    background: #0052a3;
}

.cookie-consent-btn:active {
    background: #004080;
}

/* Detail modal */
.cookie-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-detail-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.cookie-detail-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.cookie-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cookie-detail-close:hover {
    background-color: #f0f0f0;
    color: #333333;
}

.cookie-detail-body {
    padding: 20px 24px;
}

.cookie-detail-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

.cookie-detail-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-consent-popup {
        padding: 16px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-consent-text {
        text-align: center;
    }
    
    .cookie-consent-actions {
        text-align: center;
    }
    
    .cookie-consent-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cookie-detail-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .cookie-detail-header,
    .cookie-detail-body,
    .cookie-detail-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-popup {
        padding: 12px;
    }
    
    .cookie-consent-text {
        font-size: 13px;
    }
    
    .cookie-consent-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
