/*
 * AI Gift Search — motivationalgifts.com
 * Everything is scoped under .ags- so it cannot touch the rest of the theme.
 * Type and colour inherit from the theme wherever possible.
 */

.ags {
  /* Four-point sparkle, used as a mask so it inherits the accent colour. */
  --ags-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.5 4.5 3 7 7.5 7.5C15 10 12.5 12.5 12 17c-.5-4.5-3-7-7.5-7.5C9 9 11.5 6.5 12 2z'/%3E%3Cpath d='M19 15c.25 2 1.3 3 3.2 3.2-1.9.2-2.95 1.2-3.2 3.2-.25-2-1.3-3-3.2-3.2 1.9-.2 2.95-1.2 3.2-3.2z' opacity='.75'/%3E%3C/svg%3E");
  --ags-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
  --ags-ink: #232b21;
  --ags-muted: #6f7a6a;
  --ags-line: #e6e2d9;
  --ags-soft: #f7f5ef;
  --ags-accent: #8a7a52;
  /* Deeper than the accent so the printed message is readable, not decorative. */
  --ags-quote-ink: #5f5228;
  font-family: var(--font-body-family, inherit);
  color: var(--ags-ink);
}
.ags *,
.ags *::before,
.ags *::after {
  box-sizing: border-box;
}

.ags-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ---------- query header ---------- */
.ags-head {
  border-bottom: 1px solid var(--ags-line);
  padding-bottom: 22px;
  margin-bottom: 26px;
}
.ags-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ags-accent);
  margin-bottom: 12px;
}
.ags-kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--ags-spark) center / contain no-repeat;
  mask: var(--ags-spark) center / contain no-repeat;
}
.ags-q {
  font-family: var(--font-body-family, inherit);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 500;
  color: var(--ags-muted);
}
.ags-q::before {
  content: "You asked for ";
  color: var(--ags-muted);
  font-weight: 400;
}
/* The sharpest sentence on the page, so it is the headline. */
.ags-insight {
  font-family: var(--font-heading-family, inherit);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ags-ink);
  margin: 0 0 16px;
  max-width: 900px;
}
.ags-strategy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ags-muted);
  background: var(--ags-soft);
  border-left: 3px solid var(--ags-accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  max-width: 900px;
  margin: 0 0 6px;
}
.ags-meta {
  font-size: 13px;
  color: var(--ags-muted);
  margin-top: 14px;
}
.ags-editrow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ags-edit {
  flex: 1 1 380px;
  border: 1px solid var(--ags-line);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ags-ink);
  background: #fff;
  outline: none;
}
.ags-edit:focus {
  border-color: var(--ags-ink);
}

/* ---------- buttons ---------- */
.ags-btn {
  background: var(--ags-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.ags-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ags-btn-ghost {
  background: #fff;
  color: var(--ags-ink);
  border: 1.5px solid var(--ags-ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* ---------- loading ---------- */
.ags-loading {
  padding: 70px 0;
  text-align: center;
}
.ags-spin {
  width: 42px;
  height: 42px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--ags-line);
  border-top-color: var(--ags-ink);
  animation: ags-spin 0.9s linear infinite;
}
@keyframes ags-spin {
  to {
    transform: rotate(360deg);
  }
}
.ags-step {
  font-size: 14px;
  color: var(--ags-muted);
  margin-bottom: 8px;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.ags-step.is-on {
  opacity: 1;
  color: var(--ags-ink);
  font-weight: 600;
}
.ags-step.is-done {
  opacity: 0.65;
}

/* ---------- product grid ---------- */
.ags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
.ags-card {
  display: flex;
  flex-direction: column;
}
.ags-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--ags-soft);
  overflow: hidden;
  border-radius: 6px;
}
.ags-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ags-card:hover .ags-thumb img {
  transform: scale(1.04);
}
.ags-match {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(35, 43, 33, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.ags-title {
  font-size: 15px;
  line-height: 1.45;
  margin: 14px 0 6px;
  font-weight: 500;
  color: var(--ags-ink);
  text-decoration: none;
  display: block;
}
.ags-title:hover {
  text-decoration: underline;
}
.ags-price {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ags-ink);
  margin-bottom: 10px;
}
/* What the gift actually says. The message is the product, so it reads first. */
.ags-quote {
  font-family: var(--font-heading-family, inherit);
  font-size: 14.5px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 600;
  color: var(--ags-quote-ink);
  margin-bottom: 10px;
}
.ags-quote::before { content: "\201C"; }
.ags-quote::after { content: "\201D"; }
/* ---------------------------------------------------------------- *
 * The reasoning under each product
 * ---------------------------------------------------------------- *
 * Four named sections, flat rather than behind a toggle, so the buyer can
 * see the whole argument without a click. The label carries the colour;
 * the sentence stays in reading ink.
 */
.ags-fsec {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a5347;
  margin-bottom: 12px;
}
/* The last line is the payoff: the three words the gift actually hands over.
   It carries the weight of the label above it. */
.ags-fsec.is-trigger {
  font-weight: 700;
  color: var(--ags-ink);
}
/* One colour for every label: the store's deep bronze, the same tone the printed
   message uses. Four different hues turned the card into a legend the buyer had
   to decode. The sentences below carry the difference, not the colour. */
.ags-flabel {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 900;
  color: #46391a;
  margin-bottom: 5px;
}
/* The belief swap, as one shaded block. The old sentence is struck out and the
   new one is set in ink, so the change is the thing being read. */
.ags-shift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--ags-soft);
  border-radius: 8px;
}
.ags-from {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ags-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(138, 122, 82, 0.5);
}
.ags-arrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ags-accent);
}
.ags-to {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ags-ink);
  font-weight: 600;
}

