/* AisleBeBack, the platform's own look (docs/design/aislebeback-landing-mockup.png). Loaded only by
   layouts/consumer.php: client sites (layouts/client.php) never load it. Colours meet WCAG AA:
   white text on the green (#0b7f5f, 5:1) and the navy; teal only on navy (large text, icons). */

.fp-abb {
  --abb-navy: #0b2545;
  --abb-navy-2: #12406b;
  --abb-green: #0b7f5f;
  --abb-green-dark: #08664c;
  --abb-teal: #2dd4bf;
  --abb-mint: #e8f6f1;
  background: #f7fafb;
  color: var(--abb-navy);
}

/* Header ---------------------------------------------------------------------------------- */
.fp-abb-header {
  background: #fff;
  box-shadow: 0 1px 0 #e6ebef, 0 2px 10px rgb(11 37 69 / 6%);
}
.fp-abb-home { display: inline-flex; align-items: center; min-height: var(--fp-touch-target); }
.fp-abb-header .fp-platform-logo { height: 40px; }
.fp-abb-nav .nav-link { color: var(--abb-navy); font-weight: 600; }
.fp-abb-nav .nav-link:hover, .fp-abb-nav .nav-link:focus-visible { color: var(--abb-green); }
.fp-abb-search-link {
  align-items: center;
  justify-content: center;
  min-width: var(--fp-touch-target);
  min-height: var(--fp-touch-target);
  color: var(--abb-navy);
}
.fp-abb-search-link:hover, .fp-abb-search-link:focus-visible, .fp-abb-search-link[aria-current] { color: var(--abb-green); }
.fp-abb-search-link .fp-icon { width: 1.3em; height: 1.3em; }
/* Tablet: the navigation takes its own row under the logo and actions. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .fp-abb-navwrap { order: 10; flex-basis: 100%; }
  .fp-abb-nav { justify-content: center; }
}
.fp-abb-nav .nav-link.active { color: var(--abb-navy); box-shadow: inset 0 -3px 0 var(--abb-green); }
.fp-abb-signin {
  align-items: center;
  gap: .35rem;
  min-height: var(--fp-touch-target);
  color: var(--abb-navy);
  font-weight: 600;
  text-decoration: none;
}
.fp-abb-signin:hover { color: var(--abb-green); }
.fp-abb-cta {
  background: var(--abb-green);
  color: #fff;
  border-radius: .6rem;
  font-weight: 700;
  padding: .5rem 1.1rem;
  min-height: var(--fp-touch-target);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
}
.fp-abb-cta:hover, .fp-abb-cta:focus-visible { background: var(--abb-green-dark); color: #fff; }
@media (min-width: 992px) { .fp-abb-header .fp-platform-logo { height: 52px; } }
@media (max-width: 575.98px) {
  .fp-abb-header .fp-platform-logo { height: 28px; max-width: 42vw; }
  .fp-abb-header .container-fluid { gap: .5rem !important; }
  .fp-abb-header .fp-c-location { max-width: 7.5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .fp-abb-header .fp-c-lang { padding-left: .25rem; padding-right: .25rem; }
}

/* Hero ------------------------------------------------------------------------------------ */
.fp-abb-hero {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, var(--abb-navy-2) 0%, var(--abb-navy) 60%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem 3.5rem;
  overflow: hidden;
}
.fp-abb-hero { grid-template-columns: minmax(0, 1fr); }
.fp-abb-hero-text { min-width: 0; }
.fp-abb-hero-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 1.3rem + 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-bottom: .75rem;
}
.fp-abb-highlight { color: var(--abb-teal); }
.fp-abb-hero-lead { font-size: var(--fp-fs-lg); max-width: 34rem; margin-bottom: 1.25rem; }
.fp-abb-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: .9rem;
  padding: .4rem .4rem .4rem .9rem;
  max-width: 36rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
