/* HB-345 — full-page checkout overlay (theme-safe; does not touch C7/BN2) */
html[data-hb345-checkout="1"] #root {
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
html[data-hb345-checkout="1"] [role="dialog"],
html[data-hb345-checkout="1"] [data-radix-portal],
html[data-hb345-checkout="1"] [data-state="open"][class*="fixed"],
html[data-hb345-checkout="1"] .cart-drawer-summary-wrapper {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#hb345-checkout-root {
  --ck-bg: #edf4f9;
  --ck-card: #ffffff;
  --ck-text: #102033;
  --ck-muted: #3d4f63;
  --ck-border: #c5d8e6;
  --ck-price: #d92d20;
  --ck-cyan: #2194aa;
  --ck-cta: #fe2c55;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: auto;
  color: var(--ck-text);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(56, 184, 201, 0.16), transparent 55%),
    linear-gradient(180deg, #f4f9fc 0%, #edf4f9 42%, #e8f2f8 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#hb345-checkout-root *,
#hb345-checkout-root *::before,
#hb345-checkout-root *::after {
  box-sizing: border-box;
}
.hb345-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 10rem;
}
.hb345-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hb345-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hb345-back {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--ck-border);
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}
.hb345-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ck-cyan);
}
.hb345-title {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.hb345-steps {
  font-size: 0.78rem;
  color: var(--ck-muted);
}
.hb345-steps strong {
  color: var(--ck-cyan);
}
.hb345-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .hb345-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    align-items: start;
  }
  .hb345-aside {
    position: sticky;
    top: 1rem;
  }
}
.hb345-card {
  background: var(--ck-card);
  border: 1px solid #d7e6f0;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px -18px rgba(31, 80, 100, 0.28);
}
.hb345-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
}
.hb345-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .hb345-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.hb345-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ck-muted);
  margin-bottom: 0.3rem;
}
.hb345-input,
.hb345-select,
.hb345-textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--ck-border);
  border-radius: 0.9rem;
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: var(--ck-text);
  font-size: 0.95rem;
}
.hb345-textarea {
  min-height: 4.5rem;
  resize: vertical;
}
.hb345-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #5b6f82;
}
.hb345-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8f0f6;
}
.hb345-item:last-child {
  border-bottom: 0;
}
.hb345-item img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #e6f1f8;
}
.hb345-price {
  color: var(--ck-price);
  font-weight: 800;
}
.hb345-pay {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--ck-border);
  background: #fff;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.hb345-pay.is-on {
  border-color: rgba(33, 148, 170, 0.65);
  box-shadow: 0 0 0 2px rgba(33, 148, 170, 0.18);
  background: #f3fafc;
}
.hb345-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin: 0.4rem 0;
}
.hb345-total {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 800;
}
.hb345-invoice-fields {
  display: none;
  margin-top: 0.85rem;
}
.hb345-invoice-fields.is-on {
  display: grid;
  gap: 0.75rem;
}
.hb345-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483001;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #d7e6f0;
  box-shadow: 0 -10px 28px rgba(16, 32, 51, 0.08);
}
.hb345-dock-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hb345-cta {
  flex: 1;
  min-height: 3.15rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff5a7a 0%, #fe2c55 48%, #e11d48 100%);
  box-shadow: 0 12px 24px -10px rgba(225, 29, 72, 0.45);
}
.hb345-cta:disabled {
  opacity: 0.65;
  cursor: wait;
}
.hb345-empty,
.hb345-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.hb345-success h2,
.hb345-empty h2 {
  margin: 0.5rem 0;
}
.hb345-linkbtn {
  display: inline-flex;
  margin: 0.35rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ck-border);
  background: #fff;
  color: var(--ck-text);
  text-decoration: none;
  font-weight: 600;
}
.hb345-linkbtn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #ff5a7a 0%, #fe2c55 48%, #e11d48 100%);
}
.hb345-checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}
.hb345-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
@media (max-width: 767px) {
  .hb345-dock {
    bottom: 3.5rem;
  }
  .hb345-shell {
    padding-bottom: 12rem;
  }
}