/* Price, buy and quote pinned to the foot of every card, so a row of cards
   lines its buttons up no matter how long the reasoning above them runs. */
.ags-foot {
  margin-top: auto;
  padding-top: 6px;
}
.ags-foot .ags-price {
  margin-bottom: 8px;
}
.ags-foot .ags-quotepill {
  align-self: stretch;
  width: 100%;
  text-align: center;
  margin: 8px 0 0;
}
.ags-add {
  width: 100%;
  background: #fff;
  color: var(--ags-ink);
  border: 1.5px solid var(--ags-ink);
  border-radius: 999px;
  padding: 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: inherit;
  cursor: pointer;
}
.ags-add:hover {
  background: var(--ags-ink);
  color: #fff;
}
.ags-add.is-added {
  background: #2e7d47;
  border-color: #2e7d47;
  color: #fff;
}
.ags-add[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* ---------- bulk strip ---------- */
.ags-bulk {
  margin-top: 44px;
  border: 1px solid var(--ags-line);
  background: var(--ags-soft);
  border-radius: 10px;
  padding: 24px;
}
.ags-bulk h3 {
  font-family: var(--font-heading-family, inherit);
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--ags-ink);
}
.ags-bulk p {
  font-size: 13.5px;
  color: var(--ags-muted);
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 640px;
}
.ags-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}
.ags-fields input {
  width: 100%;
  border: 1px solid var(--ags-line);
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ags-ink);
}
.ags-bulkrow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ags-msg {
  font-size: 13px;
  margin-top: 12px;
}
.ags-msg.ok {
  color: #2e7d47;
}
.ags-msg.err {
  color: #b0553f;
}
.ags-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ags-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ags-muted);
  font-size: 15px;
}

