/* WonderFil menu helpers. Neutral: inherits the theme's font and sizes. */
.wtq-menu-cta > a {
  background: var(--wtqm-accent, #FF6B00);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px !important;
  font-weight: 800;
  text-decoration: none;
}
.wtq-menu-cta > a:hover,
.wtq-menu-cta > a:focus-visible { filter: brightness(.93); }

.wtqm-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFF1E6;
  color: #B84A00;
  font-size: .75em;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: middle;
}


/* Cards replace their menu link (the link stays as a fallback without JavaScript). */
.wtqm-has-card > a { display: none !important; }
.wtqm-card {
  box-sizing: border-box;
  max-width: 340px;
  margin: 4px 0 8px;
  padding: 18px;
  border-radius: 18px;
  background: #FFF1E6;
  color: #1E1B18;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}
.wtqm-card * { box-sizing: border-box; }
.wtqm-card p { margin: 0 0 8px; }
.wtqm-eyebrow { margin: 0 0 6px !important; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #B84A00; }
.wtqm-title { font-weight: 900; font-size: 18px; line-height: 1.25; }
.wtqm-card hr.wtqm-sep { height: 1px; margin: 10px 0 4px; border: 0; background: #F3D3BB; }
.wtqm-text, .wtqm-note { color: #4A443E; }
.wtqm-note { font-size: 12px; margin-top: 6px !important; }
.wtqm-strong { font-weight: 800; }
.wtqm-card .wtqm-link {
  display: block;
  margin: 6px 0 0;
  padding: 0 !important;
  color: #B84A00 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none !important;
}
.wtqm-card .wtqm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px;
  height: auto !important;
  line-height: 1.2 !important;
  width: auto !important;
  margin: 4px 0 4px;
  padding: 0 16px !important;
  border: 0;
  border-radius: 999px;
  background: #1E1B18 !important;
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.wtqm-card .wtqm-btn:disabled { opacity: .45; cursor: default; }
.wtqm-field { margin: 0 0 8px; }
.wtqm-field label { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 700; color: #4A443E; }
.wtqm-card .wtqm-select {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #DDD5CC;
  border-radius: 10px;
  background: #fff;
  color: #1E1B18;
  font: inherit;
  font-size: 16px; /* no zoom on iPhone */
}
.wtqm-result:empty { display: none; }
.wtqm-result { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: #fff; }
.wtqm-needles { margin: 0 0 4px; padding: 0; list-style: none; }
.wtqm-needles li { margin: 0 0 3px; padding: 0; }
.wtqm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.wtqm-card .wtqm-chip {
  display: inline-block;
  padding: 6px 12px !important;
  border: 1px solid #E8D9CB;
  border-radius: 999px;
  background: #fff !important;
  color: #1E1B18 !important;
  font-weight: 700;
  text-decoration: none;
}
.wtqm-card a:focus-visible, .wtqm-card button:focus-visible, .wtqm-card select:focus-visible {
  outline: 2px solid #1E1B18;
  outline-offset: 2px;
}
/* Some themes decorate every button inside a menu (dropdown arrows): not ours. */
.wtqm-card button::before,
.wtqm-card button::after { content: none !important; display: none !important; }
.wtqm-card button { position: static !important; width: auto !important; height: auto; transform: none !important; }

/* ---- Wide panels (wtq-mega) ---- */
.wtqm-panel { box-sizing: border-box; width: 100%; padding: 14px 18px 10px; background: #fff; border-radius: 0 0 12px 12px; text-align: left; font-size: 15px; line-height: 1.45; color: #1E1B18; white-space: normal; }
.wtqm-prow { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: flex-start; }
.wtqm-pcol { flex: 1 1 140px; min-width: 0; }
.wtqm-panel a { width: auto !important; max-width: 100%; }
.wtqm-paz { flex: 2.6 1 250px; }
.wtqm-pcardcol { flex: 1 0 260px; max-width: 320px; }
.wtqm-pcardcol .wtqm-card { max-width: none; margin: 0; }
.wtqm-panel .wtqm-ph { margin: 0 0 12px !important; padding: 0 !important; font-size: 12px !important; font-weight: 900 !important; letter-spacing: .1em; text-transform: uppercase; color: #B84A00 !important; line-height: 1.3; }
.wtqm-panel .wtqm-ph a { display: inline !important; padding: 0 !important; color: inherit !important; font: inherit !important; letter-spacing: inherit; text-decoration: none !important; }
.wtqm-panel ul.wtqm-plist { position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important; transform: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; background: none !important; box-shadow: none !important; border: 0 !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; grid-template-columns: none !important; }
.wtqm-panel ul.wtqm-plist > li { display: block !important; position: static !important; float: none !important; width: auto !important; margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.wtqm-panel ul.wtqm-plist > li::before, .wtqm-panel ul.wtqm-plist > li::after { content: none !important; }
.wtqm-panel ul.wtqm-pnest { margin: 6px 0 4px 12px !important; }
.wtqm-panel a.wtqm-plink, .wtqm-drawer a.wtqm-plink { display: inline-flex !important; align-items: center; gap: 10px; padding: 0 !important; margin: 0 !important; color: #1E1B18 !important; background: none !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.35 !important; text-decoration: none !important; white-space: normal !important; }
.wtqm-ptxt { display: inline-flex; flex-direction: column; min-width: 0; }
.wtqm-panel a.wtqm-plink { max-width: 100%; }
.wtqm-panel .wtqm-pproj { display: none; }
.wtqm-ptxt .wtqm-pname { display: inline; }
.wtqm-pwt { display: inline !important; font-size: .86em; font-weight: 600; color: #5C564F; }
.wtqm-ptxt:has(.wtqm-pwt) { display: inline; }
.wtqm-pdesc { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 600; color: #5C564F; }
.wtqm-sw { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; }
.wtqm-sw-matte { background: #C9B8A6; }
.wtqm-sw-sheen { background: linear-gradient(135deg, #7FB2E5, #fff 55%, #3E7CC2); }
.wtqm-sw-metallic, .wtqm-sw-sparkle { background: linear-gradient(135deg, #B8862B, #F6E3A1 50%, #8C6418); }
.wtqm-sw-variegated { background: conic-gradient(#E85D75, #F3B13C, #58B368, #3E7CC2, #E85D75); }
.wtqm-sw-invisible, .wtqm-sw-blend { border: 2px dashed #A79D92; }
.wtqm-sw-glow, .wtqm-sw-reflective { background: #CFF27A; }
.wtqm-panel a.wtqm-plink:hover, .wtqm-panel a.wtqm-plink:focus-visible, .wtqm-drawer a.wtqm-plink:focus-visible { color: #B84A00 !important; text-decoration: underline !important; text-underline-offset: 2px; }
.wtqm-panel .wtqm-psub { display: block; margin: 8px 0 2px; font-size: 13px; font-weight: 800; color: #4A443E; }
.wtqm-panel ul.wtqm-azlist { columns: 3 150px; column-gap: 24px; }
.wtqm-panel ul.wtqm-azlist > li { break-inside: avoid; margin: 0 0 6px !important; }
.wtqm-panel ul.wtqm-azlist a.wtqm-plink { font-size: 13.5px !important; }
.wtqm-pfoot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #EEE8E1; }
.wtqm-pfoot a.wtqm-plink { font-weight: 700 !important; }

/* ---- Full-screen phone menu ---- */
html.wtqm-drawer-open, html.wtqm-drawer-open body { overflow: hidden !important; }
.wtqm-drawer { position: fixed; inset: 0; z-index: 100001; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; color: #1E1B18; font-size: 16px; line-height: 1.4; text-align: left; }
.wtqm-drawer[hidden] { display: none !important; }
.wtqm-drawer * { box-sizing: border-box; }
.wtqm-screen { display: flex; flex-direction: column; min-height: 100%; }
.wtqm-dtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.wtqm-dlogo { display: inline-flex; align-items: center; min-height: 44px; color: #1E1B18 !important; font-size: 22px; font-weight: 900; text-decoration: none !important; }
.wtqm-dlogo img { display: block; max-height: 34px; width: auto; max-width: 200px; }
.wtqm-drawer button.wtqm-dclose, .wtqm-drawer button.wtqm-dback { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px !important; height: 44px !important; padding: 0 !important; border: 1px solid #EEE8E1 !important; border-radius: 50% !important; background: #fff !important; color: #1E1B18 !important; cursor: pointer; }
.wtqm-drawer button.wtqm-dback { border-color: transparent !important; }
.wtqm-dtop-sub { justify-content: flex-start; }
.wtqm-dtop-sub .wtqm-dclose { margin-left: auto; }
.wtqm-dtitle { margin: 0 !important; font-size: 21px; font-weight: 900; }
.wtqm-dsearch { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 16px; padding: 0 16px; border-radius: 999px; background: #F6F3EF; color: #5C564F; }
.wtqm-dsearch input[type=search] { flex: 1; min-width: 0; height: 44px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #1E1B18; font: inherit; font-size: 16px !important; outline: none; }
.wtqm-dsearch:focus-within { box-shadow: 0 0 0 2px #1E1B18; }
.wtqm-dfind { margin: 16px 16px 6px; padding: 16px; border-radius: 20px; background: var(--wtqm-accent, #FF6B00); }
.wtqm-dfind-t { margin: 0 0 10px !important; font-size: 19px; font-weight: 900; color: #fff; }
.wtqm-dfind-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wtqm-drawer a.wtqm-dfind-a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #1E1B18 !important; font-size: 14px; font-weight: 800; line-height: 1.25; text-decoration: none !important; }
.wtqm-dnav { display: flex; flex-direction: column; padding: 4px 16px; }
.wtqm-drawer .wtqm-drow { display: flex !important; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 12px 2px !important; border: 0 !important; border-bottom: 1px solid #EEE8E1 !important; border-radius: 0 !important; background: none !important; color: #1E1B18 !important; font: inherit; font-size: 17px !important; font-weight: 800 !important; text-align: left; text-decoration: none !important; cursor: pointer; }
.wtqm-drow-camp > span:first-child { color: #B84A00; }
.wtqm-chev { color: #B84A00; font-size: 22px; line-height: 1; }
.wtqm-dbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 14px 16px 22px; background: #F6F3EF; }
.wtqm-drawer a.wtqm-dbar-a { display: inline-flex; align-items: center; min-height: 44px; color: #1E1B18 !important; font-size: 14px; font-weight: 800; text-decoration: none !important; }
.wtqm-dbody { padding: 4px 16px 28px; }
.wtqm-tabs { display: flex; gap: 4px; margin: 0 0 8px; padding: 4px; overflow-x: auto; border-radius: 999px; background: #F6F3EF; scrollbar-width: none; }
.wtqm-tabs::-webkit-scrollbar { display: none; }
.wtqm-drawer button.wtqm-tab { flex: 1 0 auto; min-height: 40px; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: #3B3631 !important; font: inherit; font-size: 14px !important; font-weight: 800 !important; white-space: nowrap; cursor: pointer; }
.wtqm-drawer button.wtqm-tab[aria-selected="true"] { background: #1E1B18 !important; color: #fff !important; }
.wtqm-drawer button:focus-visible, .wtqm-drawer a:focus-visible, .wtqm-drawer select:focus-visible { outline: 2px solid #1E1B18; outline-offset: 2px; }
.wtqm-dh { margin: 18px 0 6px !important; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #B84A00; }
.wtqm-drawer ul.wtqm-dlist { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.wtqm-drawer ul.wtqm-dlist > li { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #EEE8E1; list-style: none !important; }
.wtqm-drawer ul.wtqm-dlist > li > a.wtqm-plink { display: flex !important; width: 100%; min-height: 48px; padding: 10px 2px !important; font-size: 16px !important; font-weight: 800 !important; }
.wtqm-drawer ul.wtqm-dlist > li > a.wtqm-plink::after { content: '›'; margin-left: auto; padding-left: 10px; color: #B84A00; font-size: 20px; }
.wtqm-drawer .wtqm-pdesc { font-size: 13px; }
.wtqm-drawer ul.wtqm-pnest { margin: 0 0 8px 14px !important; padding: 0 !important; list-style: none !important; }
.wtqm-drawer ul.wtqm-pnest a.wtqm-plink { min-height: 40px; font-weight: 600 !important; }
.wtqm-drawer .wtqm-psub { display: block; padding: 12px 0 4px; font-size: 13px; font-weight: 800; color: #4A443E; }
.wtqm-drawer .wtqm-card { max-width: none; margin: 18px 0 0; }
.wtqm-dlinks { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.wtqm-dlinks a.wtqm-plink { min-height: 40px; }
.wtqm-drawer a.wtqm-dall { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: #B84A00 !important; font-weight: 800; text-decoration: underline !important; text-underline-offset: 2px; }

/* Tiles with a picture (bobbin sizes) */
.wtqm-panel ul.wtqm-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wtqm-panel ul.wtqm-tiles > li { margin: 0 !important; }
.wtqm-panel ul.wtqm-tiles a.wtqm-plink { display: flex !important; gap: 12px; width: 100%; padding: 12px !important; border: 1px solid #EEE8E1; border-radius: 14px; }
.wtqm-panel ul.wtqm-tiles a.wtqm-plink:hover { border-color: #F3D3BB; background: #FFF8F2 !important; text-decoration: none !important; }
.wtqm-ring { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 9px solid #6FA8A0; box-sizing: border-box; }
.wtqm-tiles > li:nth-child(2) .wtqm-ring { border-color: #E8A33C; }
.wtqm-tiles > li:nth-child(3) .wtqm-ring { border-color: #8E7CC3; }
.wtqm-tiles > li:nth-child(4) .wtqm-ring { border-color: #D9677C; }
.wtqm-tiles > li:nth-child(5) .wtqm-ring { border-color: #5C8DC9; }
img.wtqm-timg { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.wtqm-drawer ul.wtqm-tiles > li > a.wtqm-plink { gap: 12px; }
/* "All packs", "All sewing notions"… */
.wtqm-panel a.wtqm-allbtn, .wtqm-drawer a.wtqm-allbtn { display: inline-flex !important; align-items: center; width: auto !important; white-space: nowrap !important; min-height: 38px; padding: 0 16px !important; border: 1.5px solid #1E1B18; border-radius: 999px; background: #fff !important; color: #1E1B18 !important; font-size: 14px !important; font-weight: 800 !important; text-decoration: none !important; }
.wtqm-panel a.wtqm-allbtn:hover, .wtqm-drawer a.wtqm-allbtn:hover { background: #1E1B18 !important; color: #fff !important; }
.wtqm-pfoot { align-items: center; }
.wtqm-dlinks { align-items: flex-start; }
/* One-column sections: a small dropdown under the item, like a normal menu */
li.wtqm-has-panel.wtqm-narrow { position: relative !important; }
/* :not(#wtqm-x) only raises priority above the theme's own mega menu rules. */
li.wtqm-has-panel.wtqm-narrow > ul:not(#wtqm-x) { left: 0 !important; right: auto !important; top: 100% !important; transform: none !important; width: auto !important; min-width: 280px !important; max-width: 380px !important; display: block !important; padding: 20px 24px !important; }
li.wtqm-has-panel.wtqm-narrow > ul:not(#wtqm-x) > li.wtqm-panel-li { min-width: 0 !important; width: 100% !important; transform: none !important; }
.wtqm-panel-narrow { padding: 0 !important; }
.wtqm-panel-narrow .wtqm-prow { display: block; }

/* Free bobbin offer (5.4.5): its styles are in bobpromo.css */
.wtqm-badge-bob { background: #E7F6EC; color: #145C30; }
.wtqm-panel > .wtqm-bob { margin: 0 0 18px; }
.wtqm-dbody > .wtqm-bob { margin: 0 0 16px; }
.wtqm-drow .wtqm-badge-bob { margin-left: auto; margin-right: 8px; }
.wtqm-callout { flex: 999 1 420px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0; padding: 14px 18px; border: 2px dashed #FFB27A; border-radius: 14px; background: #FFF8F1; }
.wtqm-callout-txt { flex: 1 1 240px; min-width: 0; }
.wtqm-callout p.wtqm-callout-t { margin: 0 !important; color: #B84A00; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wtqm-callout p.wtqm-callout-d { margin: 2px 0 0 !important; color: #3A332C; font-size: 15px; }
.wtqm-callout-links { display: flex; flex-wrap: wrap; gap: 8px; }
.wtqm-callout a.wtqm-callout-a { display: inline-block !important; padding: 8px 16px !important; border-radius: 999px !important; background: #fff !important; border: 2px solid var(--wtqm-accent, #FF6B00) !important; color: #1E1B18 !important; font-weight: 800 !important; font-size: 14px !important; text-decoration: none !important; white-space: nowrap; }
.wtqm-callout a.wtqm-callout-a:hover, .wtqm-callout a.wtqm-callout-a:focus-visible { background: var(--wtqm-accent, #FF6B00) !important; color: #fff !important; }
.wtqm-dbody > .wtqm-callout { margin: 16px 0; }
