/*
 * Focused Impeccable corrections for Portal Reseller, Wholesale, and MDP.
 * Copy is owned by the PHP templates; this layer changes composition only.
 */

body.fs-template-solutions-reseller .fs-reseller-hero__layout {
  grid-template-columns: minmax(0, 52rem);
  grid-template-areas:
    "copy"
    "proof";
  justify-content: start;
  row-gap: clamp(2rem, 4vw, 3rem);
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy {
  max-width: 48rem;
}

body.fs-template-solutions-reseller .fs-reseller-proof {
  width: min(100%, 36rem);
}

body.fs-template-solutions-reseller #main-content > .fs-reseller-models--light {
  background: #ffffff;
  color: var(--fs-inner-ink);
}

body.fs-template-solutions-reseller #main-content > .fs-reseller-models--light::before {
  display: none;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-models__heading {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-models__heading > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-kicker,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-models__heading h2 {
  color: var(--fs-inner-ink);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-models__heading h2,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-models__heading > p {
  max-width: none;
  margin-inline: auto;
  color: var(--fs-inner-copy);
  text-align: center;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--fs-inner-line);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 0;
  background: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model + .fs-reseller-model {
  border-left: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured {
  position: relative;
  z-index: 1;
  isolation: isolate;
  color: #ffffff;
  background: linear-gradient(135deg, #c9000a 0%, #8f0007 100%);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured::before {
  display: block;
  inset: 0;
  height: auto;
  background-color: transparent;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-size: 12rem;
  opacity: .08;
  pointer-events: none;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured > * {
  position: relative;
  z-index: 1;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__icon {
  background: rgb(255 255 255 / .14);
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured h3,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__description,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured dt,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured dd {
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__description,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured dt {
  color: rgb(255 255 255 / .78);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured dl,
body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured dl > div {
  border-color: rgb(255 255 255 / .22);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-badge--popular {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--fs-inner-red);
  box-shadow: 0 4px 0 #8f0007;
}

body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__button:hover {
  background: #f7f7f7;
  color: #a80008;
  box-shadow: 0 2px 0 #8f0007;
  transform: translateY(2px);
}

body.fs-template-solutions-wholesale .fs-centered-section-heading,
body.fs-template-solutions-mdp .fs-mdp-couriers__heading {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

body.fs-template-solutions-wholesale .fs-centered-section-heading > :is(.eyebrow, h2, p),
body.fs-template-solutions-mdp .fs-mdp-couriers__heading > :is(.eyebrow, h2, p) {
  margin-inline: auto;
  text-align: center;
}

body.fs-template-solutions-mdp .fs-mdp-couriers__heading > h2 {
  max-width: 22ch;
}

body.fs-template-solutions-mdp .fs-mdp-couriers {
  display: flex;
  width: min(100%, 56rem);
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

body.fs-template-solutions-mdp .fs-mdp-courier-logo {
  display: flex;
  min-width: 0;
  min-height: 5.5rem;
  flex: 1 1 9rem;
  align-items: center;
  justify-content: center;
  max-width: 13rem;
  padding: .875rem 1.25rem;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  background: #ffffff;
}

body.fs-template-solutions-mdp .fs-mdp-courier-logo img {
  display: block;
  width: 100%;
  max-width: 10.5rem;
  height: 3.5rem;
  object-fit: contain;
}

@media (max-width: 374px) {
  body.fs-template-solutions-mdp .fs-mdp-courier-logo {
    flex-basis: 100%;
  }
}

body.fs-template-solutions-wholesale .fs-wholesale-workflow {
  color: var(--fs-inner-ink);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(214, 0, 1, .05) 0%, transparent 70%),
    #ffffff;
}

body.fs-template-solutions-wholesale .fs-wholesale-workflow__pattern {
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-size: 15rem;
  opacity: .035;
}

body.fs-template-solutions-wholesale .fs-wholesale-workflow .eyebrow {
  color: var(--fs-inner-red);
}

body.fs-template-solutions-wholesale .fs-wholesale-workflow__step {
  border-color: var(--fs-inner-line);
}

@media (max-width: 1023px) {
  body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-comparison {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model + .fs-reseller-model {
    border-top: 1px solid var(--fs-inner-line);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-comparison {
    border-radius: .875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fs-template-solutions-reseller .fs-reseller-models--light .fs-reseller-model.is-featured .fs-reseller-model__button:hover {
    transform: none;
  }
}