/* ---------- search drawer hint ---------- */
.ags-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ags-muted, #6f7a6a);
  margin: 10px 0 0;
  font-family: var(--font-body-family, inherit);
}
.ags-hint b {
  color: #232b21;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ags-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 749px) {
  .ags-shell {
    padding: 22px 16px 48px;
  }
  .ags-insight {
    font-size: 19px;
  }
  .ags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }
  .ags-fields {
    grid-template-columns: 1fr;
  }
  .ags-btn,
  .ags-btn-ghost {
    width: 100%;
    text-align: center;
  }
  .ags-edit {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------- *
 * Home page search bar
 * ---------------------------------------------------------------- */
.ags-bar {
  background: var(--ags-soft);
  border-top: 1px solid var(--ags-line);
  border-bottom: 1px solid var(--ags-line);
  padding: 18px 20px 20px;
}
.ags-bar-in {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.ags-bar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ags-accent);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ags-accent) 32%, transparent);
  border-radius: 999px;
  padding: 8px 18px 8px 15px;
  margin-bottom: 14px;
  line-height: 1;
}
/* Fallback for browsers without color-mix. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .ags-bar-kicker {
    border-color: var(--ags-line);
  }
}
.ags-bar-kicker::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--ags-spark) center / contain no-repeat;
  mask: var(--ags-spark) center / contain no-repeat;
}
.ags-bar-title {
  font-family: var(--font-heading-family, inherit);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--ags-ink);
}
.ags-bar-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ags-muted);
  margin: 0 auto 14px;
  max-width: 480px;
}
.ags-bar-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ags-line);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  box-shadow: 0 1px 2px rgba(35, 43, 33, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ags-bar-form::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: var(--ags-muted);
  -webkit-mask: var(--ags-search) center / contain no-repeat;
  mask: var(--ags-search) center / contain no-repeat;
}
.ags-bar-form:focus-within {
  border-color: var(--ags-ink);
  box-shadow: 0 2px 10px rgba(35, 43, 33, 0.08);
}
.ags-bar-form input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ags-ink);
  padding: 13px 0;
  min-width: 0;
}
.ags-bar-form input::placeholder {
  color: #9aa294;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.ags-bar-form.is-fading input::placeholder {
  opacity: 0;
}
.ags-bar-go {
  flex: 0 0 auto;
  background: var(--ags-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}
.ags-bar-go:hover {
  opacity: 0.9;
}
.ags-bar-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.ags-bar-chips button {
  border: 1px solid var(--ags-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 15px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ags-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ags-bar-chips button:hover {
  border-color: var(--ags-ink);
  color: var(--ags-ink);
}

@media (max-width: 749px) {
  .ags-bar {
    padding: 22px 16px;
  }
  .ags-bar-title {
    font-size: 20px;
  }
  .ags-bar-kicker {
    font-size: 11.5px;
    letter-spacing: 0.16em;
    padding: 7px 15px 7px 12px;
  }
  .ags-bar-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 8px 16px 10px;
  }
  .ags-bar-form input {
    text-align: center;
    font-size: 14.5px;
  }
  .ags-bar-go {
    width: 100%;
    padding: 14px;
  }
  .ags-bar-chips button {
    font-size: 12px;
    padding: 7px 13px;
  }
}

/* ---------------------------------------------------------------- *
 * Results: hero row, price bands, bulk maths
 * ---------------------------------------------------------------- */

/* The three picks worth staking a reputation on get room to argue. */
.ags-grid-hero {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
  margin-bottom: 8px;
}
.ags-card.is-hero .ags-title {
  font-size: 16.5px;
}
.ags-card.is-hero .ags-price {
  font-size: 17px;
}
.ags-card.is-hero .ags-fsec {
  font-size: 14px;
}

.ags-band {
  font-family: var(--font-heading-family, inherit);
  font-size: 17px;
  font-weight: 600;
  color: var(--ags-ink);
  margin: 42px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ags-line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ags-bandcount {
  font-family: var(--font-body-family, inherit);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ags-muted);
}

/* Unit price times quantity, done for the buyer. */
.ags-total {
  font-size: 12.5px;
  color: var(--ags-muted);
  margin: -4px 0 10px;
}
.ags-total strong {
  color: var(--ags-ink);
  font-weight: 700;
}
/* The bulk price is quoted, not calculated, so the card asks for it instead.
   Quiet capsule, outlined not filled: the gift is the hero, this is the route. */
.ags-retail {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ags-muted);
  margin-left: 7px;
}
.ags-quotepill {
  align-self: flex-end;
  border: 1px solid var(--ags-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  margin: 2px 0 14px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ags-muted);
  cursor: pointer;
  line-height: 1.2;
  transition: border-color 0.15s, color 0.15s;
}
.ags-quotepill:hover {
  border-color: var(--ags-accent);
  color: var(--ags-accent);
}

@media (max-width: 1024px) {
  .ags-grid-hero {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 749px) {
  .ags-grid-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .ags-band {
    font-size: 15.5px;
    margin: 32px 0 14px;
  }
}

/* Paging: show 8, then load more, matching the collection pages. */
.ags-card.is-hidden,
.ags-grid.is-hidden,
.ags-band.is-hidden {
  display: none;
}
.ags-more {
  text-align: center;
  margin: 38px 0 4px;
}
.ags-more .ags-btn-ghost {
  min-width: 220px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: 14px 26px;
}

/* Hero images were taller than the argument they carry. */
.ags-card.is-hero .ags-thumb {
  aspect-ratio: 4 / 3;
}

/* Compact bulk strip: one line at the top so the gifts are not pushed off screen. */
.ags-bulkstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--ags-soft);
  border: 1px solid var(--ags-line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ags-muted);
}
.ags-bulkstrip strong {
  color: var(--ags-ink);
  font-weight: 700;
}
.ags-bulkstrip .ags-btn {
  flex: 0 0 auto;
  padding: 11px 22px;
  font-size: 12.5px;
}

