/* =====================================================================
   Holiday Banner - banner + pop-up
   Brands:  .hb--nda (navy, Poppins, pill buttons)   .hb--nma (black/red, site font, sharp corners)
   Themes:  .hb--christmas  .hb--easter  .hb--bank
   ===================================================================== */

/* ---- Elementor: make the widget/containers around the banner full width, no padding ---- */
.e-con:has(> .elementor-widget .hb),.e-con:has(> .e-con-inner > .elementor-widget .hb),.e-con-inner:has(> .elementor-widget .hb),
.elementor-widget-wrap:has(> .elementor-widget .hb),.elementor-column:has(> .elementor-widget-wrap > .elementor-widget .hb)>.elementor-element-populated,
.elementor-container:has(> .elementor-column > .elementor-widget-wrap > .elementor-widget .hb){
  --padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--gap:0px;--row-gap:0px;--column-gap:0px;--content-width:100%;--container-max-width:100%;
  padding:0 !important;gap:0 !important;max-width:100% !important;width:100% !important}
.e-con-inner:has(> .elementor-widget .hb){flex:1 1 auto !important;align-self:stretch !important}
.elementor-widget:has(.hb),.elementor-widget:has(.hb)>.elementor-widget-container,.elementor-shortcode:has(.hb){
  display:flex !important;flex-direction:column !important;flex:1 1 auto !important;align-self:stretch !important;
  width:100% !important;max-width:100% !important;margin:0 !important;padding:0 !important}

