/** Shopify CDN: Minification failed

Line 415:8 Expected identifier but found whitespace
Line 415:9 Unexpected "min("

**/
 :root{
      --wmr2-bg-a: rgba(190, 220, 255, .90);
      --wmr2-bg-b: rgba(255, 255, 255, .90);
      --wmr2-bg-c: rgba(255, 210, 210, .90);

      --wmr2-ink: #2a2a2a;
      --wmr2-muted: #6b6b6b;

      --wmr2-panel: #ffffff;
      --wmr2-border: #d7d7d7;
      --wmr2-border-2: #cfcfcf;

      --wmr2-blue: #02A7F0;
      --wmr2-blue-dark: #00A1E6;

      --wmr2-vanta: #000000;
      --wmr2-black: #121212;
      --wmr2-gray: #676767;
      --wmr2-gray-dark: #343434;
      --wmr2-white: #FFFFFF;

      --wmr2-maxw: 600px;
    }

    *{ box-sizing:border-box; }
    /* html,body{ height:100%; }
    body{
      margin: 0;
      padding: 24px 12px 64px;
      font-family: Arial, sans-serif;
      color: var(--wmr2-ink);
      background: linear-gradient(90deg, var(--wmr2-bg-a) 0%, var(--wmr2-bg-b) 45%, var(--wmr2-bg-c) 100%);
      background-repeat: no-repeat;
      background-attachment: fixed;
    } */

 /* OVERLAY AND SHELL */

/* MODAL CONTENT */
.wmr2-page{
  background: #f4f4f4;      /* very light gray */
  border: 1px solid #d0d0d0;
  border-radius: 16px;
  padding: 18px 16px 20px;
}