/* The full form only needs to be as tall as its fields. */
.ags-bulk {
  margin-top: 36px;
  padding: 20px 22px;
}
.ags-bulk h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.ags-bulk p {
  font-size: 13px;
  margin-bottom: 12px;
}
.ags-fields input {
  padding: 11px 13px;
}
.ags-bulkrow {
  margin-top: 11px;
}

@media (max-width: 749px) {
  .ags-bulkstrip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ags-bulkstrip .ags-btn {
    width: 100%;
  }
}

/* Badge sits under the question, as the answer to it. */
.ags-bar-kicker.is-answer {
  margin: 8px 0 14px;
}
.ags-bar-title + .ags-bar-kicker.is-answer + .ags-bar-sub {
  margin-top: 10px;
}

/* ---------------------------------------------------------------- *
 * Waiting screen: give them something to read, not a progress report
 * ---------------------------------------------------------------- */
.ags-wait {
  font-family: var(--font-heading-family, inherit);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ags-ink);
  max-width: 620px;
  margin: 0 auto 18px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.ags-wait.is-out {
  opacity: 0;
}
.ags-wq {
  display: block;
}
.ags-wq::before {
  content: "\201C";
}
.ags-wq::after {
  content: "\201D";
}
/* The name is the proof. Small, but never anonymous. */
.ags-wa {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body-family, inherit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ags-accent);
}
.ags-wa::before {
  content: "\2013\00a0";
  opacity: 0.55;
}
.ags-waitstep {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ags-muted);
  opacity: 0.75;
}
@media (max-width: 749px) {
  .ags-wait {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------- *
 * Home page slideshow, the one section above the search bar
 * ---------------------------------------------------------------- *
 * Not an .ags- rule, and deliberately so. The banners were uploaded at
 * three different aspect ratios (3.00, 2.40, 2.95), and the theme sizes
 * each slide from its own image, so the slideshow changed height as it
 * rotated and pushed the search bar up and down. Pinning every slide to
 * the ratio the majority of the banners already use holds it still. The
 * theme already sets object-fit: cover on these images, so they crop
 * rather than stretch.
 *
 * The proper fix is re-exporting every banner at 1920 x 650.
 */
.t4s-sec-slideshow .t4s-slideshow-inner {
  --ratioapt: 2.9538461538461538 !important;
}

/* ---------------------------------------------------------------- *
 * Audience read, bulk and corporate only
 * ---------------------------------------------------------------- *
 * A corporate buyer is choosing for hundreds of people they cannot ask.
 * This is the evidence behind the picks. It sits above the products, so
 * it is a strip, not a screen: four short lines, collapsible.
 */
.ags-aud {
  border: 1px solid var(--ags-line);
  border-radius: 10px;
  background: #fff;
  padding: 14px 18px;
  margin: 0 0 26px;
}
.ags-aud summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ags-aud summary::-webkit-details-marker {
  display: none;
}
.ags-aud summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 700;
  color: var(--ags-muted);
  font-size: 15px;
  line-height: 1;
}
.ags-aud[open] summary::after {
  content: "\2212";
}
.ags-audhead {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Same weight and ink as the labels on the cards, so the panel heading reads
     as a heading rather than as a gold caption. */
  font-weight: 900;
  color: #46391a;
  flex: 0 0 auto;
}
.ags-audsum {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ags-ink);
  flex: 1 1 320px;
  min-width: 0;
}
.ags-audgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ags-line);
}
.ags-audcol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* The column label carries the meaning, so it reads as a heading, not a caption.
   The icon shape does the scanning work; the colour stays the store's gold. */
.ags-audlabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: #46391a;
}
.ags-audicon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.ags-audicon {
  color: var(--ags-accent);
}
.ags-audlist {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ags-ink);
}
@media (max-width: 749px) {
  .ags-aud {
    padding: 12px 14px;
    margin-bottom: 20px;
  }
  .ags-audgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
  .ags-audsum {
    font-size: 13px;
  }
  .ags-audlist {
    font-size: 12.5px;
  }
}


