/*
 * MV Subscription Banner
 * Front office styles for PrestaShop 9.1.x
 */

.mvsb {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 35%) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  width: min(100% - 2rem, 1280px);
  min-height: 260px;
  margin: 0rem auto;
  padding: clamp(1.25rem, 2.1vw, 2rem) clamp(1.25rem, 2.6vw, 2.5rem);
  overflow: hidden;
  color: #152b4c;
  background:
    linear-gradient(100deg, rgba(207, 248, 250, .94) 0%, rgba(255, 255, 255, .95) 49%, rgba(255, 231, 218, .92) 100%);
  border: 1px solid #1dc3cb;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(17, 64, 91, .08);
}

.mvsb__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
  pointer-events: none;
}

.mvsb__visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.mvsb__badge {
  display: block;
  width: min(100%, 360px);
  height: auto;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(4, 144, 159, .14));
}

.mvsb__divider {
  align-self: stretch;
  width: 1px;
  min-height: 190px;
  background: rgba(31, 93, 118, .34);
}

.mvsb__content {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
}

.mvsb__header {
  display: grid;
  gap: .35rem;
}

.mvsb__title {
  margin: 0;
  color: #152b4c;
  font-size: xx-large;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.mvsb__discount {
  color: #ef3e83;
  white-space: nowrap;
}

.mvsb__description {
  max-width: 760px;
  margin: 0;
  color: #273b59;
  font-size: clamp(.93rem, 1.1vw, 1.05rem);
  line-height: 1.4;
  white-space: pre-line;
}

.mvsb__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: .75rem;
  max-width: 630px;
}

.mvsb__benefit {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .15rem;
  min-width: 0;
  color: #007d8e;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.mvsb__benefit img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mvsb__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.mvsb__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.mvsb__button:hover,
.mvsb__button:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.mvsb__button--primary {
  color: #fff;
  background: linear-gradient(90deg, #20b9c3 0%, #ed3f88 100%);
  box-shadow: 0 8px 18px rgba(225, 58, 129, .18);
}

.mvsb__button--primary:hover,
.mvsb__button--primary:focus-visible {
  color: #fff;
  box-shadow: 0 11px 22px rgba(225, 58, 129, .25);
}

.mvsb__button--secondary {
  color: #152b4c;
  background: rgba(255, 255, 255, .78);
  border-color: #16b7c4;
}

.mvsb__button--secondary:hover,
.mvsb__button--secondary:focus-visible {
  color: #007d8e;
  background: #fff;
}

@media (max-width: 991.98px) {
  .mvsb {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
    text-align: center;
  }

  .mvsb__divider {
    width: min(100%, 420px);
    min-height: 1px;
    height: 1px;
    justify-self: center;
  }

  .mvsb__content,
  .mvsb__header {
    justify-items: center;
  }

  .mvsb__description {
    max-width: 650px;
  }

  .mvsb__benefits {
    width: min(100%, 560px);
  }

  .mvsb__actions {
    justify-content: center;
  }
  .mvsb__badge{
    width: 260px;
  }
}

@media (max-width: 575.98px) {
  .mvsb {
    width: calc(100% - 1rem);
    margin-block: 1rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .mvsb__badge {
    width: min(100%, 300px);
  }

  .mvsb__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
  }

  .mvsb__benefit {
    font-size: .78rem;
  }

  .mvsb__benefit img {
    width: 54px;
    height: 54px;
  }

  .mvsb__actions {
    display: grid;
    width: 100%;
  }

  .mvsb__button {
    width: 100%;
    padding-inline: 1rem;
  }
  .mvsb__badge{
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mvsb__button {
    transition: none;
  }
}

.mvsb__benefit span.border {
    border: 1px solid #f03004;
    background: #f0f8ff36;
    border-radius: 50px;
    padding: 15px;
}