/* close button */
.wmr2-close{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(0,0,0,.05);
  color: #333;
  font-size: 22px;
  line-height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.wmr2-close:hover{ background: rgba(0,0,0,.2); }

    .wmr2-header{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 12px;
      margin-bottom: 10px;
      padding: 6px 2px 4px;
    }
    .wmr2-title{
      margin: 6px 0 0;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: .1px;
    }

    /* Image placeholder */
    .wmr2-mascot{
      width: 56px;
      height: 56px;
      /* border-radius: 999px; */
      border: 0px solid #00aaff;
      background: #fff;
      display:grid;
      place-items:center;
      font-weight: 900;
      color: #6b7280;
      flex: 0 0 auto;
    }

    .wmr2-card{
      border: 1px solid var(--wmr2-border);
      border-radius: 2px;
      padding: 14px;
      margin: 12px 0 18px;
      background: #fff;
    }
    .wmr2-cardTitle{
      margin:0 0 6px;
      font-size: 16px;
      font-weight: 900;
    }
    .wmr2-subtext{
      margin: 0 0 10px;
      font-size: 11px;
      color: var(--wmr2-muted);
    }

    .wmr2-field{ margin: 6px 0; }

    .wmr2-control{
      width: 78%;
      min-width: 150px;
      max-width: 340px;
      height: 28px;
      border: 1px solid var(--wmr2-border-2);
      border-radius: 2px;
      background: #fff;
      font-size: 12px;
      padding: 2px 8px;
      color: #121212;
      outline: none;
    }
    .wmr2-control:focus{
      border-color: #98bfe2;
      box-shadow: 0 0 0 2px rgba(10,132,214,.12);
    }

    .wmr2-textarea{
      width: 92%;
      min-height: 92px;
      resize: vertical;
      padding: 6px 8px;
      font-size: 12px;
      line-height: 1.3;
      border: 1px solid var(--wmr2-border-2);
      border-radius: 2px;
      outline:none;
    }
    .wmr2-textarea:focus{
      border-color: #98bfe2;
      box-shadow: 0 0 0 2px rgba(10,132,214,.12);
    }

    .wmr2-primaryBtn{
      display:inline-block;
      margin: 10px;
      height: 32px;
      padding: 10px 10px 10px 10px;
      border-radius: 3px;
      border: 1px solid #000000;
      /* background: var(--wmr2-black); */
      background: #43d0ca;
      color: #fff;
      font-weight: 700;
      font-size: 11px;
      letter-spacing: .4px;
      cursor:pointer;
    }
    .wmr2-primaryBtn:hover { background: #3dbdb8; }

    .wmr2-chatFrame{
      width: 92%;
      border: 1px solid var(--wmr2-border-2);
      border-radius: 4px;
      padding: 10px;
      background: #fff;
    }

    /* REQUIRED IDs for qr-landing.js */
    #chat{
      width: 100%;
      border: 1px solid #cfcfcf;
      border-radius: 4px;
      padding: 10px 12px;
      font-size: 12px;
      background: #fff;
      min-height: 90px;
      white-space: pre-wrap;
    }
    #status{
      margin-top: 10px;
      display:none;
      font-size: 12px;
      font-weight: 800;
    }
    #status.status.error{ color:#b00020; }

    .wmr2-chatInputRow{
      display:flex;
      gap: 10px;
      margin-top: 10px;
      align-items:center;
    }
    #chatInput{
      flex: 1 1 auto;
      height: 28px;
      border: 1px solid var(--wmr2-border-2);
      border-radius: 3px;
      padding: 2px 8px;
      font-size: 12px;
      outline:none;
    }
    #sendBtn{
      flex: 0 0 auto;
      height: 28px;
      padding: 0 14px;
      border: 1px solid #bdbdbd;
      border-radius: 999px;
      background: #f2f2f2;
      font-size: 11px;
      cursor:pointer;
      font-weight: 800;
    }
    #sendBtn:hover{ background:#e9e9e9; }

    .wmr2-actionsRow{
      display:flex;
      gap: 10px;
      margin-top: 10px;
      align-items:center;
    }
    #approveBtn,
    #draftBtn{
      height: 30px;
      padding: 0 18px;
      border-radius: 3px;
      border: 1px solid #000000;
      background: var(--wmr2-white);
      color: #fff;
      font-weight: 900;
      font-size: 11px;
      cursor:pointer;
    }
    #approveBtn:hover,
    #draftBtn:hover{ background: #e2e2e2; }

    .wmr2-previewHeader{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      margin-bottom: 8px;
    }
    .wmr2-previewTitle{
      margin:0;
      font-size: 18px;
      font-weight: 900;
    }
    .wmr2-previewTools{
      display:flex;
      gap: 8px;
      align-items:center;
    }

    /* REQUIRED ID */
    #approvedChip{
      display:none;
      height: 22px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid #cfcfcf;
      background: #f2f2f2;
      font-size: 10px;
      font-weight: 900;
      align-items:center;
      justify-content:center;
      white-space: nowrap;
    }

    .wmr2-pillBtn{
      height: 22px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid #cfcfcf;
      background: #f2f2f2;
      font-size: 10px;
      font-weight: 900;
      cursor:pointer;
    }
    .wmr2-pillBtn:hover{ background:#e9e9e9; }

    /* REQUIRED ID */
    #preview{
      width: 100%;
      border: 1px solid var(--wmr2-border-2);
      border-radius: 2px;
      padding: 12px 10px;
      min-height: 270px;
      font-size: 12px;
      line-height: 1.35;
      background:#fff;
      overflow:auto;
      white-space:pre-wrap;
    }

    .wmr2-bottomRow{
      display:flex;
      gap: 10px;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .wmr2-exportBtn,
    .wmr2-emailBtn{
      height: 32px;
      padding: 0 14px;
      border-radius: 3px;
      border: 1px solid #0a6fb4;
      background: var(--wmr2-blue);
      color:#fff;
      font-weight: 900;
      font-size: 11px;
      cursor:pointer;
    }
    .wmr2-exportBtn:hover,
    .wmr2-emailBtn:hover{ background: var(--wmr2-blue-dark); }

    @media (max-width: 360px){
      :root{ --wmr2-maxw: 360px; }
      .wmr2-control{ width: 92%; min-width: 0; }
      .wmr2-textarea{ width: 100%; }
      .wmr2-chatFrame{ width: 100%; }
    }

/* ===== wmr2: loading spinner on status ===== */

    .status.sf-loading::before{
  content:"";
  display:inline-block;
  width:12px;
  height:12px;
  margin-right:8px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:sfspin .8s linear infinite;
  vertical-align:-2px;
}

@keyframes sfspin{
  to{ transform:rotate(360deg); }
}

/* Optional: slightly soften info vs error */
.status{
  line-height:1.25;
}

.status.error{
}

/* FULLSCREEN OVERLAY LAYER */
/* Displays over browser window, under overlay */
.wmr2-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000; /* High enough to beat everything */
  display: none; /* Hidden by default */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  background: linear-gradient(
    90deg,
    rgba(190,220,255,.95) 0%,
    rgba(255,255,255,.95) 45%,
    rgba(255,210,210,.95) 100%
  );
}

