/* Google Merchant Feed Validator workspace: put the upload control in the first screen. */

/* Access bar: the page states the free limits itself, so only show the bar when it says something new
   (limit reached, file too large, plan or credits). */
body.wt-tool-page main > aside.wt-access[data-state="signed-out"],
body.wt-tool-page main > aside.wt-access[data-state="free-ok"] { display: none; }
main > aside.wt-access { margin-bottom: 14px; }

/* Order: hero, status notice, stepper, active panel, then the guest fine print, then history. */
body.wt-tool-page #toolState:not([hidden]) { display: flex !important; flex-direction: column; }
#toolState > * { order: 5; min-width: 0; }
#toolState > .feed-hero { order: 1; }
#toolState > #notice { order: 2; }
#toolState > .steps { order: 3; }
#toolState > .workspace { order: 4; }
#toolState > .guest-note { order: 5; }
#toolState > .history { order: 6; }

/* Guest note becomes fine print under the upload panel instead of a second banner. */
#toolState > .guest-note {
  margin: 10px 2px 18px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #4d5d75;
  font-size: .82rem;
  line-height: 1.5;
}
#toolState > .guest-note a { color: #0b4fd6; }

/* Compact hero: one headline, one lead line, one limits line. */
body.wt-tool-page main { padding-top: 22px; }
#toolState > .feed-hero { display: block; margin-bottom: 14px; }
#toolState > .feed-hero .eyebrow { display: none; }
#toolState > .feed-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
#toolState > .feed-hero p.ws-gmf-lead { margin: 0 0 8px; max-width: 760px; font-size: 1rem; line-height: 1.5; }
#toolState > .feed-hero .hero-facts { display: none; }

#toolState > .feed-hero p.ws-gmf-limits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 20px;
  max-width: none;
  margin: 0;
  color: #3b4d68;
  font-size: .86rem;
  line-height: 1.45;
}
#toolState > .feed-hero .ws-gmf-limits span { display: inline-flex; align-items: center; }
.ws-gmf-limits b { margin-right: 4px; color: #10213d; }
.ws-gmf-limits a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #0b4fd6;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ws-gmf-limits a:focus-visible,
#toolState > .guest-note a:focus-visible { outline: 3px solid #1769ff; outline-offset: 2px; border-radius: 3px; }

/* Scope note: keep the boundary, but as one quiet line. */
#toolState > .feed-hero .scope-note {
  display: block;
  max-width: none;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #4d5d75;
  font-size: .8rem;
}
#toolState > .feed-hero .scope-note b { font-weight: 700; color: #3b4d68; }
#toolState > .feed-hero .scope-note b::after { content: ". "; }
#toolState > .feed-hero .scope-note span { color: #4d5d75; }

/* Stepper only once the visitor has moved past step 1. */
body.wt-tool-page #toolState > .steps:has(li.active[data-step="1"]) { display: none !important; }

/* Upload panel: no intro cards above the dropzone. */
#uploadPanel .wt-start-grid { display: none; }
#uploadPanel .panel-heading { margin-bottom: 14px; }
#uploadPanel .panel-heading .eyebrow { display: none; }
#uploadPanel .panel-heading h2 { margin: 0; font-size: 1.2rem; }
#uploadPanel .panel-heading p { font-size: .9rem; }
#uploadPanel .drop-zone { min-height: 170px; padding: 18px; }
#uploadPanel .upload-promises { margin: 12px 0; }

/* Review card: the cost line below the button repeats free-tier facts; the static label carries them. */
.cost-card #reviewCost,
.cost-card #balanceText { display: none; }

@media (max-width: 850px) {
  #uploadPanel .panel-heading > span { white-space: normal; }
}

@media (max-width: 480px) {
  body.wt-tool-page main { padding-top: 14px; }
  #toolState > .feed-hero p.ws-gmf-lead { font-size: .95rem; }
  #toolState > .feed-hero p.ws-gmf-limits { font-size: .84rem; }
  #toolState > .feed-hero .scope-note { font-size: .76rem; line-height: 1.4; }
  #uploadPanel .panel-heading { margin-bottom: 10px; }
  #uploadPanel .panel-heading p { display: none; }
  #uploadPanel .drop-zone { min-height: 140px; }
}
