/**
 * MSE Consent Banner Styles
 * GDPR cookie consent banner
 */

/* Banner Container */
.mse-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0 16px 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mse-consent-banner.mse-consent-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mse-consent-banner.mse-consent-hiding {
    opacity: 0;
    transform: translateY(20px);
}

/* Banner Card */
.mse-consent-card {
    max-width: 480px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.mse-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mse-consent-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.mse-consent-header .material-symbols-outlined {
    font-size: 20px;
    color: #d4af37;
}

.mse-consent-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: all 0.2s;
}

.mse-consent-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Content */
.mse-consent-body {
    padding: 16px 20px;
}

.mse-consent-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
}

.mse-consent-text a {
    color: #d4af37;
    text-decoration: none;
}

.mse-consent-text a:hover {
    text-decoration: underline;
}

/* Buttons */
.mse-consent-actions {
    display: flex;
    gap: 10px;
}

.mse-consent-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mse-consent-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8963a 100%);
    color: #1a1a2e;
}

.mse-consent-btn-primary:hover {
    background: linear-gradient(135deg, #e5c04a 0%, #d4af37 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.mse-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mse-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mse-consent-btn-link {
    background: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    flex: 0;
}

.mse-consent-btn-link:hover {
    color: #fff;
    background: none;
}

/* Settings Panel */
.mse-consent-settings {
    display: none;
}

.mse-consent-settings-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mse-consent-settings-item:last-child {
    border-bottom: none;
}

.mse-consent-settings-info {
    flex: 1;
    padding-right: 16px;
}

.mse-consent-settings-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.mse-consent-settings-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.mse-consent-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mse-consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mse-consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.mse-consent-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.mse-consent-toggle input:checked + .mse-consent-toggle-slider {
    background-color: #d4af37;
}

.mse-consent-toggle input:checked + .mse-consent-toggle-slider:before {
    transform: translateX(20px);
}

.mse-consent-toggle input:disabled + .mse-consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Required Badge */
.mse-consent-required {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 8px;
}

/* Back Button */
.mse-consent-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
}

.mse-consent-back:hover {
    color: #fff;
}

.mse-consent-back .material-symbols-outlined {
    font-size: 18px;
}

/* Privacy Notice */
.mse-consent-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    margin-bottom: 16px;
}

.mse-consent-notice .material-symbols-outlined {
    font-size: 18px;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 1px;
}

.mse-consent-notice p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 520px) {
    .mse-consent-banner {
        padding: 0 12px 12px;
    }
    
    .mse-consent-card {
        border-radius: 12px;
    }
    
    .mse-consent-actions {
        flex-direction: column;
    }
    
    .mse-consent-btn-link {
        order: 3;
    }
}