/* ---- banner ---- */
.hb{display:flex;flex-direction:column;flex:1 1 auto;width:100%;position:relative;z-index:50;color:#fff;font-size:14px;line-height:1.3;border:0;margin:0;
  font-family:"Poppins",sans-serif;
  background:radial-gradient(ellipse 60% 100% at 50% 0%,rgba(70,80,180,.32) 0%,rgba(70,80,180,0) 100%),linear-gradient(180deg,#0f1550 0%,#151f6d 100%)}
.hb *{box-sizing:border-box}
.hb:not(.is-live){display:none !important}                 /* the script switches it on when it should show */
.elementor-editor-active .hb.hb--placeholder{display:none !important}

.hb .hb__deco{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hb.hb--christmas .hb__deco::before{content:"";position:absolute;inset:0;opacity:.55;
  background-image:radial-gradient(1px 1px at 12% 30%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 27% 70%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 41% 20%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 58% 80%,#fff 50%,transparent 51%),radial-gradient(1px 1px at 69% 35%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 83% 65%,#fff 50%,transparent 51%);
  animation:hb-sparkle 4s ease-in-out infinite alternate}
@keyframes hb-sparkle{to{opacity:.25}}
.hb.hb--christmas .hb__deco::after{content:"";position:absolute;inset:-60px 0 0 0;opacity:.45;
  background-image:radial-gradient(1.6px 1.6px at 30px 12px,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 110px 40px,#fff 50%,transparent 51%),radial-gradient(2px 2px at 190px 22px,#fff 50%,transparent 51%),radial-gradient(1.3px 1.3px at 260px 50px,#fff 50%,transparent 51%);
  background-size:300px 60px;animation:hb-snow 12s linear infinite}
@keyframes hb-snow{to{transform:translate(40px,60px)}}

/* corner artwork */
.hb .hb__corner{position:absolute;top:0;height:100%;width:250px;display:block;background:left center/auto 100% no-repeat}
.hb .hb__corner--l{left:0}
.hb .hb__corner--r{right:0;transform:scaleX(-1)}
.hb.hb--christmas .hb__corner{background-image:url(img/xmas-corner.svg)}
.hb.hb--easter .hb__corner{background-image:url(img/easter-corner.svg)}
.hb.hb--bank .hb__corner{display:none}

/* falling snowflakes / petals: size --s, opacity --o, fall time --d, delay --w, drift --x */
.hb .hb__fall{position:absolute;display:block;top:0;width:var(--s,20px);height:var(--s,20px);opacity:var(--o,.85);
  background:center/contain no-repeat;animation:hb-fall var(--d,8s) linear var(--w,0s) infinite;will-change:transform}
.hb.hb--christmas .hb__fall{background-image:url(img/snowflake.svg)}
.hb.hb--easter .hb__fall{background-image:url(img/petal.svg)}
.hb.hb--easter .hb__fall:nth-child(3n){filter:hue-rotate(160deg) saturate(.8)}
.hb.hb--easter .hb__fall:nth-child(4n){filter:hue-rotate(60deg)}
.hb.hb--bank .hb__fall{display:none}
@keyframes hb-fall{
  0%{transform:translate(0,-26px) rotate(0deg)}
  25%{transform:translate(var(--x,8px),-6px) rotate(90deg)}
  50%{transform:translate(0,14px) rotate(180deg)}
  75%{transform:translate(calc(var(--x,8px) * -1),34px) rotate(270deg)}
  100%{transform:translate(0,56px) rotate(360deg)}}

/* bottom edge */
.hb .hb__edge{position:absolute;left:0;right:0;bottom:0;height:10px;z-index:2;pointer-events:none;background:0 100%/300px 10px repeat-x}
.hb.hb--nda.hb--christmas .hb__edge{background-image:url(img/snow-edge.svg);filter:drop-shadow(0 -1px 2px rgba(0,0,0,.18))}
.hb.hb--nda.hb--christmas .hb__edge::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:#fff}
.hb.hb--nda.hb--easter .hb__edge{background-image:url(img/grass-edge.svg);background-size:300px 12px;height:12px}
.hb.hb--nda.hb--bank .hb__edge{display:none}
.hb.hb--nma .hb__edge{height:6px;opacity:.85;background:conic-gradient(#fff 25%,#0d0d0f 0 50%,#fff 0 75%,#0d0d0f 0) 0 0/6px 6px}

/* bunting along the top (Bank Holiday) */
.hb .hb__bunting{display:none}
.hb.hb--bank .hb__bunting{display:block;position:absolute;left:0;right:0;top:0;height:14px;background:0 0/84px 14px repeat-x;opacity:.9}
.hb.hb--nda.hb--bank .hb__bunting{background-image:url(img/bunting-nda.svg)}
.hb.hb--nma.hb--bank .hb__bunting{background-image:url(img/bunting-nma.svg)}

/* content row */
.hb .hb__inner{flex:1 1 auto;position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:52px;padding:6px 260px 13px;margin:0}
.hb.hb--bank .hb__inner{padding:14px 24px 8px}
.hb .hb__icon{flex:none;display:block;width:24px;height:34px;background:center/contain no-repeat;filter:drop-shadow(0 0 6px rgba(255,210,94,.45))}
.hb.hb--christmas .hb__icon{background-image:url(img/xmas-tree.svg)}
.hb.hb--easter .hb__icon{background-image:url(img/easter-egg.svg)}
.hb.hb--bank .hb__icon{background-image:url(img/calendar.svg);filter:none}
.hb .hb__title{font-weight:600;font-size:17px;white-space:nowrap;color:#fff}
.hb .hb__t-s{display:none}

/* button (!important so Elementor's global button styles can't override it) */
.hb button.hb__btn,.hb button.hb__btn:hover,.hb button.hb__btn:focus,.hb button.hb__btn:active{
  flex:none;display:inline-flex !important;align-items:center !important;gap:10px !important;
  background:#fff !important;background-image:none !important;color:#1a206c !important;border:0 !important;border-radius:999px !important;
  padding:8px 16px 8px 22px !important;margin:0 !important;min-height:0 !important;width:auto !important;
  font-family:inherit !important;font-size:14px !important;font-weight:500 !important;line-height:1.3 !important;
  letter-spacing:normal !important;text-transform:none !important;text-decoration:none !important;
  box-shadow:0 2px 10px rgba(0,0,0,.25) !important;cursor:pointer;transition:transform .15s,box-shadow .15s}
.hb button.hb__btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.3) !important}
.hb button.hb__btn:focus-visible{outline:2px solid #ffd25e !important;outline-offset:2px}
.hb .hb__chev{display:inline-block;width:7px;height:7px;border-right:2px solid #1a206c;border-top:2px solid #1a206c;transform:rotate(45deg);margin-left:2px;transition:transform .2s}
.hb button.hb__btn[aria-expanded="true"] .hb__chev{transform:rotate(135deg)}

/* ---- NMA brand: black / white / #D41B34, sharp corners, capitals, site font ---- */
.hb.hb--nma{font-family:inherit;background:radial-gradient(ellipse 55% 140% at 50% 0%,rgba(212,27,52,.22),rgba(212,27,52,0) 70%),#0d0d0f}
.hb.hb--nma .hb__title{font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.hb.hb--nma button.hb__btn,.hb.hb--nma button.hb__btn:hover,.hb.hb--nma button.hb__btn:focus,.hb.hb--nma button.hb__btn:active{
  background:#D41B34 !important;color:#fff !important;border-radius:3px !important;font-size:13px !important;font-weight:700 !important;
  letter-spacing:.08em !important;text-transform:uppercase !important;padding:9px 16px 9px 18px !important;box-shadow:0 4px 14px rgba(212,27,52,.35) !important}
.hb.hb--nma button.hb__btn:hover{background:#B0152A !important}
.hb.hb--nma button.hb__btn:focus-visible{outline:2px solid #fff !important}
.hb.hb--nma .hb__chev{border-color:#fff}

/* ---- responsive ---- */
@media (max-width:1100px){.hb .hb__corner{width:180px}.hb .hb__inner{padding:6px 150px 13px}}
@media (max-width:900px){.hb .hb__corner{width:150px}.hb .hb__inner{padding:6px 110px 13px;gap:14px}
  .hb .hb__t-l{display:none}.hb .hb__t-s{display:inline}}
@media (max-width:640px){.hb .hb__fall:nth-of-type(2n){display:none}.hb .hb__corner{width:84px;opacity:.8}.hb .hb__icon{display:none}
  .hb .hb__inner{min-height:46px;padding:6px 58px 13px;gap:14px}.hb .hb__title,.hb.hb--nma .hb__title{font-size:14px}
  .hb.hb--bank .hb__inner{padding:14px 12px 8px}
  .hb button.hb__btn,.hb button.hb__btn:hover{font-size:13px !important;padding:6px 12px 6px 14px !important;gap:6px !important}
  .hb.hb--nma button.hb__btn,.hb.hb--nma button.hb__btn:hover{font-size:11.5px !important;padding:7px 10px 7px 12px !important}}
@media (max-width:640px){.hb.hb--nma .hb__title{font-size:13px}}

/* =====================================================================
   Pop-up
   ===================================================================== */
.hbm{position:fixed !important;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(8,10,40,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;
  font-family:"Poppins",sans-serif;line-height:1.4}
.hbm.is-open{opacity:1;visibility:visible}
.hbm *{box-sizing:border-box}
.hbm .hbm__card{position:relative;width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.4);
  transform:translateY(18px) scale(.96);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.hbm.is-open .hbm__card{transform:none}

.hbm .hbm__head{position:relative;overflow:hidden;color:#fff;padding:40px 70px 24px 28px;
  background:radial-gradient(ellipse 80% 120% at 30% 100%,rgba(70,90,200,.35),transparent 70%),#1a206c}
.hbm .hbm__strip{position:absolute;left:0;right:0;top:0;height:28px;background:0 -2px/auto 28px repeat-x;z-index:1;pointer-events:none}
.hbm.hb--christmas .hbm__strip{background-image:url(img/xmas-lights.png)}
.hbm.hb--easter .hbm__strip{background-image:url(img/bunting-easter.svg);background-size:120px 20px;background-position:0 0;height:20px}
.hbm.hb--nda.hb--bank .hbm__strip{background-image:url(img/bunting-nda.svg);background-size:120px 20px;background-position:0 0;height:20px}
.hbm.hb--nma.hb--bank .hbm__strip{background-image:url(img/bunting-nma.svg);background-size:120px 20px;background-position:0 0;height:20px}

.hbm .hbm__fallbox{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.hbm .hbm__fall{position:absolute;display:block;top:-30px;width:var(--s,18px);height:var(--s,18px);opacity:var(--o,.8);background:center/contain no-repeat;
  animation:hbm-fall var(--d,9s) linear var(--w,0s) infinite}
.hbm.hb--christmas .hbm__fall{background-image:url(img/snowflake.svg)}
.hbm.hb--easter .hbm__fall{background-image:url(img/petal.svg)}
.hbm.hb--easter .hbm__fall:nth-child(3n){filter:hue-rotate(160deg) saturate(.8)}
.hbm.hb--bank .hbm__fallbox{display:none}
@keyframes hbm-fall{
  0%{top:-30px;transform:translateX(0) rotate(0deg)}
  25%{transform:translateX(var(--x,10px)) rotate(90deg)}
  50%{transform:translateX(0) rotate(180deg)}
  75%{transform:translateX(calc(var(--x,10px) * -1)) rotate(270deg)}
  100%{top:100%;transform:translateX(0) rotate(360deg)}}

.hbm .hbm__icon,.hbm p.hbm__eyebrow,.hbm h2.hbm__title{position:relative;z-index:1}
.hbm .hbm__icon{display:block;width:30px;height:42px;margin:0 0 12px;background:center/contain no-repeat;filter:drop-shadow(0 0 6px rgba(255,210,94,.45))}
.hbm.hb--christmas .hbm__icon{background-image:url(img/xmas-tree.svg)}
.hbm.hb--easter .hbm__icon{background-image:url(img/easter-egg.svg)}
.hbm.hb--bank .hbm__icon{background-image:url(img/calendar.svg);filter:none}
.hbm p.hbm__eyebrow{margin:0 0 6px !important;padding:0 !important;color:#ffd25e !important;font-family:inherit !important;font-size:12px !important;font-weight:600 !important;letter-spacing:.14em !important;text-transform:uppercase !important;line-height:1.2 !important}
.hbm h2.hbm__title{margin:0 !important;padding:0 !important;font-family:inherit !important;font-size:25px !important;font-weight:700 !important;line-height:1.15 !important;color:#fff !important;text-transform:none !important;letter-spacing:normal !important}

.hbm .hbm__body{padding:22px 28px 26px}
.hbm .hbm__row{display:flex;align-items:center;gap:14px;padding:12px 14px;margin:0 0 10px;border-radius:12px;background:#f3f4fa}
.hbm .hbm__badge{flex:none;min-width:78px;text-align:center;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;padding:5px 10px;border-radius:999px;background:#a3111d}
.hbm .hbm__badge--open{background:#1f7a45}
.hbm .hbm__when{font-size:15px;font-weight:600;color:#1a206c}
.hbm .hbm__when small{display:block;font-size:12.5px;font-weight:400;color:#6b6e86;margin-top:2px}
.hbm .hbm__msg{margin:18px 0 22px !important;padding:0 !important;font-family:inherit !important;font-size:14.5px !important;line-height:1.6 !important;color:#4a4d66 !important}
.hbm .hbm__msg p{margin:0 0 8px !important}
.hbm .hbm__msg p:last-child{margin-bottom:0 !important}
.hbm .hbm__msg strong{color:#1a206c}
.hbm a.hbm__cta,.hbm a.hbm__cta:hover,.hbm a.hbm__cta:focus{display:inline-flex !important;align-items:center;gap:10px;background:#a3111d !important;color:#fff !important;text-decoration:none !important;border:0 !important;
  font-family:inherit !important;font-size:15px !important;font-weight:600 !important;padding:12px 26px !important;border-radius:999px !important;box-shadow:0 6px 16px rgba(163,17,29,.3);transition:transform .15s,background .15s,box-shadow .15s}
.hbm a.hbm__cta:hover{background:#860d17 !important;transform:translateY(-1px);box-shadow:0 8px 20px rgba(163,17,29,.38)}
.hbm a.hbm__cta::after{content:"";width:7px;height:7px;border-right:2px solid #fff;border-top:2px solid #fff;transform:rotate(45deg)}

.hbm button.hbm__close,.hbm button.hbm__close:hover,.hbm button.hbm__close:focus{position:absolute !important;top:16px;right:16px;width:38px !important;height:38px !important;min-height:0 !important;padding:0 !important;margin:0 !important;
  border-radius:50% !important;border:1px solid rgba(255,255,255,.4) !important;background:rgba(255,255,255,.14) !important;box-shadow:none !important;cursor:pointer;z-index:3;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),background .2s,border-color .2s}
.hbm button.hbm__close::before,.hbm button.hbm__close::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:2px;background:#fff;transform:translate(-50%,-50%) rotate(45deg)}
.hbm button.hbm__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.hbm button.hbm__close:hover{transform:rotate(90deg) scale(1.1);background:#a3111d !important;border-color:#a3111d !important}
.hbm button.hbm__close:active{transform:rotate(90deg) scale(.95)}
.hbm button.hbm__close:focus-visible{outline:2px solid #ffd25e !important;outline-offset:2px}

/* NMA pop-up */
.hbm.hb--nma{font-family:inherit;background:rgba(8,8,10,.8)}
.hbm.hb--nma .hbm__card{border-radius:6px}
.hbm.hb--nma .hbm__head{padding-top:46px;background:radial-gradient(ellipse 80% 120% at 25% 115%,rgba(212,27,52,.28),transparent 70%),#0d0d0f}
.hbm.hb--nma .hbm__strip{top:8px}
.hbm .hbm__chequer,.hbm .hbm__stripes{display:none}
.hbm.hb--nma .hbm__chequer{display:block;position:absolute;left:0;right:0;top:0;height:8px;z-index:2;opacity:.9;
  background:conic-gradient(#fff 25%,#0d0d0f 0 50%,#fff 0 75%,#0d0d0f 0) 0 0/8px 8px}
.hbm.hb--nma .hbm__stripes{display:block;position:absolute;top:0;bottom:0;right:-40px;width:230px;z-index:0;pointer-events:none}
.hbm.hb--nma .hbm__stripes span{position:absolute;top:-20%;height:140%;transform:skewX(-24deg);background:#D41B34}
.hbm.hb--nma .hbm__stripes span:nth-child(1){right:140px;width:9px;opacity:.35}
.hbm.hb--nma .hbm__stripes span:nth-child(2){right:104px;width:22px;opacity:.6}
.hbm.hb--nma .hbm__stripes span:nth-child(3){right:30px;width:52px;opacity:.95}
.hbm.hb--nma p.hbm__eyebrow{color:#D41B34 !important;font-weight:700 !important}
.hbm.hb--nma h2.hbm__title{font-size:24px !important;font-weight:800 !important;text-transform:uppercase !important;letter-spacing:.01em !important;line-height:1.1 !important}
.hbm.hb--nma .hbm__row{border-radius:4px;background:#f4f4f5}
.hbm.hb--nma .hbm__badge{border-radius:3px;background:#D41B34}
.hbm.hb--nma .hbm__badge--open{background:#1f8a4c}
.hbm.hb--nma .hbm__when{color:#111}
.hbm.hb--nma .hbm__when small{color:#666}
.hbm.hb--nma .hbm__msg{color:#444 !important}
.hbm.hb--nma .hbm__msg strong{color:#000}
.hbm.hb--nma a.hbm__cta,.hbm.hb--nma a.hbm__cta:hover,.hbm.hb--nma a.hbm__cta:focus{background:#D41B34 !important;border-radius:3px !important;text-transform:uppercase !important;
  letter-spacing:.08em !important;font-size:14px !important;font-weight:700 !important;box-shadow:0 6px 16px rgba(212,27,52,.3)}
.hbm.hb--nma a.hbm__cta:hover{background:#B0152A !important}
.hbm.hb--nma button.hbm__close,.hbm.hb--nma button.hbm__close:hover,.hbm.hb--nma button.hbm__close:focus{border-radius:4px !important;top:20px}
.hbm.hb--nma button.hbm__close{background:rgba(0,0,0,.35) !important}
.hbm.hb--nma button.hbm__close:hover{background:#D41B34 !important;border-color:#D41B34 !important}
.hbm.hb--nma button.hbm__close:focus-visible{outline:2px solid #fff !important}

@media (max-width:480px){
  .hbm .hbm__head{padding:36px 62px 20px 20px}.hbm h2.hbm__title{font-size:21px !important}.hbm.hb--nma h2.hbm__title{font-size:20px !important}
  .hbm .hbm__body{padding:18px 20px 22px}.hbm .hbm__when{font-size:14px}.hbm.hb--nma .hbm__stripes{width:160px;right:-60px}}

@media (prefers-reduced-motion:reduce){
  .hb.hb--christmas .hb__deco::before,.hb.hb--christmas .hb__deco::after{animation:none}
  .hb .hb__fall{animation:none;transform:translateY(16px)}
  .hbm .hbm__fall{animation:none;top:40%}
  .hbm,.hbm .hbm__card,.hbm button.hbm__close{transition:none}}
