/* eSIM.ca sticky checkout bar — floating card above the tab bar / dock.
   Loaded after chrome.css so these rules replace the old full-width strip.
   No backdrop blur. Pulse honors prefers-reduced-motion. */

body.has-chk{
  --chk:100px;
  padding-bottom:calc(var(--dock) + var(--chk));
}

.chk-space{display:none !important;height:0 !important}

.chk-bar{
  position:fixed;
  left:50%;
  right:auto;
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  z-index:38;
  width:calc(100% - 24px);
  max-width:720px;
  max-height:84px;
  transform:translateX(-50%);
  box-sizing:border-box;
  margin:0;
  background:#0b0b0b;
  color:#f4f4ee;
  border:1px solid rgba(198,255,0,.5);
  border-radius:18px;
  padding:0 !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:
    0 0 0 1px rgba(0,229,255,.22),
    0 0 12px rgba(198,255,0,.22),
    0 10px 28px rgba(0,0,0,.45);
  animation:chk-led 2.4s ease-in-out infinite;
}

.chk-bar-inner{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  min-height:64px;
  max-height:84px;
  padding:8px 10px;
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin:0;
}

.chk-offer{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1px;
  min-width:0;
  flex:1 1 auto;
}

.chk-price{
  display:block;
  font-size:16px;
  line-height:1.15;
  font-weight:800;
  color:#c6ff00;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.chk-bar .cur-note{display:none}

.chk-partner{
  display:block;
  font-size:11px;
  line-height:1.2;
  color:#b8b8ae;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chk-step{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  height:36px;
  border:1px solid #2a2a2a;
  border-radius:999px;
  overflow:hidden;
  background:#111;
}
.chk-step button{
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#c6ff00;
  font-weight:800;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.chk-step button:hover,
.chk-step button:focus-visible{background:#1a1a1a}
.chk-step button:focus-visible{outline:2px solid #c6ff00;outline-offset:-2px}
.chk-step output{
  min-width:22px;
  height:36px;
  display:grid;
  place-items:center;
  text-align:center;
  font-weight:800;
  font-size:14px;
  color:#f4f4ee;
  border-left:1px solid #2a2a2a;
  border-right:1px solid #2a2a2a;
}

.chk-promo{
  margin:0;
  flex:0 0 auto;
  background:#c6ff00;
  color:#0a0a0a;
  font-weight:800;
  font-size:10px;
  line-height:1;
  padding:5px 8px;
  border-radius:999px;
  white-space:nowrap;
  max-width:7rem;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chk-bar .chk-cta,
.chk-bar a.btn.btn-p.chk-cta{
  margin:0 0 0 auto !important;
  flex:0 0 auto;
  width:auto !important;
  min-width:0;
  min-height:48px;
  height:48px;
  padding:0 16px;
  border-radius:999px;
  background:#c6ff00;
  color:#000;
  font-weight:800;
  font-size:14.5px;
  letter-spacing:-.01em;
  white-space:nowrap;
  justify-content:center;
  align-items:center;
  box-shadow:none;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.chk-bar .chk-cta:hover,
.chk-bar a.btn.btn-p.chk-cta:hover{
  background:#fff;
  color:#000;
  box-shadow:none;
}

/* Hide leftover meta if an old template is still cached */
.chk-bar .chk-meta{display:none !important}

.chk-page-note{
  font-size:13.5px;
  color:#b8b8ae;
  line-height:1.45;
  margin:8px 0 14px;
}

@media (max-width:767px){
  .chk-bar{
    bottom:calc(var(--dock) + 8px);
    width:calc(100% - 24px);
    left:50%;
    right:auto;
  }
  body.has-chk{
    --chk:96px;
    padding-bottom:calc(var(--dock) + var(--chk));
  }
}

@media (min-width:768px) and (max-width:860px){
  .chk-bar{
    bottom:calc(var(--dock) + 8px + env(safe-area-inset-bottom,0px));
    width:calc(100% - 24px);
    left:50%;
    right:auto;
  }
  body.has-chk{
    --chk:96px;
    padding-bottom:calc(var(--dock) + var(--chk) + env(safe-area-inset-bottom,0px));
  }
}

@media (max-width:600px){
  :root,body.has-chk{--chk:96px}
  .chk-bar-inner{gap:8px;padding:8px 10px}
  .chk-price{font-size:15px}
  .chk-bar .chk-cta,
  .chk-bar a.btn.btn-p.chk-cta{padding:0 14px;width:auto !important}
}

@media (min-width:861px){
  body.has-chk{
    --chk:108px;
    padding-bottom:calc(24px + var(--chk) + env(safe-area-inset-bottom,0px));
  }
}

@keyframes chk-led{
  0%,100%{
    border-color:rgba(198,255,0,.55);
    box-shadow:
      0 0 0 1px rgba(198,255,0,.28),
      0 0 10px rgba(198,255,0,.22),
      0 0 16px rgba(0,229,255,.12),
      0 10px 28px rgba(0,0,0,.45);
  }
  50%{
    border-color:rgba(0,229,255,.65);
    box-shadow:
      0 0 0 1px rgba(0,229,255,.4),
      0 0 14px rgba(0,229,255,.28),
      0 0 22px rgba(198,255,0,.18),
      0 10px 28px rgba(0,0,0,.45);
  }
}

@media (prefers-reduced-motion:reduce){
  .chk-bar{animation:none}
}