/* ---------------------------------------------------------------- *
 * Home page slideshow: crossfade, not slide
 * ---------------------------------------------------------------- *
 * The banners were sliding past every 3 seconds, which reads as a
 * machine flicking through them. Every slide is stacked in the same
 * place and only opacity changes, so one banner dissolves into the
 * next. The theme's own transform on the track and on each slide is
 * neutralised, so nothing moves horizontally any more.
 */
.t4s-sec-slideshow .flickityt4s-slider {
  transform: none !important;
}
.t4s-sec-slideshow .t4s-slide {
  transform: none !important;
  left: 0 !important;
  opacity: 0 !important;
  transition: opacity 1s ease !important;
  pointer-events: none;
  z-index: 0;
}
.t4s-sec-slideshow .t4s-slide.is-selected {
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 1;
}


/* ---------------------------------------------------------------- *
 * Bulk quote dialog
 * ---------------------------------------------------------------- */
.ags-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ags-modal[hidden] {
  display: none;
}
.ags-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(35, 43, 33, 0.55);
}
.ags-modal-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 50px rgba(35, 43, 33, 0.28);
  max-height: 90vh;
  overflow-y: auto;
}
.ags-modal-x {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ags-muted);
  cursor: pointer;
}
.ags-modal-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ags-accent);
  margin-bottom: 8px;
}
.ags-modal-title {
  font-family: var(--font-heading-family, inherit);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ags-ink);
  margin: 0 0 8px;
}
.ags-modal-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ags-muted);
  margin: 0 0 16px;
}
.ags-modal-go {
  width: 100%;
  margin-top: 14px;
}
@media (max-width: 749px) {
  .ags-modal-card {
    padding: 24px 18px 20px;
  }
}

/* The three example chips under the bar are gone. The prompt rotating inside the
   input already shows what a good query looks like, and three fixed examples
   quietly told people those were the only three things they could ask. */
.ags-bar-chips {
  display: none !important;
}

.ags-bar-chips,
.ags-bar-in > .ags-bar-chips {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* The strategy paragraph is gone from the results header. */
.ags-strategy {
  display: none !important;
}

/* The insight and the count now sit under the search box, so they need the
   breathing room the header used to give them at the top. */
.ags-editrow + .ags-insight {
  margin-top: 24px;
  margin-bottom: 10px;
}
.ags-insight + .ags-meta {
  margin-top: 0;
}

/* ---------------------------------------------------------------- *
 * Bulk quote dialog
 * ---------------------------------------------------------------- */
.ags-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ags-modal[hidden] {
  display: none;
}
.ags-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(35, 43, 33, 0.55);
}
.ags-modal-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 50px rgba(35, 43, 33, 0.28);
  max-height: 90vh;
  overflow-y: auto;
}
.ags-modal-x {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ags-muted);
  cursor: pointer;
}
.ags-modal-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ags-accent);
  margin-bottom: 8px;
}
.ags-modal-title {
  font-family: var(--font-heading-family, inherit);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ags-ink);
  margin: 0 0 8px;
}
.ags-modal-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ags-muted);
  margin: 0 0 16px;
}
.ags-modal-go {
  width: 100%;
  margin-top: 14px;
}
@media (max-width: 749px) {
  .ags-modal-card {
    padding: 24px 18px 20px;
  }
}

/* The three example chips under the bar are gone. The prompt rotating inside the
   input already shows what a good query looks like, and three fixed examples
   quietly told people those were the only three things they could ask. */
.ags-bar-chips {
  display: none !important;
}

.ags-bar-chips,
.ags-bar-in > .ags-bar-chips {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* The strategy paragraph is gone from the results header. */
.ags-strategy {
  display: none !important;
}

/* The insight and the count now sit under the search box, so they need the
   breathing room the header used to give them at the top. */
.ags-editrow + .ags-insight {
  margin-top: 24px;
  margin-bottom: 10px;
}
.ags-insight + .ags-meta {
  margin-top: 0;
}

/* ---------------------------------------------------------------- *
 * Results rendered inline, under the bar on the home page
 * ---------------------------------------------------------------- */
.ags-inline .ags-shell {
  padding-top: 34px;
  padding-bottom: 40px;
}
.ags-inline .ags-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
}

/* The instruction sits under the search field, not above it. Two lines of room
   are reserved so the panel is the same height whether the line wraps or not. */
