/* The lower purchase surfaces share the campaign bar's blue finish. */
:root { --ha-dock-height: 84px; --ha-dock-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
#ha-mobile-purchase {
  inset: auto max(12px, env(safe-area-inset-right, 0px)) var(--ha-dock-bottom) max(12px, env(safe-area-inset-left, 0px));
  width: auto; max-width: 720px; height: var(--ha-dock-height); min-height: 0; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 16px; isolation: isolate; border: 1px solid #548fc05e; border-radius: 18px;
  background: radial-gradient(ellipse at 5% -90%, #1765aa85, transparent 68%), linear-gradient(110deg, #0b1d32f5, #081220fa 70%);
  box-shadow: inset 0 1px 0 #b8dfff1c, 0 -6px 32px #148bfa16, 0 12px 32px #0008;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: ha-dock-arrive 320ms cubic-bezier(.16,1,.3,1) backwards;
}
#ha-mobile-purchase::after {
  content: ""; position: absolute; inset: -1px 14% auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #6dbbffa6 30%, #c8eeff 50%, #6dbbffa6 70%, transparent);
}
#ha-mobile-purchase [hidden] { display: none !important; }
#ha-mobile-purchase .ha-mobile-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
#ha-mobile-purchase .ha-mobile-title { color: #cee6fb; font-size: 11px; line-height: 1.2; letter-spacing: 0; font-weight: 500; }
#ha-mobile-purchase .ha-mobile-prices { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
#ha-mobile-purchase .ha-mobile-prices s { color: #8ca5bf; font-size: 13px; line-height: 1; text-decoration-thickness: 1px; }
#ha-mobile-purchase .ha-mobile-prices strong { color: #fff; font-size: 29px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#ha-mobile-purchase [data-mobile-price-caption] { color: #a8bfd8; font-size: 10px; line-height: 1.2; white-space: nowrap; }
#ha-mobile-purchase .ha-mobile-checkout {
  position: relative; isolation: isolate; overflow: hidden; gap: 9px; min-width: 0; min-height: 52px;
  padding: 14px 16px; border-radius: 11px; border: 1px solid #67bdff;
  background: linear-gradient(180deg, #1176d5, #095fbd); color: #fff;
  box-shadow: inset 0 1px 0 #c1e6ff45, 0 5px 19px #138bf747, 0 0 30px #1a98ff26;
  font: 600 13px/1.3 Inter, sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform 180ms cubic-bezier(.16,1,.3,1), box-shadow 180ms;
}
#ha-mobile-purchase .ha-mobile-checkout::before, #ha-offer-reminder::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, #fff3 50%, transparent 75%);
  transform: translateX(-140%); animation: ha-campaign-sheen 8s 1s ease-in-out infinite;
}
#ha-mobile-purchase .ha-mobile-checkout > *, #ha-offer-reminder > * { position: relative; z-index: 1; }
#ha-mobile-purchase .ha-mobile-checkout svg { width: 18px; height: 18px; flex: 0 0 18px; transition: transform 180ms; }
#ha-mobile-purchase .ha-mobile-checkout:active { transform: scale(.98); }
#ha-mobile-purchase .ha-mobile-checkout[aria-disabled="true"] { background: #26384b; color: #b1bed1; border-color: #455b73; box-shadow: none; transform: none; cursor: not-allowed; }
#ha-mobile-purchase .ha-mobile-checkout[aria-disabled="true"]::before { display: none; }
#ha-offer-reminder {
  min-height: 50px; gap: 10px; padding: 7px 13px 7px 7px; overflow: hidden; isolation: isolate;
  border: 1px solid #5dafff7a; border-radius: 15px;
  background: linear-gradient(115deg, #103655, #0a1a2e 75%); color: #eff8ff;
  box-shadow: inset 0 1px 0 #bde9ff26, 0 5px 24px #07172d99, 0 0 26px #1592ff26;
  font: 600 13px/1.3 Inter, sans-serif;
  animation: ha-dock-arrive 320ms cubic-bezier(.16,1,.3,1) backwards;
  transition: transform 180ms cubic-bezier(.16,1,.3,1), border-color 180ms, box-shadow 180ms;
}
#ha-offer-reminder::after { animation-delay: 3.5s; }
#ha-offer-reminder .ha-reminder-ticket {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #6dc3ff85; border-radius: 9px;
  color: #e3f5ff; background: linear-gradient(160deg, #1688e0, #095ca9); box-shadow: inset 0 1px 0 #e1f5ff36, 0 0 16px #259dff3d;
}
#ha-offer-reminder .ha-reminder-arrow { flex: 0 0 17px; color: #b6e2ff; transition: transform 180ms; }
#ha-offer-reminder:active { transform: scale(.97); }
body:has(#ha-mobile-purchase:not([hidden])) { padding-bottom: calc(var(--ha-dock-height) + var(--ha-dock-bottom) + 12px); }
body:has(#ha-mobile-purchase:not([hidden])) #ha-offer-reminder { bottom: calc(var(--ha-dock-height) + var(--ha-dock-bottom) + 12px); right: max(16px, env(safe-area-inset-right, 0px)); }
@media (hover: hover) and (pointer: fine) {
  #ha-mobile-purchase .ha-mobile-checkout:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 #c1e6ff66, 0 6px 25px #138bf770, 0 0 36px #1a98ff40; }
  #ha-mobile-purchase .ha-mobile-checkout:hover svg, #ha-offer-reminder:hover .ha-reminder-arrow { transform: translateX(3px); }
  #ha-offer-reminder:hover { transform: translateY(-2px); border-color: #8cceff; box-shadow: inset 0 1px 0 #d3efff33, 0 8px 28px #07172db3, 0 0 34px #1592ff4d; }
  #ha-mobile-purchase .ha-mobile-checkout[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
}
@media (max-width: 359px) {
  #ha-mobile-purchase { padding-inline: 12px; gap: 10px; border-radius: 15px; }
  #ha-mobile-purchase .ha-mobile-title { font-size: 10px; }
  #ha-mobile-purchase .ha-mobile-prices { gap: 5px; }
  #ha-mobile-purchase .ha-mobile-prices strong { font-size: 27px; }
  #ha-mobile-purchase .ha-mobile-prices s { font-size: 11px; }
  #ha-mobile-purchase [data-mobile-price-caption] { font-size: 9px; }
  #ha-mobile-purchase .ha-mobile-checkout { padding-inline: 10px; gap: 6px; font-size: 12px; }
  #ha-mobile-purchase .ha-mobile-checkout svg { width: 16px; height: 16px; flex-basis: 16px; }
}
@media (max-width: 767px) and (max-height: 500px) {
  :root { --ha-dock-height: 76px; --ha-dock-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  #ha-mobile-purchase { padding-block: 6px; }
  #ha-offer-reminder { display: none; }
}
@keyframes ha-dock-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #ha-mobile-purchase, #ha-mobile-purchase .ha-mobile-checkout, #ha-mobile-purchase .ha-mobile-checkout svg,
  #ha-offer-reminder, #ha-offer-reminder .ha-reminder-arrow,
  #ha-mobile-purchase .ha-mobile-checkout::before, #ha-offer-reminder::after { animation: none; transition: none; }
  #ha-mobile-purchase .ha-mobile-checkout:hover, #ha-mobile-purchase .ha-mobile-checkout:hover svg,
  #ha-offer-reminder:hover, #ha-offer-reminder:hover .ha-reminder-arrow { transform: none; }
}
