/**
 * Privacy Consent - Frontend Styles
 * Minimalistic and modern design
 * 
 * @package MoreVision
 * @version 1.0.0
 */

/* ============================================
   Banner Styles
   ============================================ */

.mv-privacy-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 20px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
    font-family: "Assistant", sans-serif;
}

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

.mv-privacy-consent-banner .mv-consent-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.mv-privacy-consent-banner .mv-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ============================================
   Popup Styles
   ============================================ */

.mv-privacy-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.mv-privacy-consent-popup {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
    font-family: "Assistant", sans-serif;
}

.mv-privacy-consent-popup .mv-consent-close-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mv-privacy-consent-popup .mv-consent-close-icon:hover {
    opacity: 1;
}

.mv-privacy-consent-popup .mv-consent-content {
    text-align: center;
}

.mv-privacy-consent-popup .mv-consent-text {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
}

.mv-privacy-consent-popup .mv-consent-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   Common Elements
   ============================================ */

.mv-consent-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.mv-consent-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.mv-consent-btn:active {
    transform: scale(0.98);
}

.mv-consent-btn-accept {
    color: #fff;
}

.mv-consent-btn-close {
    color: #fff;
}

.mv-consent-link {
    text-decoration: underline;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.mv-consent-link:hover {
    opacity: 0.8;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   Form Integration Styles
   ============================================ */

.mv-privacy-consent-cf7,
.privacy-consent-field {
    margin: 15px 0 !important;
}

.mv-privacy-consent-cf7 label,
.privacy-consent-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.mv-privacy-consent-cf7 input[type="checkbox"],
.privacy-consent-field input[type="checkbox"] {
    margin-top: 0px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mv-privacy-consent-cf7 a,
.privacy-consent-field a {
    color: #a38744;
    text-decoration: underline;
}

.mv-privacy-consent-cf7 a:hover,
.privacy-consent-field a:hover {
    color: #8a7339;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .mv-privacy-consent-banner .mv-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .mv-privacy-consent-banner .mv-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .mv-consent-btn {
        width: 100%;
        text-align: center;
    }
    
    .mv-privacy-consent-popup {
        padding: 25px;
    }
    
    .mv-privacy-consent-popup .mv-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .mv-privacy-consent-popup .mv-consent-btn {
        width: 100%;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.mv-consent-btn:focus,
.mv-consent-link:focus,
.mv-consent-close-icon:focus {
    outline: 2px solid #a38744;
    outline-offset: 2px;
}

.mv-consent-btn:focus:not(:focus-visible),
.mv-consent-link:focus:not(:focus-visible),
.mv-consent-close-icon:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Hide class for animations
   ============================================ */

.mv-consent-hidden {
    animation: fadeOut 0.3s ease-out forwards;
}