.ags-bar-sub.is-under {
  margin: 10px auto 0;
  font-size: 13.5px;
  /* Two lines reserved: the corporate instruction wraps, the personal one does
     not, and the panel must not change height between them. */
  min-height: 42px;
}

/* ---------------------------------------------------------------- *
 * "All" parked to the left of the category carousel
 * ---------------------------------------------------------------- */
[data-ags-pinrow] {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
[data-ags-pinrow] > [data-ags-pinfirst] {
  flex: 0 0 auto;
}
[data-ags-pinrow] > [data-flickityt4s-js] {
  flex: 1 1 auto;
  min-width: 0;
}

/* The stepper arrows sat on top of the word "Quantity" and cut it in half. The
   field is typed into, not stepped through. */
.ags-fields input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.ags-fields input[type="number"]::-webkit-outer-spin-button,
.ags-fields input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------------------------------------------------------------- *
 * Personal / corporate switch, and the bar it changes
 * ---------------------------------------------------------------- *
 * Two buttons, the selected one filled. It sits at the left edge of the block
 * and out of the flow, so choosing a mode costs no vertical space. The panel
 * keeps its width, height and colour across both modes: only the corners of the
 * field, what it asks for and the button label change.
 */
.ags-bar {
  position: relative;
}
.ags-modeswitch {
  position: absolute;
  left: 20px;
  top: 18px;
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--ags-line);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  z-index: 2;
}
.ags-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ags-muted);
  border: 0;
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.ags-mode svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.ags-mode:hover {
  color: var(--ags-ink);
}
.ags-mode.is-on {
  background: var(--ags-ink);
  color: #fff;
}

/* Same shell, squared off. */
.ags-bar.is-corp .ags-bar-form {
  border-radius: 14px;
}
.ags-bar.is-corp .ags-bar-go {
  border-radius: 9px;
}
/* Specific enough to beat ".ags-bar-form input", which zeroes the border. */
.ags-bar-form input.ags-bar-input2 {
  flex: 1;
  border: 0;
  border-left: 1px solid var(--ags-line);
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ags-ink);
  padding: 13px 0 13px 14px;
  margin-left: 4px;
  min-width: 0;
}
.ags-bar-form input.ags-bar-input2::placeholder {
  color: #9aa294;
  opacity: 1;
}

/* ---------------------------------------------------------------- *
 * Example chips, both modes
 * ---------------------------------------------------------------- */
.ags-chipbox {
  margin-top: 12px;
}
.ags-chiprow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  /* Three rows, reserved in both modes, so the panel is the same height either
     side of the switch. The corporate examples are full sentences. */
  min-height: 109px;
  align-content: flex-start;
}
.ags-chip {
  background: #fff;
  border: 1px solid var(--ags-line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ags-muted);
  cursor: pointer;
  line-height: 1.2;
}
.ags-chip:hover {
  border-color: var(--ags-ink);
  color: var(--ags-ink);
}

@media (max-width: 749px) {
  .ags-bar-form input.ags-bar-input2 {
    font-size: 15px;
    padding-left: 10px;
  }
  .ags-chiprow {
    gap: 6px;
  }
  .ags-chip {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* Narrow screens have no room beside the heading, so it goes back into the flow
   above it. */
@media (max-width: 900px) {
  .ags-modeswitch {
    position: static;
    display: flex;
    width: max-content;
    margin: 0 auto 12px;
  }
}

/* "GIFTING :" ahead of the triggers, in the label's type so the closing line
   reads as one thought with the heading above it. */
.ags-fpre {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 900;
  color: #46391a;
  margin-right: 5px;
}

/* ---------------------------------------------------------------- *
 * Theme tab chips (Select Theme of Motivation, New Arrivals)
 * ---------------------------------------------------------------- *
 * The carousel rounds each cell's width down, and the 6px gutter was not enough
 * to absorb it, so neighbouring pills touched and in places overlapped by a few
 * pixels. Slightly smaller pills and a wider gutter leave clear air between them
 * at every width.
 */
.t4s-tab-item {
  margin-right: 2px !important;
}
/* The air sits inside the cell, on the pill itself. A margin on the cell is
   applied after the carousel has already rounded the cell width, which left the
   gaps uneven and, on a few pairs, negative. */
.t4s-tab-item > a {
  padding: 3px 19px !important;
  font-size: 13.5px !important;
  margin-right: 10px !important;
}
