/* Structural parity with the live quote table: font-face matching, natural
   card heights and six individual flip-style countdown digits. */

@font-face {
  font-display: swap;
  font-family: "Oswald AP Live";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Oswald AP Live";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
}

.ap-qm-widget-head h2,
.ap-qm-logo-fallback,
.ap-qm-review,
.ap-qm-content-head strong,
.ap-qm-content h3,
.ap-qm-value > span,
.ap-qm-value > strong,
.ap-qm-value small,
.ap-qm-expiry > strong,
.ap-qm-countdown-digits > strong,
.ap-qm-cta {
  font-family: "Oswald AP Live", "Oswald", Arial, sans-serif;
}

.ap-qm-countdown {
  grid-template-columns: repeat(3, minmax(0, 82px));
  justify-content: center;
  gap: 13px;
}

.ap-qm-countdown-unit {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto;
  justify-items: stretch;
  gap: 0;
}

.ap-qm-countdown-digits {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-inline: 2px;
}

.ap-qm-countdown-digits > strong {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.025);
  border-radius: 4px;
  color: #080808;
  background: linear-gradient(to bottom, #fff 0 49%, #fafafa 50% 100%);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.22);
  font-size: 33px;
  font-weight: 700;
  line-height: 46px;
}

.ap-qm-countdown-digits > strong::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  content: "";
}

.ap-qm-countdown-unit small {
  margin-top: 13px;
  color: #5a5d63;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 1024px) {
  .ap-qm-row:not(.is-skeleton),
  .ap-qm-content,
  .ap-qm-offer {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .ap-qm-countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ap-qm-countdown-digits {
    gap: 3px;
    padding-inline: 0;
  }
}
