/* MFIF (Morgan I.F) Cookie Banner + Modal  */
  :root{
    /* Morgan I.F palette (dark header + gold accents + light content) */
    --mfif-surface: rgba(255,255,255,.96);
    --mfif-panel: rgba(255,255,255,.98);
    --mfif-border: rgba(20,20,20,.12);

    --mfif-text: rgba(20,20,20,.92);
    --mfif-muted: rgba(20,20,20,.68);

    --mfif-gold: #C9A24B;
    --mfif-gold2:#E0C37A;
    --mfif-dark: #1F1F1F;

    --mfif-shadow: 0 18px 50px rgba(0,0,0,.18);
    --mfif-radius: 14px;
  }

  /* ===== Banner ===== */
  .mfif-cookie-banner{
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999999;

    background: var(--mfif-surface);
    color: var(--mfif-text);
    border: 1px solid var(--mfif-border);
    border-radius: var(--mfif-radius);
    box-shadow: var(--mfif-shadow);

    padding: 18px 18px;
    overflow: hidden;
  }

  /* top accent line */
  .mfif-cookie-banner::before{
    content:"";
    position:absolute;
    left:0; right:0; top:0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(201,162,75,.95), rgba(224,195,122,.75), transparent);
    opacity: .98;
    pointer-events:none;
  }

  .mfif-cookie-inner{
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .mfif-cookie-title{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 6px;
    color: rgba(20,20,20,.94);
  }

  .mfif-cookie-text{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mfif-muted);
  }

  .mfif-cookie-link{
    color: rgba(201,162,75,.95);
    text-decoration: none;
    font-weight: 700;
    margin-left: 8px;
    border-bottom: 1px solid rgba(201,162,75,.35);
  }
  .mfif-cookie-link:hover{
    border-bottom-color: rgba(201,162,75,.75);
  }

  .mfif-cookie-actions{
    display: inline-flex;
    gap: 12px;
    flex: 0 0 auto;
    align-items: center;
  }

  /* ===== Buttons (Morgan I.F style) ===== */
  .mfif-btn{
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 13.5px;

    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mfif-text);

    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
  }

  /* Customise (gold outline) */
  .mfif-btn-outline{
    border-color: rgba(201,162,75,.55);
    background: rgba(201,162,75,.08);
    color: rgba(120,90,30,.95);
  }
  .mfif-btn-outline:hover{
    background: rgba(201,162,75,.12);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    transform: translateY(-1px);
  }

  /* Reject (neutral outline) */
  .mfif-btn-ghost{
    border-color: rgba(20,20,20,.22);
    background: rgba(20,20,20,.03);
    color: rgba(20,20,20,.88);
  }
  .mfif-btn-ghost:hover{
    border-color: rgba(20,20,20,.30);
    background: rgba(20,20,20,.05);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    transform: translateY(-1px);
  }

  /* Accept (primary gold) */
  .mfif-btn-solid{
    border-color: rgba(201,162,75,.80);
    background: linear-gradient(135deg, var(--mfif-gold2) 0%, var(--mfif-gold) 55%, #B88E38 100%);
    color: rgba(20,20,20,.92);
    box-shadow: 0 14px 26px rgba(0,0,0,.16);
  }
  .mfif-btn-solid:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0,0,0,.20);
    filter: saturate(1.02);
  }
  .mfif-btn:active{ transform: translateY(0); box-shadow: none; }

  .mfif-btn:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,162,75,.22), 0 14px 26px rgba(0,0,0,.16);
  }

  /* ===== Responsive ===== */
  @media (max-width: 992px){
    .mfif-cookie-banner{
      left: 12px; right: 12px; bottom: 12px;
      padding: 16px 14px;
    }
    .mfif-cookie-inner{
      flex-direction: column;
      align-items: stretch;
    }
    .mfif-cookie-actions{
      width: 100%;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
  }

  @media (max-width: 520px){
    .mfif-cookie-title{ font-size: 16.5px; }
    .mfif-cookie-text{ font-size: 13px; }
    .mfif-cookie-actions{
      justify-content: space-between;
      gap: 10px;
    }
    .mfif-btn{
      height: 40px;
      padding: 0 14px;
      border-radius: 12px;
      font-size: 13px;
    }
  }

  /* ===== Modal (Customise) ===== */
  .mfif-cookie-modal[hidden]{ display:none; }
  .mfif-cookie-modal{
    position: fixed;
    inset: 0;
    z-index: 10000000;
  }
  .mfif-cookie-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
  }
  .mfif-cookie-modal-card{
    position: relative;
    width: min(720px, calc(100% - 24px));
    margin: 8vh auto 0;

    background: var(--mfif-panel);
    border: 1px solid rgba(20,20,20,.14);
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    color: var(--mfif-text);
  }
  .mfif-cookie-modal-card::before{
    content:"";
    position:absolute;
    left:0; right:0; top:0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(201,162,75,.95), rgba(224,195,122,.75), transparent);
    opacity: .98;
    pointer-events:none;
  }

  .mfif-cookie-modal-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(20,20,20,.10);
  }
  .mfif-cookie-modal-title{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: .15px;
    font-size: 15.5px;
    color: rgba(20,20,20,.92);
  }
  .mfif-cookie-x{
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: rgba(20,20,20,.55);
  }
  .mfif-cookie-x:hover{ color: rgba(20,20,20,.82); }

  .mfif-cookie-modal-body{ padding: 14px 16px; }
  .mfif-cookie-row{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(20,20,20,.08);
  }
  .mfif-cookie-row:last-child{ border-bottom: 0; }
  .mfif-cookie-row-title{ font-weight: 900; color: rgba(20,20,20,.92); }
  .mfif-cookie-row-desc{ color: rgba(20,20,20,.66); font-size: 13px; margin-top: 4px; }

  .mfif-cookie-modal-foot{
    display:flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(20,20,20,.10);
  }

  /* Switch */
  .mfif-switch{ position: relative; display:inline-block; width: 52px; height: 30px; }
  .mfif-switch input{ opacity:0; width:0; height:0; }
  .mfif-slider{
    position:absolute; inset:0;
    background: rgba(20,20,20,.08);
    border: 1px solid rgba(20,20,20,.14);
    border-radius:999px;
    transition:.18s ease;
  }
  .mfif-slider:before{
    content:"";
    position:absolute; height:22px; width:22px;
    left:4px; top:3px;
    background: rgba(255,255,255,.98);
    border-radius:999px;
    transition:.18s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  .mfif-switch input:checked + .mfif-slider{
    background: rgba(201,162,75,.18);
    border-color: rgba(201,162,75,.55);
  }
  .mfif-switch input:checked + .mfif-slider:before{ transform: translateX(22px); }

  /* Necessary locked */
  .mfif-toggle{
    width: 52px; height: 30px;
    border-radius:999px;
    background: rgba(201,162,75,.18);
    border: 1px solid rgba(201,162,75,.45);
    position: relative;
    opacity: .98;
  }
  .mfif-toggle-dot{
    width: 22px; height: 22px;
    border-radius:999px;
    background: rgba(255,255,255,.98);
    position:absolute; right:4px; top:3px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }