/*
 * The look of a special. Loaded while one is showing, and on a page whose
 * tabs carry the standing plan-saving badge (.dc-plan-badge, which shares the
 * special badge's look). Every rule is scoped to a class this plugin prints.
 */

:root {
  --dc-special-accent: #ffc83d;
  --dc-special-ink: #111111;
}

/* Struck regular price followed by the special price. */
.dc-special-was {
  font-weight: 400;
  opacity: 0.6;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.dc-special-now {
  font-weight: 800;
}

/* "Save 25%" badge. */
.dc-special-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--dc-special-accent);
  color: var(--dc-special-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* On a checkout tab the badge tucks into the top right corner, clear of the
   label. It stays inside the tab because the tab strip clips what overflows. */
.mpc-button .dc-special-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 2;
  margin: 0;
  padding: 2px 8px;
  font-size: 10px;
}

/* A plan paid less often than monthly: "$16.59 PER MONTH" over the typed
   label ("$199 BILLED ANNUALLY"). */
.dc-plan-rate {
  display: block;
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.dc-plan-billed {
  display: block;
  margin-top: 4px;
  font-size: 0.8em;
  font-weight: inherit;
  line-height: 1.3;
}

/* One tab is now two lines tall, so the whole row stretches to match it. The
   page puts the tab's colour on the innermost span, which is why every level
   down to it has to stretch. */
.dc-plan-tabs .mpc-tabs__nav ul {
  display: flex;
  flex-wrap: wrap;
}

.dc-plan-tabs .mpc-tabs__nav ul li.mpc-tabs__nav-item {
  display: flex !important; /* the tabs plugin sets its own display here */
}

.dc-plan-tabs .mpc-tabs__nav-item .mpc-button,
.dc-plan-tabs .mpc-tabs__nav-item .mpc-button__content {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
}

.dc-plan-tabs .mpc-tabs__nav-item .mpc-button__content span.mpc-button__title {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  padding: 16px 12px !important;
}

.dc-plan-label {
  display: block;
  font-style: normal;
  text-align: center;
}

/* Strip above the checkout form. */
.dc-special-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 16px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--dc-special-ink);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.dc-special-banner__name {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-special-banner__saving {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--dc-special-accent);
  color: var(--dc-special-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dc-special-banner__ends {
  opacity: 0.8;
}

/* The Terms line: let the special price carry the weight. */
.mepr_price_cell .dc-special-now {
  color: #e11d3d;
}
