@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  src: url("assets/fonts/open-sans-latin.woff2") format("woff2");
}

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

:root {
  color-scheme: light;
  --ap-qm-navy: #0d2b50;
  --ap-qm-blue: #0d2b56;
  --ap-qm-green: #328d18;
  --ap-qm-green-cta: #79b767;
  --ap-qm-green-hover: #328d18;
  --ap-qm-text: #2f2f2f;
  --ap-qm-muted: #6b7280;
  --ap-qm-content: #f8f8f8;
  --ap-qm-offer: #dedede;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: #f1f3f5;
}

body {
  margin: 0;
  color: var(--ap-qm-text);
  background: #f1f3f5;
  font-family: "Open Sans", Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button,
summary {
  font: inherit;
}

.sr-only,
.ap-qm-widget-head > p {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ap-qm-widget {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  border-radius: 8px;
  padding: 8px;
  background: var(--ap-qm-blue);
  box-shadow: 0 2px 8px rgba(13, 43, 80, 0.12);
}

.ap-qm-widget-head {
  position: relative;
  text-align: center;
}

.ap-qm-widget-head h2 {
  margin: 0;
  padding-bottom: 8px;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2rem;
  text-transform: uppercase;
}

.ap-qm-list {
  display: grid;
  gap: 8px;
}

.ap-qm-list[hidden],
.ap-qm-status[hidden] {
  display: none;
}

.ap-qm-row {
  display: grid;
  min-width: 0;
  min-height: 360px;
  grid-template-columns: minmax(140px, 20%) minmax(0, 1fr) minmax(180px, 24%);
  overflow: hidden;
  border: 1px solid #cfd2d5;
  background: #fff;
  box-shadow: 0 4px 12px rgba(12, 45, 86, 0.08);
}

.ap-qm-partner {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #d8dadd;
  background: #fff;
}

.ap-qm-logo-wrap {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  padding: 20px 16px;
}

.ap-qm-logo-wrap img {
  display: block;
  width: min(100%, 250px);
  max-height: 70px;
  object-fit: contain;
}

.ap-qm-logo-fallback {
  color: var(--ap-qm-navy);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.ap-qm-review {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #d8dadd;
  color: #30343a;
  background: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
}

.ap-qm-review:hover {
  color: var(--ap-qm-navy);
  background: #f8fafc;
}

.ap-qm-review-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.ap-qm-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 18px 18px;
  background: var(--ap-qm-content);
}

.ap-qm-content-head {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #777;
  text-align: center;
}

.ap-qm-content-head strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.ap-qm-content-head span {
  font-size: 11px;
}

.ap-qm-content h3 {
  margin: 10px auto 0;
  color: var(--ap-qm-navy);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.ap-qm-divider {
  position: relative;
  width: min(180px, 50%);
  height: 20px;
  margin: 7px auto 3px;
}

.ap-qm-divider::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: #cdd0d3;
  content: "";
}

.ap-qm-divider span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #cdd0d3;
  font-size: 1rem;
  transform: translate(-50%, -50%);
}

.ap-qm-description {
  margin: 4px 0 12px;
  color: #41464c;
  font-size: 0.82rem;
  line-height: 1.48;
  text-wrap: pretty;
}

.ap-qm-terms-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  color: #70757b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ap-qm-terms-link:hover {
  color: var(--ap-qm-navy);
}

.ap-qm-offer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--ap-qm-offer);
}

.ap-qm-value {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-bottom: 1px solid #fff;
  padding: 10px 14px;
  text-align: center;
}

.ap-qm-value > span {
  color: #33373c;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.ap-qm-value > strong {
  color: var(--ap-qm-green);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.ap-qm-value small {
  color: #686d73;
  font-size: 10.5px;
}

.ap-qm-expiry {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-align: center;
}

.ap-qm-expiry > strong {
  color: #3e4247;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.ap-qm-countdown {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ap-qm-countdown-unit {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ap-qm-countdown-unit strong {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border-radius: 5px;
  color: #080808;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1;
}

.ap-qm-countdown-unit small {
  color: #676c72;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.ap-qm-cta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 12px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--ap-qm-green-cta);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease;
}

.ap-qm-cta:hover {
  background: var(--ap-qm-green-hover);
}

.ap-qm-cta.is-disabled {
  color: #72767a;
  background: #c7c9cb;
}

.ap-qm-cta-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
}

.ap-qm-cta-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-qm-review:focus-visible,
.ap-qm-terms-link:focus-visible,
.ap-qm-cta:focus-visible {
  outline: 3px solid rgba(25, 101, 179, 0.4);
  outline-offset: 3px;
}

.ap-qm-status {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #bdc3ca;
  padding: 30px;
  color: var(--ap-qm-muted);
  background: #fff;
  text-align: center;
}

.ap-qm-status strong {
  color: var(--ap-qm-navy);
  font-size: 1.1rem;
}

.ap-qm-row.is-skeleton {
  min-height: 430px;
  padding: 25px;
  grid-template-columns: 24% 1fr 25%;
  gap: 20px;
  background: #fff;
}

.ap-skeleton-block,
.ap-skeleton-copy,
.ap-skeleton-offer {
  border-radius: 5px;
  background: linear-gradient(90deg, #e4e6e8 25%, #f2f3f4 45%, #e4e6e8 65%);
  background-size: 220% 100%;
  animation: ap-qm-skeleton 1.4s linear infinite;
}

@keyframes ap-qm-skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@media (max-width: 760px) {
  .ap-qm-row {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-areas:
      "partner content"
      "offer offer";
  }

  .ap-qm-partner {
    grid-area: partner;
  }

  .ap-qm-content {
    grid-area: content;
  }

  .ap-qm-offer {
    display: grid;
    grid-area: offer;
    grid-template-columns: minmax(135px, 0.75fr) minmax(220px, 1.25fr) minmax(170px, 0.9fr);
    border-top: 1px solid #fff;
  }

  .ap-qm-value {
    min-height: 82px;
    border-right: 1px solid #fff;
    border-bottom: 0;
  }

  .ap-qm-expiry {
    min-height: 82px;
  }

  .ap-qm-cta {
    align-self: center;
    margin: 14px;
  }
}

@media (max-width: 620px) {
  .ap-qm-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "partner"
      "content"
      "offer";
  }

  .ap-qm-partner {
    display: grid;
    min-height: 82px;
    grid-template-columns: 1fr 145px;
    border-right: 0;
    border-bottom: 1px solid #d8dadd;
  }

  .ap-qm-logo-wrap {
    padding: 14px;
  }

  .ap-qm-logo-wrap img {
    max-height: 50px;
  }

  .ap-qm-review {
    min-height: 82px;
    border-top: 0;
    border-left: 1px solid #d8dadd;
    font-size: 11px;
  }

  .ap-qm-content {
    padding: 16px;
  }

  .ap-qm-content h3 {
    font-size: 1.55rem;
  }

  .ap-qm-offer {
    display: flex;
  }

  .ap-qm-value {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid #fff;
  }

  .ap-qm-expiry {
    min-height: 120px;
  }

  .ap-qm-countdown {
    max-width: 330px;
  }

  .ap-qm-cta {
    align-self: stretch;
    min-height: 52px;
    margin: 0 14px 14px;
  }
}

@media (max-width: 420px) {
  .ap-qm-partner {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .ap-qm-review {
    gap: 7px;
    font-size: 10px;
  }

  .ap-qm-review-icon {
    width: 27px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
