/* Reuse the blue, full-width placement of Nihongo's 2025 Black Friday promo
   and the labeled countdown units from the Transcrybe sale banner. */
.sale-banner {
  padding: 24px 0;
  background: #0671d4;
  color: #ffffff;
}

.sale-banner[hidden] {
  display: none;
}

.sale-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sale-copy {
  flex: 1 1 0;
  min-width: 0;
}

.sale-badge {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sale-banner .sale-heading {
  margin: 6px 0 10px;
  color: inherit;
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.sale-banner p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.sale-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

.sale-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.sale-countdown-prefix {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.sale-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: #05559f;
}

.sale-countdown-value {
  min-width: 2ch;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sale-countdown-label {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sale-banner .sale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #05559f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.sale-banner .sale-button:hover {
  text-decoration: underline;
}

.sale-banner .sale-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
  text-decoration: underline;
}

@media (max-width: 979px) {
  .sale-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .sale-actions {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .sale-banner {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