/* Opening logic */
.wmr2-overlay.is-open {
  display: flex !important; /* Force flex display when open */
}

/* BACKDROP */
.wmr2-overlay .sf-overlay__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 250, 234, 0);
}

/* THE MODAL WINDOW */
.wmr2-shell {
  position: relative;
  width: 90vw;            /* 90% of screen on mobile */
  max-width: 580px;       /* Professional width on desktop */
  height: auto;
  max-height: 85vh;       /* Stay within the screen height */
  margin: 20px auto;      /* Center it */
  background: #f4f5f7;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow-y: auto;       /* Internal scroll if content is long */
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

/* Ensure the overlay background centers the shell */
.wmr2-overlay.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

  /* sizing (merged) */
  width: min(60vw, 760px);
  height: min(75vh, 760px);
  max-height: calc(100vh - 24px);
  min-width: 360px;
  min-height: 520px;

  /* layout / behavior */
  overflow: auto;
  margin: 12px auto;

  /* visuals (merged) */
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* Overlay Window ?? */
.wmr2-page{
  /* background: linear-gradient(
    90deg,
    rgba(190,220,255,.50) 0%,
    rgba(255,255,255,.50) 45%,
    rgba(255,210,210,.50) 100%
  ); */
  background: #f4f5f7; 
  padding: 18px 14px 16px;
}

/* Fix for the AI's "Text-Based" Tables */
.wmr2-rendered-report {
  font-size: 15px; /* Base body text size */
  line-height: 1.6;
}

/* If the AI uses pipes or dashes to simulate a table, 
   this keeps them from looking messy */
.wmr2-rendered-report br + br {
  margin-bottom: 12px;
  display: block;
  content: "";
}

/* Ensure the Action Blueprint list looks clean */
.wmr2-rendered-report strong {
  display: inline-block;
  margin-top: 4px;
}

/* --- 1. THE STICKY BAR (Macro) --- */
.sticky-progress-container {
  display: none; /* Toggled by #typing ID in JS */
  position: sticky;
  top: 0;
  width: 100%;
  height: 4px;
  background: #eee;
  z-index: 9999;
  overflow: hidden;
}

.progress-fill {
  width: 40%;
  height: 100%;
  background:rgb(27, 150, 144); /* Your teal brand color */
  animation: barSlide 1.2s infinite ease-in-out;
}

/* --- 2. THE TEXT INDICATOR (Micro) --- */
.typing-text-indicator {
  display: none; /* Hidden by default */
  font-size: 12px;
  font-weight: 800;
  color: #6b6b6b;
  margin-top: 10px;
  font-style: italic;
  animation: textPulse 1.5s infinite ease-in-out;
}

/* --- 3. THE SMART TRIGGER --- */
/* This CSS "listens" for when the sticky bar #typing is turned to block 
   and automatically shows the text dots inside the chat box. */
#typing[style*="block"] ~ .wmr2-page .typing-text-indicator,
#typing[style*="block"] ~ .fmv-page .typing-text-indicator {
  display: block !important;
}

/* --- ANIMATIONS --- */
@keyframes barSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes textPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
