/**
 * WP Master Visitor Intelligence - Public Tracking & Consent Styling
 */

#wpmvi-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#wpmvi-consent-banner.wpmvi-banner-hidden {
    display: none !important;
}

.wpmvi-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 16px;
}

.wpmvi-banner-text {
    flex: 1 1 500px;
}

.wpmvi-banner-text h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.wpmvi-banner-text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #94a3b8;
}

.wpmvi-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Common Buttons */
.wpmvi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    outline: none;
}

.wpmvi-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.wpmvi-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.wpmvi-btn-secondary {
    background: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.wpmvi-btn-secondary:hover {
    background: #475569;
}

.wpmvi-btn-outline {
    background: transparent;
    color: #cbd5e1;
    border-color: #475569;
}

.wpmvi-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Modal */
#wpmvi-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#wpmvi-preferences-modal.wpmvi-modal-hidden {
    display: none !important;
}

.wpmvi-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.wpmvi-modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.wpmvi-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

#wpmvi-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#wpmvi-modal-close:hover {
    color: #ffffff;
}

.wpmvi-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 65vh;
    overflow-y: auto;
}

.wpmvi-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1e293b;
}

.wpmvi-pref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wpmvi-pref-info strong {
    display: block;
    font-size: 14px;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.wpmvi-pref-info p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #94a3b8;
}

.wpmvi-pref-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
    cursor: pointer;
}

.wpmvi-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    background: #090d16;
    border-top: 1px solid #1e293b;
}

@media (max-width: 640px) {
    #wpmvi-consent-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    .wpmvi-banner-actions {
        width: 100%;
    }
    .wpmvi-btn {
        flex: 1 1 auto;
    }
}
