/* Revise Science — rs-support-card.css
   Extracted verbatim from the inline <style> block repeated on 60 pages.
   Link this file site-wide, then delete the inline block from the shared component. */

/* * Outer card
   * Matches the square information-card styling used elsewhere. */

#thank-you-support.thank-you-support {
  position: relative !important;
  margin-bottom: 23px !important;
  color: #202124 !important;
  background: #fff !important;
  border: 1.5px solid #efd77c !important;
  border-radius: 10px !important;
  box-shadow: 3px 3px 0 #000000 !important;
  overflow: hidden;
}

/* * Subtle warm left edge.
 * This sits above the header/body backgrounds, so it remains visible. */

#thank-you-support.thank-you-support::before {
  content: none;
}

/* * Complete the yellow accent at the bottom-left corner. */

#thank-you-support.thank-you-support::after {
  content: none;
}

#thank-you-support .rs-support-header {
  padding: 15px 18px 14px;
  overflow: hidden;
  background: #fffcbd;
}

/* * Remove Bootstrap Card Body spacing so our header
   * can run directly to the card edges. */

#thank-you-support > .card-body {
  padding: 0 !important;
}

#thank-you-support .rs-support-content {
  width: 100%;
}

/* * Yellow header */

#thank-you-support .rs-support-header {
  padding: 15px 18px 14px;
  background: #fffcbd;
}

#thank-you-support .rs-support-kicker {
  margin: 0 0 4px;
  color: #685a00;
  font: 700 11px/1.2 "ABeeZee", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#thank-you-support .rs-support-title {
  margin: 0;
  color: #17183b;
  font: 700 clamp(1.15rem, 2vw, 1.35rem) / 1.25 "ABeeZee", sans-serif;
  letter-spacing: -0.015em;
}

/* * White main area */

#thank-you-support .rs-support-body {
  padding: 16px 18px 14px;
  background: #fff;
}

#thank-you-support .rs-support-intro, #thank-you-support .rs-support-message {
  color: #414141;
  font-size: 0.87rem;
  line-height: 1.5;
}

#thank-you-support .rs-support-intro {
  margin: 0 0 9px;
}

/* * Promise pills */

#thank-you-support .rs-support-benefits {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0 0 12px;
}

#thank-you-support .rs-support-benefit {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  color: #303030;
  background: #f1f3f5;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
}

#thank-you-support .rs-support-message {
  margin: 0 0 14px;
}

/* * Navbar-style Support button */

#thank-you-support .rs-support-actions {
  margin: 0;
  text-align: center;
}

#thank-you-support .rs-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 13px;
  color: #202124;
  background: #ffdd00;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 14%);
  font: 600 14px/1 "ABeeZee", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

#thank-you-support .rs-support-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

#thank-you-support .rs-support-button:hover, #thank-you-support .rs-support-button:focus {
  color: #202124;
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 14px rgb(0 0 0 / 20%);
}

#thank-you-support .rs-support-button:focus:not(:hover) {
  filter: none;
  transform: none;
}

#thank-you-support .rs-support-button:active {
  transform: translateY(0) scale(0.97);
}

#thank-you-support .rs-support-button:focus-visible {
  outline: 3px solid #185abc;
  outline-offset: 2px;
}

/* * Feedback */

#thank-you-support .rs-support-feedback {
  margin: 14px 0 0;
  color: #414141;
  font-size: 12px;
  text-align: center;
}

#thank-you-support .rs-support-feedback a {
  display: inline-block;
  padding: 5px 2px;
  color: #185fa9;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
  #thank-you-support .rs-support-feedback a {
    min-height: 40px;
  }
}

#thank-you-support .rs-support-feedback a:hover, #thank-you-support .rs-support-feedback a:focus {
  text-decoration-thickness: 2px;
}

/* * Mobile */

@media (max-width: 480px) {
  #thank-you-support .rs-support-header {
    padding: 14px 16px 13px;
  }
}

@media (max-width: 480px) {
  #thank-you-support .rs-support-body {
    padding: 15px 16px 13px;
  }
}

@media (max-width: 480px) {
  #thank-you-support .rs-support-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #thank-you-support .rs-support-button {
    transition-duration: 0.01ms !important;
  }
}

/* 28 Nov: promise pills on one line everywhere (support card, support pop-up, GCSE menu). rs-support-card.js wraps the emojis in .rs-pe and sets data-rs-fit on the row: full, tight (smaller), short (no end emoji), short-tight, text (no emojis), small (smaller text) */

.rs-pe:not(.rs-pe-end) {
  margin-right: .3em;
}

.rs-pe-end {
  margin-left: .3em;
}

[data-rs-fit="short"] .rs-pe-end, [data-rs-fit="short-tight"] .rs-pe-end, [data-rs-fit="text"] .rs-pe, [data-rs-fit="small"] .rs-pe {
  display: none;
}

[data-rs-fit="tight"] > *, [data-rs-fit="short-tight"] > * {
  font-size: 11.5px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

[data-rs-fit="tight"], [data-rs-fit="short-tight"], [data-rs-fit="small"] {
  gap: 3px !important;
}

[data-rs-fit="small"] > * {
  font-size: 11px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

