/* TIP Friendly Notices — front-end
   All placements. Colours come from per-notice custom properties:
   --n-panel --n-text --n-btn --n-btnt --n-radius --n-width --n-overlay
*/

.tipfsn-root {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

.tipfsn {
  position: fixed;
  z-index: 9000;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}
.tipfsn *,
.tipfsn *::before,
.tipfsn *::after { box-sizing: border-box; }

.tipfsn.is-mounted { visibility: visible; }
.tipfsn.is-mounted .tipfsn__panel,
.tipfsn.is-mounted .tipfsn__tab,
.tipfsn.is-mounted .tipfsn__scrim { pointer-events: auto; }

/* ---------- panel shell ---------- */
.tipfsn__panel {
  position: relative;
  background: var(--n-panel, #2253A8);
  color: var(--n-text, #fff);
  border-radius: var(--n-radius, 0);
  padding: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tipfsn[data-shadow="1"] .tipfsn__panel { box-shadow: 0 24px 64px rgba(16, 41, 91, .34); }
.tipfsn[data-frame="0"] .tipfsn__panel { padding: 0; }

.tipfsn__body {
  background: #fff;
  border-radius: calc(var(--n-radius, 0) * .6);
  overflow: hidden;
}
.tipfsn[data-frame="0"] .tipfsn__body {
  background: transparent;
  border-radius: var(--n-radius, 0);
}

.tipfsn__media { display: block; }
.tipfsn__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tipfsn__content { padding: 26px 28px 28px; }
.tipfsn[data-frame="0"] .tipfsn__content { padding: 30px 32px 32px; }

.tipfsn__heading {
  margin: 0 0 14px;
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--n-panel, #2253A8);
}
.tipfsn[data-frame="0"] .tipfsn__heading { color: var(--n-text, #fff); }

.tipfsn__text {
  font-size: 16.5px;
  line-height: 1.68;
  color: #5D6A82;
}
.tipfsn[data-frame="0"] .tipfsn__text { color: var(--n-text, #fff); opacity: .92; }
.tipfsn__text p { margin: 0 0 .55em; text-wrap: pretty; }
.tipfsn__text p:last-child { margin-bottom: 0; }
.tipfsn__text strong {
  display: block;
  margin-bottom: .35em;
  color: #8A94A8;
  font-weight: 600;
}
.tipfsn[data-frame="0"] .tipfsn__text strong { color: inherit; }
.tipfsn__text a { color: var(--n-panel, #2253A8); text-decoration: underline; }
.tipfsn[data-frame="0"] .tipfsn__text a { color: inherit; }

.tipfsn__form { margin-top: 18px; }

.tipfsn__cta {
  display: block;
  margin-top: 22px;
  padding: 17px 24px;
  background: var(--n-btn, #ED1C24);
  color: var(--n-btnt, #fff);
  border-radius: calc(var(--n-radius, 0) * .5);
  font-family: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.tipfsn__cta:hover { filter: brightness(.92); color: var(--n-btnt, #fff); }
.tipfsn__cta:active { transform: translateY(1px); }

.tipfsn__sec {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #7C89A0;
  text-decoration: underline;
}
.tipfsn[data-frame="0"] .tipfsn__sec { color: var(--n-text, #fff); opacity: .8; }

/* ---------- countdown ---------- */
.tipfsn__count { margin: 0 0 18px; }
.tipfsn__count-label {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7C89A0;
  margin-bottom: 8px;
}
.tipfsn__count-clock { display: flex; gap: 10px; }
.tipfsn__count-clock > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  background: #F4F7FC;
  border-radius: 8px;
}
.tipfsn[data-frame="0"] .tipfsn__count-clock > span { background: rgba(255,255,255,.14); }
.tipfsn__count-clock b {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--n-panel, #2253A8);
}
.tipfsn[data-frame="0"] .tipfsn__count-clock b { color: var(--n-text, #fff); }
.tipfsn__count-clock i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7C89A0;
}
.tipfsn[data-frame="0"] .tipfsn__count-clock i { color: var(--n-text, #fff); opacity: .7; }

/* ---------- close button + ring ---------- */
.tipfsn__x {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #10295B;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.tipfsn__x:hover { background: #fff; transform: scale(1.06); }
.tipfsn__x > svg:last-child { width: 17px; height: 17px; }
.tipfsn[data-frame="0"] .tipfsn__x { background: rgba(0, 0, 0, .18); color: var(--n-text, #fff); }
.tipfsn[data-frame="0"] .tipfsn__x:hover { background: rgba(0, 0, 0, .3); }

.tipfsn__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.tipfsn__ring circle { fill: none; stroke-width: 3; }
.tipfsn__ring-track { stroke: rgba(16, 41, 91, .16); }
.tipfsn__ring-fill {
  stroke: var(--n-btn, #ED1C24);
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  stroke-dashoffset: 0;
}
.tipfsn.is-open .tipfsn__ring-fill {
  animation-name: tipfsn-ring;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes tipfsn-ring {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 106.8; }
}

/* ---------- scrim ---------- */
.tipfsn__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 48, var(--n-overlay, .55));
  opacity: 0;
  transition: opacity .32s ease;
}
.tipfsn.is-open .tipfsn__scrim { opacity: 1; }

/* ---------- collapse tab ---------- */
.tipfsn__tab {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 11px;
  border: 0;
  background: var(--n-panel, #2253A8);
  color: var(--n-text, #fff);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  transition: filter .15s ease;
}
.tipfsn__tab:hover { filter: brightness(1.12); }
.tipfsn__tab-label { text-transform: uppercase; }
.tipfsn__tab-chev svg { display: block; width: 15px; height: 15px; }

/* ---------- placement: side panel ---------- */
.tipfsn[data-placement="side_panel"] {
  top: 50%;
  width: min(var(--n-width, 420px), calc(100vw - 56px));
  transform: translateY(-50%);
  transition: transform .52s cubic-bezier(.22, .8, .28, 1);
}
.tipfsn[data-placement="side_panel"][data-side="left"] { left: 0; }
.tipfsn[data-placement="side_panel"][data-side="right"] { right: 0; }

.tipfsn[data-placement="side_panel"][data-side="left"]  { transform: translate(-100%, -50%); }
.tipfsn[data-placement="side_panel"][data-side="right"] { transform: translate(100%, -50%); }
.tipfsn[data-placement="side_panel"].is-open { transform: translate(0, -50%); }

.tipfsn[data-placement="side_panel"] .tipfsn__tab {
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
}
.tipfsn[data-placement="side_panel"][data-side="left"] .tipfsn__tab {
  left: 100%;
  border-radius: 0 var(--n-radius, 0) var(--n-radius, 0) 0;
}
.tipfsn[data-placement="side_panel"][data-side="right"] .tipfsn__tab {
  right: 100%;
  border-radius: var(--n-radius, 0) 0 0 var(--n-radius, 0);
}
.tipfsn[data-placement="side_panel"][data-side="right"] .tipfsn__tab-chev { transform: rotate(180deg); }
.tipfsn[data-placement="side_panel"].is-collapsed[data-side="left"] .tipfsn__tab-chev { transform: rotate(180deg); }
.tipfsn[data-placement="side_panel"].is-collapsed[data-side="right"] .tipfsn__tab-chev { transform: none; }

/* ---------- placement: corner toast ---------- */
.tipfsn[data-placement="toast"] {
  bottom: 24px;
  width: min(var(--n-width, 380px), calc(100vw - 32px));
  transition: transform .45s cubic-bezier(.22, .8, .28, 1), opacity .3s ease;
  opacity: 0;
}
.tipfsn[data-placement="toast"][data-side="left"] { left: 24px; transform: translateY(28px); }
.tipfsn[data-placement="toast"][data-side="right"] { right: 24px; transform: translateY(28px); }
.tipfsn[data-placement="toast"].is-open { transform: none; opacity: 1; }
.tipfsn[data-placement="toast"].is-collapsed { opacity: 1; }
.tipfsn[data-placement="toast"].is-collapsed .tipfsn__panel { display: none; }
.tipfsn[data-placement="toast"] .tipfsn__tab {
  position: static;
  writing-mode: horizontal-tb;
  padding: 13px 20px;
  border-radius: var(--n-radius, 0);
  letter-spacing: .14em;
  display: none;
}
.tipfsn[data-placement="toast"].is-collapsed .tipfsn__tab { display: flex; }
.tipfsn[data-placement="toast"] .tipfsn__heading { font-size: 21px; }
.tipfsn[data-placement="toast"] .tipfsn__content { padding: 20px 22px 22px; }

/* ---------- placement: bottom bar ---------- */
.tipfsn[data-placement="bar"] {
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22, .8, .28, 1);
}
.tipfsn[data-placement="bar"].is-open { transform: none; }
.tipfsn[data-placement="bar"] .tipfsn__panel {
  padding: 0;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}
.tipfsn[data-placement="bar"] .tipfsn__body {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  background: transparent;
  border-radius: 0;
}
.tipfsn[data-placement="bar"] .tipfsn__media {
  flex: 0 0 auto;
  width: 54px;
  align-self: center;
}
.tipfsn[data-placement="bar"] .tipfsn__media img { border-radius: 8px; }
.tipfsn[data-placement="bar"] .tipfsn__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding: 18px 64px 18px 0;
}
.tipfsn[data-placement="bar"] .tipfsn__heading {
  margin: 0;
  font-size: 19px;
  color: var(--n-text, #fff);
  flex: 0 0 auto;
}
.tipfsn[data-placement="bar"] .tipfsn__text {
  flex: 1 1 260px;
  font-size: 15.5px;
  color: var(--n-text, #fff);
  opacity: .9;
}
.tipfsn[data-placement="bar"] .tipfsn__cta {
  margin: 0;
  flex: 0 0 auto;
  padding: 13px 26px;
  font-size: 14.5px;
}
.tipfsn[data-placement="bar"] .tipfsn__sec { margin: 0; color: var(--n-text, #fff); }
.tipfsn[data-placement="bar"] .tipfsn__count { margin: 0; }
.tipfsn[data-placement="bar"] .tipfsn__x {
  top: 50%;
  right: clamp(20px, 4vw, 64px);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .16);
  color: var(--n-text, #fff);
}
.tipfsn[data-placement="bar"] .tipfsn__x:hover { background: rgba(255, 255, 255, .28); transform: translateY(-50%) scale(1.06); }

/* ---------- placement: centre modal ---------- */
.tipfsn[data-placement="modal"] {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.tipfsn[data-placement="modal"] .tipfsn__panel {
  position: relative;
  width: min(var(--n-width, 560px), 100%);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22, .8, .28, 1);
}
.tipfsn[data-placement="modal"].is-open .tipfsn__panel { opacity: 1; transform: none; }

/* ---------- placement: full-screen takeover ---------- */
.tipfsn[data-placement="takeover"] {
  inset: 0;
  display: grid;
  place-items: center;
}
.tipfsn[data-placement="takeover"] .tipfsn__panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  display: grid;
  place-items: center;
  border-radius: 0;
  opacity: 0;
  transition: opacity .38s ease;
}
.tipfsn[data-placement="takeover"].is-open .tipfsn__panel { opacity: 1; }
.tipfsn[data-placement="takeover"] .tipfsn__body {
  width: min(720px, 100%);
  background: transparent;
}
.tipfsn[data-placement="takeover"] .tipfsn__content { text-align: center; padding: 32px; }
.tipfsn[data-placement="takeover"] .tipfsn__heading {
  font-size: clamp(30px, 5vw, 52px);
  color: var(--n-text, #fff);
}
.tipfsn[data-placement="takeover"] .tipfsn__text {
  font-size: 18px;
  color: var(--n-text, #fff);
  opacity: .92;
}
.tipfsn[data-placement="takeover"] .tipfsn__media img { max-height: 34vh; object-fit: contain; }
.tipfsn[data-placement="takeover"] .tipfsn__cta { display: inline-block; margin-inline: auto; padding-inline: 44px; }
.tipfsn[data-placement="takeover"] .tipfsn__x {
  background: rgba(255, 255, 255, .18);
  color: var(--n-text, #fff);
  top: 28px;
  right: 28px;
}

/* ---------- placement: inline banner ---------- */
.tipfsn[data-placement="inline"] {
  position: relative;
  width: 100%;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.tipfsn[data-placement="inline"].is-open { max-height: 420px; }
.tipfsn[data-placement="inline"] .tipfsn__panel {
  padding: 0;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}
.tipfsn[data-placement="inline"] .tipfsn__body {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 64px);
  background: transparent;
  border-radius: 0;
}
.tipfsn[data-placement="inline"] .tipfsn__media { flex: 0 0 auto; width: 46px; }
.tipfsn[data-placement="inline"] .tipfsn__content {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0 56px 0 0;
}
.tipfsn[data-placement="inline"] .tipfsn__heading {
  margin: 0;
  font-size: 17px;
  color: var(--n-text, #fff);
}
.tipfsn[data-placement="inline"] .tipfsn__text {
  font-size: 15.5px;
  color: var(--n-text, #fff);
  opacity: .9;
}
.tipfsn[data-placement="inline"] .tipfsn__cta { margin: 0; padding: 11px 22px; font-size: 13.5px; }
.tipfsn[data-placement="inline"] .tipfsn__sec { margin: 0; color: var(--n-text, #fff); }
.tipfsn[data-placement="inline"] .tipfsn__x {
  top: 50%;
  right: clamp(20px, 4vw, 64px);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .16);
  color: var(--n-text, #fff);
}
.tipfsn[data-placement="inline"] .tipfsn__x:hover { background: rgba(255, 255, 255, .3); transform: translateY(-50%) scale(1.06); }

/* ---------- body lock ---------- */
body.tipfsn-locked { overflow: hidden; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .tipfsn__media--desktop-only { display: none; }

  .tipfsn[data-placement="side_panel"],
  .tipfsn[data-placement="toast"] {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(100%);
  }
  .tipfsn[data-placement="side_panel"].is-open,
  .tipfsn[data-placement="toast"].is-open { transform: none; }

  .tipfsn[data-placement="side_panel"] .tipfsn__panel,
  .tipfsn[data-placement="toast"] .tipfsn__panel {
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
    padding: 10px;
  }
  .tipfsn[data-placement="side_panel"] .tipfsn__tab {
    position: absolute;
    top: auto;
    bottom: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    writing-mode: horizontal-tb;
    padding: 10px 26px;
    border-radius: 12px 12px 0 0;
  }
  .tipfsn[data-placement="side_panel"] .tipfsn__tab-chev { transform: rotate(90deg); }
  .tipfsn[data-placement="side_panel"].is-collapsed .tipfsn__tab-chev { transform: rotate(-90deg); }

  .tipfsn__heading { font-size: 22px; }
  .tipfsn__text { font-size: 15.5px; }
  .tipfsn__content { padding: 20px 20px 22px; }
  .tipfsn__cta { padding: 15px 20px; font-size: 15px; }
  .tipfsn__x { top: 16px; right: 16px; width: 44px; height: 44px; }

  .tipfsn[data-placement="bar"] .tipfsn__body,
  .tipfsn[data-placement="inline"] .tipfsn__body { gap: 14px; }
  .tipfsn[data-placement="bar"] .tipfsn__content,
  .tipfsn[data-placement="inline"] .tipfsn__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 48px 14px 0;
  }
  .tipfsn[data-placement="bar"] .tipfsn__media,
  .tipfsn[data-placement="inline"] .tipfsn__media { display: none; }
  .tipfsn[data-placement="bar"] .tipfsn__cta,
  .tipfsn[data-placement="inline"] .tipfsn__cta { width: 100%; }
  .tipfsn[data-placement="inline"].is-open { max-height: 560px; }

  .tipfsn[data-placement="modal"] { padding: 14px; }
  .tipfsn[data-placement="takeover"] .tipfsn__content { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tipfsn,
  .tipfsn__panel,
  .tipfsn__scrim,
  .tipfsn__tab { transition-duration: .01ms !important; }
  .tipfsn.is-open .tipfsn__ring-fill { animation: none; }
}


/* ==========================================================================
   Mobile hardening — the 640px block above handles placement; these are the
   cases that still broke on a real phone.
   ========================================================================== */
@media (max-width: 640px) {
	/* Several concurrent side panels stacked their edge tabs down the screen.
	   Only the first keeps a visible tab; the rest are reachable once it closes. */
	.tipfsn-root .tipfsn[data-placement="side_panel"].is-collapsed ~ .tipfsn[data-placement="side_panel"].is-collapsed { display: none; }

	/* Modals and takeovers must never exceed the viewport, and must scroll. */
	.tipfsn[data-placement="modal"] .tipfsn__panel,
	.tipfsn[data-placement="takeover"] .tipfsn__panel {
		max-width: calc(100vw - 24px);
		max-height: 88vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.tipfsn[data-placement="takeover"] .tipfsn__heading { font-size: 24px; line-height: 1.2; }

	/* Corner cards run full width with a small inset. */
	.tipfsn[data-placement="corner"] {
		left: 12px; right: 12px; width: auto; max-width: none;
	}
	.tipfsn[data-placement="corner"] .tipfsn__panel { border-radius: 14px; }

	/* Artwork never forces a sideways scroll. */
	.tipfsn__media,
	.tipfsn__media img { max-width: 100%; height: auto; }

	/* Countdown digits wrap instead of overflowing their row. */
	.tipfsn__count { flex-wrap: wrap; row-gap: 6px; }
	.tipfsn__count-clock { font-size: 20px; letter-spacing: 0; }
	.tipfsn__count-label { font-size: 12px; }

	/* Every dismiss and action target is thumb-sized. */
	.tipfsn__x { min-width: 44px; min-height: 44px; }
	.tipfsn__cta,
	.tipfsn__sec { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.tipfsn__sec { width: 100%; }

	/* Forms inside a notice stack and use full-width fields. */
	.tipfsn__form { flex-direction: column; align-items: stretch; gap: 10px; }
	.tipfsn__form input,
	.tipfsn__form button { width: 100%; min-height: 44px; font-size: 16px; }

	/* A notice must not sit under the phone's home indicator. */
	.tipfsn[data-placement="side_panel"] .tipfsn__panel,
	.tipfsn[data-placement="toast"] .tipfsn__panel,
	.tipfsn[data-placement="bar"] .tipfsn__panel {
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}
}

/* Very small screens — tighten type and padding once more. */
@media (max-width: 380px) {
	.tipfsn__heading { font-size: 20px; }
	.tipfsn__text { font-size: 15px; }
	.tipfsn__content { padding: 16px 16px 18px; }
	.tipfsn[data-placement="modal"] { padding: 10px; }
}


/* mobile hardening v2 — placements that still needed narrow-screen rules */
@media (max-width: 640px) {
	/* Side panels become full-width sheets docked to the bottom of the screen. */
	.tipfsn[data-placement="side_panel"] {
		left: 0; right: 0; top: auto; bottom: 0;
		width: auto; max-width: none; transform: none;
	}
	.tipfsn[data-placement="side_panel"] .tipfsn__panel {
		width: auto; max-width: none; max-height: 82vh; overflow-y: auto;
		border-radius: 16px 16px 0 0;
	}
	/* The vertical edge tab reads as a horizontal handle above the sheet. */
	.tipfsn[data-placement="side_panel"] .tipfsn__tab,
	.tipfsn[data-placement="toast"] .tipfsn__tab {
		writing-mode: horizontal-tb;
		left: 50%; right: auto; top: auto; bottom: 100%;
		transform: translateX(-50%);
		border-radius: 10px 10px 0 0;
		padding: 8px 18px;
	}
	/* Toast/corner cards inset full width. */
	.tipfsn[data-placement="toast"] {
		left: 12px; right: 12px; width: auto; max-width: none;
	}
	.tipfsn[data-placement="toast"] .tipfsn__panel { width: auto; max-width: none; border-radius: 14px; }
	/* Bottom bar stacks its copy and action. */
	.tipfsn[data-placement="bar"] .tipfsn__content {
		flex-direction: column; align-items: flex-start; gap: 12px;
	}
	.tipfsn__cta, .tipfsn__sec { width: 100%; text-align: center; }
	/* Close target stays comfortably tappable. */
	.tipfsn__x { width: 44px; height: 44px; }
}


/* mobile hardening v3 — tab was overflowing the viewport; sheet needed edge padding */
@media (max-width: 640px) {
	/* The sheet itself keeps a small inset so nothing touches the screen edge. */
	.tipfsn[data-placement="side_panel"],
	.tipfsn[data-placement="toast"] {
		left: 0 !important; right: 0 !important;
		top: auto !important; bottom: 0 !important;
		width: auto !important; max-width: none !important;
		transform: none !important;
		padding: 0 !important;
	}
	.tipfsn[data-placement="side_panel"] .tipfsn__panel,
	.tipfsn[data-placement="toast"] .tipfsn__panel {
		width: auto !important; max-width: none !important;
		margin: 0 !important;
		border-radius: 18px 18px 0 0 !important;
		max-height: 80vh !important; overflow-y: auto !important;
	}
	/* Horizontal handle, fully inside the viewport, centred above the sheet. */
	.tipfsn[data-placement="side_panel"] .tipfsn__tab,
	.tipfsn[data-placement="toast"] .tipfsn__tab {
		writing-mode: horizontal-tb !important;
		text-orientation: mixed !important;
		position: absolute !important;
		left: 50% !important; right: auto !important;
		top: auto !important; bottom: 100% !important;
		transform: translateX(-50%) !important;
		width: auto !important; max-width: calc(100vw - 32px) !important;
		height: auto !important; min-height: 40px !important;
		padding: 9px 20px !important;
		border-radius: 12px 12px 0 0 !important;
		white-space: nowrap !important;
		justify-content: center !important;
	}
	.tipfsn__tab-label { writing-mode: horizontal-tb !important; transform: none !important; letter-spacing: .1em !important; }
	.tipfsn__tab-chev { transform: rotate(-90deg) !important; }
	.tipfsn.is-collapsed .tipfsn__tab-chev { transform: rotate(90deg) !important; }

	/* Breathing room inside the sheet and clear of the close button. */
	.tipfsn__content { padding: 20px 20px 24px !important; }
	.tipfsn__heading { padding-right: 56px !important; }
	.tipfsn__x { top: 12px !important; right: 12px !important; }
	.tipfsn__count-clock { gap: 8px !important; }
}


/* mobile: no edge tab — the X is the only close affordance below 640px */
@media (max-width: 640px) {
	.tipfsn__tab { display: none !important; }
	/* With no tab to reopen from, collapsing has no meaning on a phone: dismiss outright. */
	.tipfsn.is-collapsed { display: none !important; }
}