.fp-abb-search-icon { color: var(--abb-navy); width: 1.3em; height: 1.3em; flex: none; }
.fp-abb-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  font-size: var(--fp-fs-md);
  color: var(--abb-navy);
  background: transparent;
  min-height: var(--fp-touch-target);
}
.fp-abb-search-input::placeholder { color: #5b6475; }
.fp-abb-search-input:focus { outline: none; }
.fp-abb-search:focus-within { outline: 3px solid var(--abb-teal); outline-offset: 2px; }
.fp-abb-hero-near { margin: .75rem 0 0; }
@media (max-width: 419.98px) { /* the icon alone; the label stays for screen readers */
  .fp-abb-find-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fp-abb-search .fp-abb-cta { padding: .5rem .8rem; }
}
.fp-abb-hero-near a { color: #fff; }
.fp-abb-hero-visual { position: relative; justify-self: end; width: 100%; max-width: 40rem; }
.fp-abb-hero-visual img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.fp-abb-hero-visual::before { /* the teal swoosh */
  content: "";
  position: absolute;
  inset: -12% auto -12% -10%;
  width: 26%;
  border-left: 10px solid var(--abb-teal);
  border-radius: 50%;
  transform: rotate(8deg);
}
@media (max-width: 767.98px) { .fp-abb-hero-visual { display: none; } }
@media (min-width: 992px) {
  .fp-abb-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 2.75rem 3rem 4.25rem; }
}

/* The four promises ------------------------------------------------------------------------ */
.fp-abb-features {
  list-style: none;
  position: relative;
  margin: -2.25rem .75rem 2rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .75rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(11 37 69 / 10%);
}
.fp-abb-feature { display: flex; align-items: center; gap: .75rem; line-height: 1.25; }
.fp-abb-feature .small { color: #3d4a5c; }
.fp-abb-feature-icon { color: var(--abb-green); width: 2rem; height: 2rem; flex: none; stroke-width: 1.75; }
@media (min-width: 992px) {
  .fp-abb-features { margin: -2.75rem 2.5rem 2.5rem; padding: 1.25rem 1.5rem; }
  .fp-abb-feature + .fp-abb-feature { border-left: 1px solid #e6ebef; padding-left: 1rem; }
}

/* Sections --------------------------------------------------------------------------------- */
.fp-abb-section { margin-bottom: 2.25rem; }
.fp-abb-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.fp-abb-section-title {
  font-size: var(--fp-fs-xl);
  font-weight: 700;
  margin: 0;
  padding-bottom: .3rem;
  background: linear-gradient(var(--abb-green), var(--abb-green)) no-repeat left bottom / 3rem 3px;
}
.fp-abb-more { color: var(--abb-green); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.fp-abb-more:hover { color: var(--abb-green-dark); text-decoration: underline; }

/* Popular retailers ------------------------------------------------------------------------- */
.fp-abb-retailers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.fp-abb-retailer {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .6rem;
  background: #fff;
  border-radius: .9rem;
  box-shadow: 0 4px 14px rgb(11 37 69 / 8%);
  text-decoration: none;
  color: var(--abb-navy);
  font-weight: 600;
  text-align: center;
}
.fp-abb-retailer:hover, .fp-abb-retailer:focus-visible { box-shadow: 0 6px 18px rgb(11 37 69 / 16%); }
.fp-abb-retailer-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: .5rem;
  border-radius: .6rem;
  background: var(--abb-navy);
  color: #fff;
  font-weight: 800;
  font-size: var(--fp-fs-lg);
  line-height: 1.1;
}
/* A brand logo (uploaded in the retailer portal), scaled to fit the tile. */
.fp-abb-retailer-tile.has-logo { height: 4.25rem; padding: .4rem .6rem; }
.fp-abb-retailer-tile img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Shop by category ------------------------------------------------------------------------- */
.fp-abb-categories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .75rem; }
.fp-abb-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 6rem;
  padding: .75rem .5rem;
  background: var(--abb-mint);
  border-radius: .9rem;
  color: var(--abb-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fp-fs-sm);
  text-align: center;
  line-height: 1.2;
}
.fp-abb-category:hover, .fp-abb-category:focus-visible { background: #d3efe6; }
.fp-abb-category-icon { color: var(--abb-green); width: 2rem; height: 2rem; stroke-width: 1.75; }

/* How it works ----------------------------------------------------------------------------- */
.fp-abb-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fp-abb-step { position: relative; background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 4px 14px rgb(11 37 69 / 8%); }
.fp-abb-step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--abb-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Footer ----------------------------------------------------------------------------------- */
.fp-abb-footer { background: var(--abb-navy); color: #fff; margin-top: 2rem; }
.fp-abb-footer a { color: #fff; }
.fp-abb-footer-name { font-weight: 800; font-size: var(--fp-fs-lg); }

/* The phone tab bar in the platform's green. */
.fp-abb .fp-c-tab.active { color: var(--abb-green); }
/* Five tabs on one row, down to 320 px. */
.fp-abb .fp-c-tabbar .nav { flex-wrap: nowrap; }
.fp-abb .fp-c-tab { padding-left: .2rem; padding-right: .2rem; white-space: nowrap; }

/* Brand logos on the retailer list and a retailer's page (uploaded in the retailer portal). */
.fp-retailer-logo { flex: none; width: auto; height: auto; max-width: 6rem; max-height: 2.5rem; object-fit: contain; }
.fp-retailer-logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 0 0 .75rem; }
.fp-retailer-logos img { display: block; width: auto; height: auto; max-width: 12rem; max-height: 4rem; object-fit: contain; }
