/* ============================================ */
/* COOKIE BANNER STYLES - COMPACT VERSION      */
/* Namespaced with mmc- to avoid conflicts     */
/* ============================================ */

/* Compact Cookie Banner - Side by side layout */
.mmc-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px 30px;
    z-index: 10000000000;
    animation: mmc-slideUp 0.4s ease-out;
    display: none;
  }
  
  @keyframes mmc-slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .mmc-cookie-banner-inner { display: flex; align-items: center; gap: 30px; }
  .mmc-cookie-banner-content { flex: 1; }
  .mmc-cookie-banner h2 { font-size: 18px !important; font-weight: 700; color: #333; margin: 0 0 8px 0; }
  .mmc-cookie-banner p { color: #666; font-size: 14px !important; line-height: 1.5; margin: 0; }
  .mmc-cookie-banner a { color: #3740ff; text-decoration: none; font-weight: 600; transition: color 0.2s; }
  .mmc-cookie-banner a:hover { color: #2830cc; text-decoration: underline; }
  .mmc-cookie-banner-buttons { display: flex; gap: 10px; flex-shrink: 0; }
  
  .mmc-cookie-btn { padding: 5px 24px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
  .mmc-cookie-btn-accept { background: #3740ff; color: white; }
  .mmc-cookie-btn-accept:hover { background: #2830cc; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(55, 64, 255, 0.3); }
  .mmc-cookie-btn-reject { background: #E0E0E0; color: #333; }
  .mmc-cookie-btn-reject:hover { background: #D0D0D0; }
  
  /* Preferences Modal */
  .mmc-cookie-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.6); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 10000000000; 
    padding: 20px; 
    animation: mmc-fadeIn 0.3s ease-out; 
  }
  .mmc-cookie-modal-overlay.show { display: flex; }
  
  @keyframes mmc-fadeIn { from { opacity: 0; } to { opacity: 1; } }
  
  .mmc-cookie-modal { 
    background: white; 
    border-radius: 12px; 
    max-width: 700px; 
    width: 100%; 
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
    animation: mmc-modalSlideIn 0.3s ease-out; 
  }
  
  @keyframes mmc-modalSlideIn { 
    from { opacity: 0; transform: scale(0.9) translateY(20px); } 
    to { opacity: 1; transform: scale(1) translateY(0); }        
  }
  
  .mmc-modal-header { 
    padding: 25px 30px; 
    border-bottom: 1px solid #e0e0e0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
  }
  
  .mmc-modal-header h2 { 
    font-size: 22px !important; 
    font-weight: 700; 
    color: #333; 
    margin: 0; 
  }
  
  .mmc-modal-close { 
    background: #f5f5f5; 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    font-size: 20px; 
    color: #666; 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
  }
  
  .mmc-modal-close:hover { 
    background: #e0e0e0; 
    color: #333; 
  }
  
  .mmc-modal-content { 
    padding: 30px; 
  }
  
  .mmc-privacy-intro { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.6; 
    margin-bottom: 25px; 
  }
  
  .mmc-privacy-intro strong { 
    display: block; 
    color: #333; 
    font-size: 16px; 
    margin-bottom: 10px; 
  }
  
  .mmc-privacy-intro a { 
    color: #3740ff; 
    text-decoration: none; 
    font-weight: 600; 
  }
  
  .mmc-privacy-intro a:hover { 
    text-decoration: underline; 
  }
  
  /* Cookie Category Accordion */
  .mmc-cookie-category { 
    background: #fff; 
    border-radius: 10px; 
    margin-bottom: 14px; 
    overflow: hidden; 
    border: 2px solid #e0e0e0; 
    transition: border-color 0.2s; 
  }
  
  .mmc-cookie-category.mmc-category-open { 
    border-color: #3740ff; 
  }
  
  .mmc-category-header { 
    padding: 18px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    transition: background 0.2s; 
    background: #f9f9f9;
  }
  
  .mmc-category-header:hover { 
    background: #f0f0f0; 
  }
  
  .mmc-category-title { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex: 1;
  }
  
  .mmc-category-title h3 { 
    font-size: 15px !important; 
    font-weight: 600; 
    color: #333; 
    margin: 0; 
  }
  
  /* Expand Icon with smooth rotation */
  .mmc-expand-icon { 
    font-size: 14px !important; 
    color: #999; 
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
  }
  
  .mmc-category-open .mmc-expand-icon { 
    transform: rotate(180deg); 
  }
  
  .mmc-category-controls { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0;
  }
  
  /* Toggle Switch */
  .mmc-toggle-switch { 
    position: relative; 
    width: 48px; 
    height: 26px; 
  }
  
  .mmc-toggle-switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
  }
  
  .mmc-toggle-slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: 0.3s; 
    border-radius: 26px; 
  }
  
  .mmc-toggle-slider:before { 
    position: absolute; 
    content: ""; 
    height: 18px; 
    width: 18px; 
    left: 4px; 
    bottom: 4px; 
    background-color: white; 
    transition: 0.3s; 
    border-radius: 50%; 
  }
  
  .mmc-toggle-switch input:checked + .mmc-toggle-slider { 
    background-color: #3740ff; 
  }
  
  .mmc-toggle-switch input:checked + .mmc-toggle-slider:before { 
    transform: translateX(22px); 
  }
  
  .mmc-toggle-switch input:disabled + .mmc-toggle-slider { 
    background-color: #b0b0b0; 
    cursor: not-allowed; 
  }
  
  .mmc-toggle-switch input:disabled + .mmc-toggle-slider:before { 
    background-color: #e0e0e0; 
  }
  
  /* Category Body - Hidden by default */
  .mmc-category-body { 
    display: none;
    background: #fff;
  }
  
  /* Show when category is open */
  .mmc-category-open .mmc-category-body { 
    display: block;
    animation: mmc-expandDown 0.3s ease-out;
  }
  
  @keyframes mmc-expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
  }
  
  .mmc-category-description { 
    padding: 18px 20px; 
    color: #666; 
    font-size: 13px !important; 
    line-height: 1.6; 
    border-top: 1px solid #e0e0e0;
  }
  
  .mmc-modal-footer { 
    padding: 18px 30px; 
    border-top: 1px solid #e0e0e0; 
    background: #fafafa; 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
  }
  
  .mmc-modal-footer .mmc-cookie-btn { 
    min-width: 130px; 
  }
  
  .mmc-cookie-btn-outline { 
    background: transparent; 
    color: #3740ff; 
    border: 2px solid #3740ff; 
  }
  
  .mmc-cookie-btn-outline:hover { 
    background: #f0f1ff; 
  }
  
  .mmc-more-info-box { 
    margin-top: 25px; 
    padding: 18px; 
    background: #f0f0f0; 
    border-radius: 8px; 
  }
  
  .mmc-more-info-box strong { 
    color: #333; 
    display: block; 
    margin-bottom: 8px; 
    font-size: 14px !important; 
  }
  
  .mmc-more-info-box p { 
    margin: 0; 
    color: #666; 
    font-size: 13px !important; 
  }
  
  .mmc-more-info-box a {
    color: #3740ff;
    text-decoration: none;
    font-weight: 600;
  }
  
  .mmc-more-info-box a:hover {
    text-decoration: underline;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .mmc-cookie-banner { 
        bottom: 0; 
        left: 0; 
        right: 0; 
        border-radius: 12px 12px 0 0; 
        padding: 20px; 
    }
    
    .mmc-cookie-banner-inner { 
        flex-direction: column; 
        gap: 20px; 
        align-items: stretch; 
    }
    
    .mmc-cookie-banner-buttons { 
        flex-direction: column; 
    }
    
    .mmc-cookie-btn { 
        width: 100%; 
    }
    
    .mmc-modal-footer { 
        flex-direction: column; 
    }
    
    .mmc-modal-footer .mmc-cookie-btn { 
        width: 100%; 
        min-width: 100%; 
    }
    
    .mmc-cookie-modal {
        margin: 10px;
        max-height: 95vh;
    }
  }
  
  @media (min-width: 769px) and (max-width: 1024px) {
    .mmc-cookie-banner-buttons { 
        flex-direction: column; 
    }
  }