/*
 * Quick Launch Intake: the website product's page (the chooser and the page around it).
 * Everything here is scoped to the chooser (.qli-shop) or to the website product's page
 * (body.qli-website-product), so the rest of the shop keeps the theme's look. Works with block
 * themes (Twenty Twenty-Five and the WooCommerce product blocks) and classic themes.
 */

.qli-shop,
.qli-website-product {
  --qli-accent: #2f5d3a;
  --qli-accent-hover: #244a2e;
  --qli-accent-soft: #e7efe8;
  --qli-ink: #15181d;
  --qli-muted: #5c6370;
  --qli-line: #e3e6ea;
  --qli-panel: #f6f7f5;
  /* The page's bands: warm off-white, soft sage, light sand, deep green (they share the green's hue). */
  --qli-page: #faf8f4;
  --qli-sage: #eaf0e8;
  --qli-sage-2: #e3ebe1;
  --qli-sand: #f6f0e6;
  --qli-sand-2: #f1e9dc;
  --qli-deep: #1e3826;
  --qli-deep-2: #24452f;
  --qli-band-pad: clamp(40px, 6vw, 72px);
  --qli-radius: 16px;
  --qli-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --qli-shadow-lift: 0 12px 28px -8px rgba(16, 24, 40, .18), 0 4px 10px -4px rgba(16, 24, 40, .08);
}

/* ---------- The page around the chooser (website product only) ---------- */

/* Full width: no product picture beside the summary (it still shows in the shop and the basket). */
.qli-website-product div.product div.images,
.qli-website-product div.product .woocommerce-product-gallery { display: none !important; }
.qli-website-product div.product div.summary,
.qli-website-product div.product .entry-summary { width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.qli-website-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery),
.qli-website-product .wp-block-column:has(> .woocommerce-product-gallery) { display: none !important; }
.qli-website-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column { flex-basis: 100% !important; }

/* The page's background, and the full-width bands (they reach the window's edges behind the theme's column). */
body.qli-website-product { background-color: var(--qli-page); overflow-x: clip; }
.qli-shop,
.qli-shop-cards,
.qli-website-product .qli-included,
.qli-website-product .qli-faq { position: relative; isolation: isolate; }
.qli-shop::before,
.qli-shop-cards::before,
.qli-website-product .qli-faq::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  pointer-events: none;
}

/* Title, price, the short description. */
.qli-website-product div.product .product_title,
.qli-website-product .wp-block-post-title {
  margin-bottom: .35em;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  color: var(--qli-ink);
}
.qli-website-product div.product p.price,
.qli-website-product div.product span.price,
.qli-website-product .wp-block-woocommerce-product-price {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  margin: 0 0 1.1rem;
  padding: .4em 1em;
  border-radius: 999px;
  background: var(--qli-accent-soft);
  color: var(--qli-accent);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.qli-website-product .wp-block-woocommerce-product-price .wc-block-components-product-price,
.qli-website-product .wp-block-woocommerce-product-price .amount { color: inherit; font-weight: inherit; font-size: inherit; }
.qli-website-product div.product .woocommerce-product-details__short-description,
.qli-website-product .wp-block-post-excerpt {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--qli-muted);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
}
.qli-website-product .wp-block-post-excerpt__excerpt { margin: 0; }

/* Not needed for a website: "Category: Uncategorized", reviews, the quantity and the theme's own button. */
.qli-website-product div.product .product_meta,
.qli-website-product .wp-block-woocommerce-product-meta,
.qli-website-product .woocommerce-tabs .reviews_tab,
.qli-website-product .woocommerce-tabs #tab-reviews,
.qli-website-product .woocommerce-tabs .wc-tabs,
.qli-website-product form.cart .quantity,
.qli-website-product form.cart .single_add_to_cart_button { display: none !important; }
.qli-website-product form.cart { display: block !important; margin: 0; }
.qli-website-product .woocommerce-tabs .panel { margin: 0; padding: 0; border: 0; }

