/* HCET popup notifications */
.hxp { --hxp-accent: #0a2d6e; --hxp-accent-2: #061a40; position: fixed; z-index: 2147483100; font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.55; color: #12182b; }
/* one colour only: the brand primary (navy), whatever the label says */
html.hxp-lock { overflow: hidden; }

.hxp__card { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(6,26,64,.5), 0 4px 14px rgba(6,26,64,.14); border-top: 5px solid var(--hxp-accent); }
.hxp__img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.hxp__body { padding: 24px 26px 26px; }
.hxp__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--hxp-accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hxp__title { margin: 12px 0 8px; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.55rem; line-height: 1.2; color: #061a40; }
.hxp__msg p { margin: 0 0 8px; color: #3b4763; }
.hxp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.hxp__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--hxp-accent); color: #fff !important; font-weight: 600; text-decoration: none !important; transition: background .2s, transform .2s; }
.hxp__btn:hover { background: var(--hxp-accent-2); transform: translateY(-1px); color: #fff !important; }
.hxp__later { min-height: 44px; padding: 0 12px; border: 0; background: none; color: #566078; font: inherit; font-weight: 500; cursor: pointer; border-radius: 999px; }
.hxp__later:hover { color: #12182b; text-decoration: underline; }
.hxp__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #12182b; cursor: pointer; box-shadow: 0 2px 8px rgba(6,26,64,.18); transition: background .2s, transform .2s; }
.hxp__close:hover { background: #fff; transform: scale(1.06); }
.hxp__close svg { width: 18px; height: 18px; }
.hxp__close:focus-visible, .hxp__btn:focus-visible, .hxp__later:focus-visible { outline: 3px solid #e8b84a; outline-offset: 2px; }

/* centre modal */
.hxp--center { inset: 0; display: grid; place-items: center; padding: 16px; }
.hxp__backdrop { position: absolute; inset: 0; background: rgba(6,26,64,.55); opacity: 0; transition: opacity .3s ease; }
.hxp--center .hxp__card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.hxp--center.is-in .hxp__backdrop { opacity: 1; }
.hxp--center.is-in .hxp__card { opacity: 1; transform: none; }

/* corner cards (sit above the chat button) */
.hxp--bottom-right, .hxp--bottom-left { bottom: 96px; width: min(380px, calc(100vw - 32px)); }
.hxp--bottom-right { right: 24px; }
.hxp--bottom-left { left: 24px; }
.hxp--bottom-right .hxp__card, .hxp--bottom-left .hxp__card { opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.hxp--bottom-right.is-in .hxp__card, .hxp--bottom-left.is-in .hxp__card { opacity: 1; transform: none; }
.hxp--bottom-right .hxp__body, .hxp--bottom-left .hxp__body { padding: 20px 22px 22px; }
.hxp--bottom-right .hxp__title, .hxp--bottom-left .hxp__title { font-size: 1.3rem; padding-right: 30px; }

/* top banner */
.hxp--top-banner { top: 0; left: 0; right: 0; }
.hxp--top-banner .hxp__card { border-radius: 0; border-top: 0; border-bottom: 4px solid var(--hxp-accent); transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hxp--top-banner.is-in .hxp__card { transform: none; }
.hxp--top-banner .hxp__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 64px 14px 20px; max-width: 1240px; margin: 0 auto; }
.hxp--top-banner .hxp__title { margin: 0; font-size: 1.05rem; font-family: inherit; font-weight: 700; }
.hxp--top-banner .hxp__msg { flex: 1 1 260px; }
.hxp--top-banner .hxp__msg p { margin: 0; }
.hxp--top-banner .hxp__actions { margin: 0; }
.hxp--top-banner .hxp__btn { min-height: 40px; padding: 0 18px; }
.hxp--top-banner .hxp__close { top: 50%; margin-top: -20px; }

@media (max-width: 520px) {
  .hxp--center { padding: 12px; align-items: end; }
  .hxp--center .hxp__card { border-radius: 20px; }
  .hxp__body { padding: 20px 20px 22px; }
  .hxp__title { font-size: 1.35rem; }
  .hxp__actions .hxp__btn { flex: 1 1 100%; }
  .hxp--bottom-right, .hxp--bottom-left { left: 12px; right: 12px; bottom: 84px; width: auto; }
  .hxp--top-banner .hxp__body { padding: 12px 56px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hxp__backdrop, .hxp__card, .hxp--center .hxp__card { transition: none; transform: none; }
}
