/**
 * Specials and coupon cards.
 *
 * The card leads with the offer value, not the product name, because that is what
 * makes someone stop. The code sits in a dashed box that reads as something to
 * act on rather than as body text.
 *
 * @package Montreal_Smoked_Meat_Rye
 */

.smr-specials__heading {
  margin: 0 0 20px;
  font-family: var(--font-heading, 'Lora', Georgia, serif);
}

.smr-specials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.smr-special {
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition, all .3s ease);
}

.smr-special:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.smr-special__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.smr-special__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smr-special__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  /* Push the terms to the bottom so cards of different lengths line up. */
  flex: 1 1 auto;
}

.smr-special__title {
  margin: 0;
  font-family: var(--font-heading, 'Lora', Georgia, serif);
  font-size: 1.12rem;
  line-height: 1.3;
}

.smr-special__value {
  margin: 0;
  color: var(--primary, #e85d04);
  font-family: var(--font-heading, 'Lora', Georgia, serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.smr-special__text {
  margin: 0;
  color: var(--text, #333);
  font-size: .93rem;
}

.smr-special__code {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 14px;
  background: var(--bg-alt, #f8f8f8);
  border: 1px dashed var(--primary, #e85d04);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition, all .3s ease);
}

.smr-special__code:hover {
  background: var(--white, #fff);
}

.smr-special__code.is-copied {
  border-style: solid;
  background: var(--white, #fff);
}

.smr-special__code-label {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light, #777);
}

.smr-special__code-value {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--secondary, #1a1a2e);
}

.smr-special__code-hint {
  font-size: .7rem;
  color: var(--primary, #e85d04);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.smr-special__until {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--secondary, #1a1a2e);
}

.smr-special__terms {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e0e0e0);
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-light, #777);
}
