.mth-promo-header {
  --mth-ph-green: #175C2F;
  --mth-ph-gold: #FFD200;
  --mth-ph-black: #000000;
  --mth-ph-dark-gray: #4D4D4D;
  --mth-ph-light-gray: #DCDCDC;
  --mth-ph-white: #FFFFFF;
  --mth-ph-gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 0 var(--mth-ph-gap) var(--mth-ph-gap);
  container-type: inline-size;
}

.mth-promo-header,
.mth-promo-header * {
  box-sizing: border-box;
}

.mth-promo-header a.mth-promo-header-card,
.mth-promo-header .mth-promo-header-card {
  display: block !important;
  float: none !important;
  margin: 0;
  padding: 0 !important;
  max-width: none !important;
  max-height: none !important;
  text-align: left;
  line-height: normal;
}

.mth-promo-header__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--mth-ph-gap);
  color: var(--mth-ph-black);
  font-size: var(--mth-ph-heading-size, 18px);
  font-weight: 800;
  line-height: 1.2;
}

.mth-promo-header__heading::before {
  content: "";
  width: 8px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mth-ph-gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mth-promo-header__grid {
  display: grid;
  gap: var(--mth-ph-gap);
  width: 100%;
  min-width: 0;
}

.mth-promo-header--columns-1 .mth-promo-header__grid {
  grid-template-columns: minmax(0, 1fr);
}

.mth-promo-header--columns-2 .mth-promo-header__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mth-promo-header--columns-3 .mth-promo-header__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mth-promo-header--columns-4 .mth-promo-header__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mth-promo-header-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--mth-ph-card-ratio, 640 / 300);
  overflow: hidden;
  border: 1px solid rgba(23, 92, 47, 0.18);
  border-radius: 8px;
  background: var(--mth-ph-green);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.13);
  color: var(--mth-ph-white);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.mth-promo-header-card:hover,
.mth-promo-header-card:focus {
  color: var(--mth-ph-white);
  text-decoration: none;
  outline: none;
}

.mth-promo-header-card:hover,
.mth-promo-header-card:focus {
  transform: translateY(-2px);
  border-color: rgba(23, 92, 47, 0.42);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

a.mth-promo-header-card:focus-visible {
  outline: 2px solid var(--mth-ph-gold);
  outline-offset: 3px;
}

.mth-promo-header-card__image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  transition: transform 0.24s ease, filter 0.24s ease;
  transform-origin: center center;
  will-change: transform;
}

.mth-promo-header-card:hover .mth-promo-header-card__image,
.mth-promo-header-card:focus .mth-promo-header-card__image {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.mth-promo-header-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--mth-ph-white);
  background: rgba(23, 92, 47, 0.94);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  font-size: var(--mth-ph-badge-size, 11px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mth-promo-header-card__content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--mth-ph-white);
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.mth-promo-header-card__title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--mth-ph-title-size, 16px);
  font-weight: 800;
  line-height: 1.15;
}

.mth-promo-header-card__button {
  padding: 6px 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--mth-ph-black);
  background: var(--mth-ph-gold);
  font-size: var(--mth-ph-button-size, 12px);
  font-weight: 900;
  line-height: 1;
}

@container (max-width: 700px) {
  .mth-promo-header__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .mth-promo-header-card {
    min-height: 132px;
  }

  .mth-promo-header-card__content {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 10px;
  }
}

@container (min-width: 701px) and (max-width: 1050px) {
  .mth-promo-header--columns-3 .mth-promo-header__grid,
  .mth-promo-header--columns-4 .mth-promo-header__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .mth-promo-header {
    --mth-ph-gap: 14px;
    padding: 0 var(--mth-ph-gap) var(--mth-ph-gap);
  }

  .mth-promo-header__heading {
    margin-bottom: 12px;
  }

  .mth-promo-header__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--mth-ph-gap) !important;
  }

  .mth-promo-header-card {
    min-height: 132px;
  }

  .mth-promo-header-card__content {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 10px;
  }
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .mth-promo-header {
    --mth-ph-gap: 14px;
  }

  .mth-promo-header__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--mth-ph-gap) !important;
  }

  .mth-promo-header-card {
    width: 100% !important;
    max-width: none !important;
    min-height: 140px;
  }

  .mth-promo-header-card__badge {
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
  }

  .mth-promo-header-card__content {
    left: 9px;
    right: 9px;
    bottom: 9px;
    gap: 8px;
    padding: 9px 10px;
  }

  .mth-promo-header-card__title {
    overflow: visible;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .mth-promo-header {
    --mth-ph-gap: 12px;
  }

  .mth-promo-header-card {
    min-height: 128px;
  }

  .mth-promo-header-card__button {
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mth-promo-header-card,
  .mth-promo-header-card__image {
    transition: none;
  }

  .mth-promo-header-card:hover,
  .mth-promo-header-card:focus,
  .mth-promo-header-card:hover .mth-promo-header-card__image,
  .mth-promo-header-card:focus .mth-promo-header-card__image {
    transform: none;
  }
}