/* The description: "What you get" as ticked cards on the page's off-white, the questions on a deep green
   band with white text (the product's text from "ql sales-product" puts each in its own group:
   .qli-included and .qli-faq; older text without the groups still gets the cards and the list). */
.qli-website-product .woocommerce-Tabs-panel--description > h2:first-child { display: none; }
.qli-website-product .woocommerce-tabs,
.qli-website-product .wp-block-woocommerce-product-details { margin-top: 0; }
.qli-website-product .qli-included { padding: var(--qli-band-pad) 0; }
.qli-website-product .woocommerce-Tabs-panel--description h2 {
  margin: 0 0 1.25rem;
  font-weight: 650;
  letter-spacing: -.02em;
  font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem);
  color: var(--qli-ink);
}
.qli-website-product .woocommerce-Tabs-panel--description ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qli-website-product .woocommerce-Tabs-panel--description ul li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 56px;
  border: 1px solid var(--qli-line);
  border-radius: 14px;
  background: #fff;
  color: var(--qli-ink);
  line-height: 1.55;
  box-shadow: var(--qli-shadow);
}
.qli-website-product .woocommerce-Tabs-panel--description ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--qli-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.qli-website-product .woocommerce-Tabs-panel--description h3 {
  margin: 0;
  padding: 1.15rem 0 .4rem;
  border-top: 1px solid var(--qli-line);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--qli-ink);
}
.qli-website-product .woocommerce-Tabs-panel--description h3 + p { margin: 0 0 1.15rem; color: var(--qli-muted); line-height: 1.65; max-width: 70ch; }

/* Band 3, the questions: deep green, white text. */
.qli-website-product .qli-faq { padding: var(--qli-band-pad) 0; color: #fff; }
.qli-website-product .qli-faq::before {
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, var(--qli-deep-2), var(--qli-deep));
}
.qli-website-product .woocommerce-Tabs-panel--description .qli-faq h2 { color: #fff; }
.qli-website-product .woocommerce-Tabs-panel--description .qli-faq h3 { color: #fff; border-top-color: rgba(255, 255, 255, .16); }
.qli-website-product .woocommerce-Tabs-panel--description .qli-faq h3 + p { color: rgba(255, 255, 255, .78); }
.qli-website-product .qli-faq a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
@media (min-width: 900px) {
  .qli-website-product .qli-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 48px; }
  .qli-website-product .qli-faq > h2 { grid-column: 1; grid-row: 1 / span 20; align-self: start; }
  .qli-website-product .qli-faq > h3,
  .qli-website-product .qli-faq > p { grid-column: 2; }
  .qli-website-product .qli-faq > h3:first-of-type { border-top: 0; padding-top: 0; }
}
/* The page ends on the green band: no gap under it before the footer. */
.qli-website-product .qli-faq:last-child { margin-bottom: 0; }

/* ---------- The chooser ---------- */

.qli-shop {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  width: 100%;
  margin: 0;
  padding: var(--qli-band-pad) 0;
  color: var(--qli-ink);
}
/* Band 1, "Tell us your business": soft sage with a faint dot texture. */
.qli-shop::before {
  background:
    radial-gradient(rgba(47, 93, 58, .08) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--qli-sage), var(--qli-sage-2));
  border-top: 1px solid rgba(47, 93, 58, .10);
}
.qli-shop:has(> .qli-shop-cards:not([hidden])) { padding-bottom: 0; }
.qli-shop *, .qli-shop *::before, .qli-shop *::after { box-sizing: border-box; }
.qli-shop > .qli-shop-steps,
.qli-shop > .qli-shop-cards,
.qli-shop > .qli-shop-empty,
.qli-shop > noscript { grid-column: 1 / -1; }
@media (max-width: 640px) { .qli-shop { grid-template-columns: 1fr; } }

