/* V8 Popup / forms — override old absolute close positioning with a dedicated row. */
html body .xmas-offer-overlay{
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important;
}
html body .xmas-offer-overlay .xmas-offer-dialog{
  box-sizing:border-box!important;
  width:min(460px,100%)!important;
  max-height:min(760px,calc(100dvh - 24px))!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  padding:18px clamp(17px,4vw,31px) 23px!important;
  border-radius:24px!important;
  scroll-padding-top:16px;
}
/* This header participates in layout, so it cannot overlap the gift even if fonts change. */
html body .xmas-offer-dialog > .xmas-popup-topbar{
  display:flex!important;position:relative!important;align-items:center!important;
  justify-content:space-between!important;gap:12px!important;
  width:100%!important;min-height:48px!important;margin:0 0 12px!important;
  padding:0 0 10px!important;border-bottom:1px solid rgba(158,203,207,.23);
  z-index:60!important;
}
html body .xmas-popup-topbar > span{
  font:800 9px/1.4 system-ui,sans-serif!important;letter-spacing:.12em;
  color:#b8e0d3!important;text-align:left;min-width:0;
}
html body .xmas-offer-dialog .xmas-popup-topbar > button.xmas-offer-close{
  position:static!important;inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  transform:none!important;float:none!important;flex:0 0 44px!important;
  display:grid!important;place-items:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  margin:0!important;border-radius:13px!important;
  background:rgba(7,37,41,.95)!important;border:1px solid rgba(213,251,249,.55)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.2),0 5px 16px rgba(0,0,0,.18)!important;
  color:#fff!important;font:700 27px/1 system-ui,sans-serif!important;cursor:pointer!important;
}
html body .xmas-offer-dialog > .xmas-offer-gift.xmas-popup-gift-centre{
  position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  margin:8px auto 15px!important;min-height:82px!important;isolation:isolate!important;
}
html body .xmas-offer-dialog .xmas-form-result,
html body .contact-form + .xmas-form-result,
html body .xpro-fallback-contact form + .xmas-form-result{
  display:block!important;width:100%!important;box-sizing:border-box;
  margin:16px 0 8px!important;padding:14px 15px!important;
  border-radius:14px!important;border:1px solid rgba(184,232,226,.40)!important;
  background:#10343a!important;color:#f9fffc!important;
  overflow-wrap:anywhere;text-align:left;
  font:600 13px/1.5 system-ui,sans-serif!important;
}
html body .xmas-form-result:empty{display:none!important}
html body .xmas-form-result p{margin:0!important;font:inherit!important;color:inherit!important;text-shadow:none!important}
html body .xmas-form-result[data-state="success"]{background:#103d35!important;border-color:#7dceaf!important;color:#f1fff5!important}
html body .xmas-form-result[data-state="error"]{background:#44231e!important;border-color:#ffb6a4!important;color:#fff5f0!important}
html body .xmas-form-result[data-state="pending"]{background:#333226!important;border-color:#e5cf9a!important;color:#fffbee!important}
html body .xmas-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px!important}
html body .xmas-form-actions a{
  text-decoration:none!important;display:inline-flex!important;align-items:center;justify-content:center;
  min-height:38px;padding:9px 11px;border-radius:9px!important;
  background:#f2dfb5!important;color:#20373b!important;
  font:800 10px/1.4 system-ui,sans-serif!important;letter-spacing:.02em!important;
}
html body .xmas-form-actions a:first-child{background:#c6f3dc!important}
html body :is(.xmas-offer-form,.contact-form,.xpro-fallback-contact form)[hidden]{display:none!important}
html body .xmas-offer-dialog .xmas-form-result[hidden]{display:none!important}
html body :is(.xmas-offer-submit,.contact-form button[type="submit"])[aria-busy="true"]{opacity:.7!important;cursor:wait!important}
html body .xmas-popup-topbar .xmas-offer-close:focus-visible{outline:3px solid #ebc787!important;outline-offset:2px!important}
html.xmas-snow-mode body .xmas-popup-topbar>span{color:#28515c!important}
html.xmas-snow-mode body .xmas-popup-topbar>.xmas-offer-close{background:#163e48!important;color:#fff!important;border-color:#a6d5e0!important}
html.xmas-snow-mode body .xmas-form-result p{color:inherit!important}
html.xmas-snow-mode body .xmas-form-actions a{color:#20373b!important}
@media(max-width:480px){
 html body .xmas-offer-overlay .xmas-offer-dialog{padding:13px 17px 20px!important;max-height:calc(100dvh - 20px)!important}
 html body .xmas-offer-dialog>.xmas-popup-topbar{margin-bottom:8px!important;padding-bottom:7px!important}
 html body .xmas-offer-dialog>.xmas-offer-gift.xmas-popup-gift-centre{margin:3px auto 11px!important}
}
