/* Top 97.0: the share menu and consents on the thanks page, the shared list page, the banner extras. */

.share-menu { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 4px; }
.share-menu__open { gap: 10px; }
.share-menu__open .icon { font-size: 20px; }

.share-sheet {
  width: 100%;
  max-width: 520px;
  padding: 18px 18px 14px;
  border-radius: var(--radius);
  background: var(--tile);
  text-align: left;
}

.share-sheet__title { margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.share-sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }

.share-dest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 84px;
  padding: 8px 4px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.share-dest:hover { background: var(--surface); }
.share-dest:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 1px; }
.share-dest[aria-busy='true'] { cursor: progress; opacity: 0.7; }

.share-dest__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--maroon);
  color: #fff;
  font-size: 22px;
}

.share-dest__label { font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; }

.share-dest--facebook .share-dest__icon { background: #1b4fa8; }
.share-dest--instagram .share-dest__icon { background: linear-gradient(45deg, #c13584 0%, #a1206b 55%, #5b2ca0 100%); }
.share-dest--story .share-dest__icon { background: linear-gradient(200deg, #c13584 0%, #b3265e 50%, #e1306c 100%); }
.share-dest--snapchat .share-dest__icon { background: #fffc00; color: var(--black); }
.share-dest--whatsapp .share-dest__icon { background: #137a3d; }
.share-dest--linkedin .share-dest__icon { background: #0a66c2; }
.share-dest--copy .share-dest__icon,
.share-dest--save .share-dest__icon { background: #4a4a4a; }

.share-sheet__status { min-height: 20px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.share-sheet__status:empty { min-height: 0; margin: 0; }
.share-sheet__status.is-error { color: var(--red-dark); }
.share-sheet__note { margin-top: 10px; font-size: 13px; color: var(--text-3); }

.thanks__more { margin-top: 16px; }

/* Consents and the share link, each with its own withdraw button. */
.consents { display: flex; flex-direction: column; }
.consents__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.consents__row:last-child { border-bottom: 0; }
.consents__row > span strong { display: block; font-size: 15px; }
.consents__row > span span { display: block; font-size: 14px; color: var(--text-3); }

/* The shared list: the campaign's own dark card above, a call to action below. */
.shared-card {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: var(--radius-hero);
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--maroon) 78%);
  color: #fff;
}

.shared-card > .t970-mark {
  position: absolute;
  right: -10px;
  bottom: -38px;
  font-size: 170px;
  font-weight: 800;
  letter-spacing: -6px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.shared-card > * { position: relative; z-index: 1; }
.shared-card__brand { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.shared-card__title { margin: 8px 0 6px; font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; overflow-wrap: anywhere; }
.shared-card__lead { max-width: 560px; margin-bottom: 18px; font-size: 16.5px; }

.shared-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.shared-cta .shared-card__brand { color: var(--red-dark); }
.shared-cta__text { font-size: 17px; font-weight: 700; }

/* Homepage banner watermark and the rail card's kicker. */
.top970-promo { position: relative; overflow: hidden; }
.top970-promo .promo__row { position: relative; z-index: 1; }
.top970-promo > .t970-mark { font-size: 150px; bottom: -36px; }
.top970-promo { cursor: pointer; transition: filter 0.15s ease; }
.top970-promo:hover { filter: brightness(1.08); }
.top970-promo .promo__row { position: static; }
.top970-promo .promo__row > div { position: relative; z-index: 1; pointer-events: none; }
.top970-promo__cta { position: static; z-index: 2; }
.top970-promo__cta::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.top970-promo .pill--xl { height: 64px; padding: 0 36px; font-size: 19px; gap: 12px; }
@media (max-width: 640px) { .top970-promo .pill--xl { width: 100%; justify-content: center; height: 58px; font-size: 18px; } }
.side--top970__kicker { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red-dark); }

.terms-placeholder { margin: 6px 0 18px; }

@media (max-width: 480px) {
  .share-sheet { padding: 14px 10px 12px; }
  .share-sheet__grid { gap: 8px 2px; }
  .share-dest__icon { width: 44px; height: 44px; font-size: 20px; }
  .shared-card { padding: 24px 18px; }
  .shared-card__title { font-size: 28px; }
  .consents__row { flex-wrap: wrap; }
}
