/* Restore only sizes lowered by the two purchase/header releases.
   The return control originally inherited .91rem from .sf-return-nav.
   It remains in the header, with its existing touch target and states. */
#sf-global-header .sf-course-header-nav .sf-return-nav [data-sf-back],
#site-header .sf-store-header-nav .sf-return-nav [data-sf-back],
header .sf-store-compact-nav .sf-return-nav [data-sf-back] {
  font-size: .91rem;
}

/* The course templates use 14px for price notes. The newly split-out VAT
   suffix in the mode selector follows the size of its associated price. */
#course-master .cm-mobile-buy #cm-mobile-label,
#course-master .cm-mobile-buy .sf-mobile-vat {
  font-size: max(14px, .875rem);
}
#course-master .cm-mode-option b small {
  font-size: 1em;
}

/* Before the purchase release the amount was 23px at <=480px and 22px
   above it. At wider sizes the new clamp is already larger; retain it.
   Within this breakpoint its value may also exceed the old 23px floor. */
@media (max-width: 480px) {
  #course-master .cm-mobile-buy #cm-mobile-price {
    font-size: max(23px, 1.4375rem, clamp(17px, 4.8vw, 24px));
  }
}

/* At phone widths the promotion is a column. A desktop flex-basis of
   220px on its title must no longer reserve 220px of vertical space. */
@media (max-width: 640px) {
  #corsi-evidenza .promotion.promo-deadline:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 16px;
  }
  #corsi-evidenza .promo-deadline > .promotion-text {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
  }
  #corsi-evidenza .promo-deadline #promotion-status {
    margin-block: 0;
  }
  #corsi-evidenza .promo-deadline #countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    margin: 0;
  }
  #corsi-evidenza .promo-deadline #countdown > i {
    display: none;
  }
  #corsi-evidenza .promo-deadline #countdown > div {
    min-width: 0;
    text-align: center;
    align-items: center;
  }
  #corsi-evidenza .promo-deadline #countdown span {
    color: #edf3f2;
    letter-spacing: .02em;
    text-transform: none;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  #corsi-evidenza .promo-deadline #countdown b {
    color: #ffdaa2;
    font-variant-numeric: tabular-nums;
  }
}