/* How it works. */
.qli-shop-steps {
  list-style: none;
  counter-reset: qli-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
.qli-shop-steps li {
  counter-increment: qli-step;
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--qli-line);
  border-radius: 14px;
  background: #fff;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--qli-muted);
  box-shadow: var(--qli-shadow);
}
.qli-shop-steps li::before {
  content: counter(qli-step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--qli-accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  line-height: 30px;
  text-align: center;
}
.qli-shop-steps strong { display: block; margin-bottom: 2px; color: var(--qli-ink); font-weight: 650; }

/* The two choices. */
.qli-shop-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.qli-shop-row[hidden], .qli-shop-cards[hidden] { display: none; }
.qli-shop-row label { margin: 0; font-weight: 650; font-size: .95rem; color: var(--qli-ink); }
.qli-shop .qli-shop-row select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 46px 0 16px;
  border: 1.5px solid #cfd4da;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315181d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
  color: var(--qli-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--qli-shadow);
  transition: border-color .15s, box-shadow .15s;
}
.qli-shop .qli-shop-row select:hover { border-color: #9aa3ad; }
.qli-shop .qli-shop-row select:focus { outline: none; border-color: var(--qli-accent); box-shadow: 0 0 0 4px rgba(47, 93, 58, .18); }
.qli-shop .qli-shop-row select option:disabled { color: #9aa3ad; }

/* The designs. */
.qli-shop-cards { margin-top: calc(var(--qli-band-pad) - 22px); padding: var(--qli-band-pad) 0; }
/* Band 2, the designs: light sand. */
.qli-shop-cards::before {
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--qli-sand), var(--qli-sand-2));
  border-top: 1px solid rgba(120, 90, 40, .10);
  border-bottom: 1px solid rgba(120, 90, 40, .10);
}
.qli-shop-head { margin: 0 0 20px; font-weight: 650; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -.015em; color: var(--qli-ink); }
.qli-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.qli-shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--qli-line);
  border-radius: var(--qli-radius);
  background: #fff;
  box-shadow: var(--qli-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.qli-shop-card:hover { transform: translateY(-3px); box-shadow: var(--qli-shadow-lift); border-color: #d3d8de; }
.qli-shop-thumb { position: relative; display: block; aspect-ratio: 37 / 21; overflow: hidden; background: #eef0f2; border-bottom: 1px solid var(--qli-line); }
.qli-shop-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .06)); pointer-events: none; }
.qli-shop-thumb iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 728px; border: 0; transform-origin: 0 0; pointer-events: none; }
.qli-shop-card h4 { margin: 16px 18px 4px; font-size: 1.15rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; color: var(--qli-ink); }
.qli-shop-meta { margin: 0 18px 16px; font-size: .9rem; line-height: 1.45; color: var(--qli-muted); }
.qli-shop-meta::first-letter { text-transform: uppercase; }
.qli-shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 18px 18px; }
/* Side by side when they fit, one above the other when they don't (each keeps its words on one line). */
.qli-shop .qli-shop-actions > * { flex: 1 1 auto; }

/* The card's buttons look the same in every theme. */
.qli-shop .qli-shop-actions .qli-shop-demo,
.qli-shop .qli-shop-actions .qli-shop-choose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.qli-shop .qli-shop-actions .qli-shop-demo { background: #fff; color: var(--qli-ink); border: 1.5px solid #cfd4da; }
.qli-shop .qli-shop-actions .qli-shop-demo:hover { border-color: var(--qli-ink); background: #fff; color: var(--qli-ink); }
.qli-shop .qli-shop-actions .qli-shop-choose { background: var(--qli-accent); color: #fff; border: 1.5px solid var(--qli-accent); }
.qli-shop .qli-shop-actions .qli-shop-choose:hover { background: var(--qli-accent-hover); border-color: var(--qli-accent-hover); color: #fff; }
.qli-shop .qli-shop-actions .qli-shop-demo:focus-visible,
.qli-shop .qli-shop-actions .qli-shop-choose:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(47, 93, 58, .25); }

.qli-shop-empty { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--qli-muted); }

@media (prefers-reduced-motion: reduce) {
  .qli-shop-card, .qli-shop-card:hover { transition: none; transform: none; }
}
