/* Custom Consent Banner Styles - Beautiful & Modern */

#custom-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    padding: 25px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.consent-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.consent-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.consent-banner-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.consent-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.consent-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.consent-banner-body {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.consent-banner-body p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-size: 1em;
}

.consent-options {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.consent-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.consent-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.consent-option input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.consent-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-option input[type="checkbox"]:disabled + .checkmark {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.consent-option input[type="checkbox"]:disabled + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.option-text {
    flex: 1;
}

.option-text strong {
    color: white;
    display: block;
    margin-bottom: 4px;
    font-size: 1em;
}

.option-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    line-height: 1.4;
}

.consent-banner-footer {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.consent-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.consent-btn:hover::before {
    left: 100%;
}

.consent-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.consent-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.consent-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.consent-btn-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 1px solid #4CAF50;
}

.consent-btn-success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.consent-banner-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.consent-banner-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 15px;
}

.consent-banner-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .consent-banner-content {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .consent-banner-header h3 {
        font-size: 1.2em;
    }
    
    .consent-banner-footer {
        flex-direction: column;
    }
    
    .consent-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .consent-options {
        gap: 12px;
    }
    
    .consent-option {
        padding: 10px;
    }
    
    .consent-banner-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .consent-banner-content {
        padding: 15px;
        margin: 0 10px;
    }
    
    .consent-banner-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .consent-close {
        align-self: flex-end;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#custom-consent-banner.show {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure banner is always on top */
#custom-consent-banner {
    z-index: 2147483647 !important; /* Maximum z-index */
}

/* Hide any conflicting Ezoic banners */
[id*="ezoic"], [class*="ezoic"], [id*="cmp"], [class*="cmp"] {
    display: none !important;
}
