/*
 * Hero /post-purchase (04/11/2026): khung trình duyệt chạy 4 trang của một store mẫu — sản phẩm, checkout, trang
 * post-purchase, thank-you. Trang store dựng theo giao diện Shopify thật như bản ReelDope (sandbox ppu-surface-reeldope,
 * checkout-clone-reeldope) để merchant nhận ra ngay "đây là store của mình", còn khung ngoài giữ style Ticket của landing.
 * Motion lấy từ React Bits (ease-out 0.23,1,0.32,1 · spring 0.34,1.56,0.64,1 · nhấn scale 0.95/160ms · list vào bằng spring)
 * nhưng viết lại bằng CSS thuần vì site không có React.
 *
 * Trang store vẽ trên canvas kích thước cố định rồi scale theo khung (biến --k do ppu-ldp.js đặt): giữ được tỷ lệ như
 * ảnh chụp thật ở mọi bề rộng, không phải viết lại layout cho từng breakpoint. Khung hẹp (< 470px) đổi sang canvas
 * dọc 380px với bố cục mobile của Shopify.
 */
.bldp .bl-jr {
  --e-out: cubic-bezier(0.23, 1, 0.32, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
}
.bldp .bl-jr__frame {
  width: min(100%, 660px);
}
.bldp .bl-jr__tabs .bl-tab {
  position: relative;
  padding: 0 12px;
  font-size: 12px;
}
.bldp .bl-jr__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
}
.bldp .bl-jr__tabs .bl-tab.is-on .bl-jr__bar {
  animation: jr-bar var(--dur, 3s) linear forwards;
}
@keyframes jr-bar {
  to {
    transform: scaleX(1);
  }
}
.bldp .bl-jr__url {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 2px solid var(--ink);
  background: #f6f6f4;
  font:
    500 12px/1 var(--bl-mono),
    monospace;
  white-space: nowrap;
  overflow: hidden;
}
.bldp .bl-jr__url svg {
  flex: none;
  width: 10px;
  height: 12px;
  color: var(--ok);
}
.bldp .bl-jr__path {
  color: #777;
  transition: opacity 0.25s;
}
.bldp .bl-jr__path.is-swap {
  opacity: 0;
}
.bldp .bl-jr__screen {
  position: relative;
  aspect-ratio: 640 / 470;
  overflow: hidden;
  background: #fff;
}

/* ---------- Canvas: trang store, font hệ thống như theme/checkout Shopify ---------- */
.bldp .jr-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 470px;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
  font:
    400 13px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #1a1a1a;
  letter-spacing: 0;
}
.bldp .jr-canvas p {
  margin: 0;
}
.bldp .jr-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.4s ease,
    transform 0.7s var(--e-out),
    filter 0.5s ease,
    visibility 0s linear 0.7s;
}
.bldp .jr-scene.is-on {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition-delay: 0.1s, 0.1s, 0.1s, 0s;
}
.bldp .jr-scene.is-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  filter: blur(4px);
}
/* Nội dung trong trang vào lần lượt (kiểu staggered/animated-list của React Bits): --i là thứ tự */
.bldp .jr-scene [style*="--i"] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--e-out);
  transition-delay: calc(var(--i) * 60ms + 0.2s);
}
.bldp .jr-scene.is-on [style*="--i"] {
  opacity: 1;
  transform: none;
}

.bldp .jr-muted {
  color: #707070;
  font-weight: 400;
  font-size: 12px;
}
.bldp .jr-logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bldp .jr-bag {
  display: grid;
  width: 22px;
  height: 22px;
}
.bldp .jr-bag svg {
  width: 100%;
  height: 100%;
}
.bldp .jr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 50px;
  padding: 0 32px;
  border-bottom: 1px solid #e3e3e3;
}
.bldp .jr-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  transition:
    transform 0.16s var(--e-out),
    background 0.3s ease;
}
.bldp .jr-btn--line {
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 1.5px #111;
}
.bldp .jr-btn--sm {
  align-self: flex-start;
  height: 36px;
  padding: 0 18px;
  font-size: 12.5px;
}
.bldp .jr-canvas .is-press {
  transform: scale(0.95);
}
.bldp .jr-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}
.bldp .jr-field small {
  font-size: 10.5px;
  line-height: 1.2;
  color: #707070;
}
.bldp .jr-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 15px;
  width: 6px;
  height: 6px;
  border: solid #555;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.bldp .jr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bldp .jr-kv {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}
.bldp .jr-kv--total {
  align-items: baseline;
  font-weight: 700;
  font-size: 15px;
}
.bldp .jr-kv--total small {
  font-weight: 400;
  font-size: 11px;
  color: #707070;
}
.bldp .jr-spin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: jr-spin 0.7s linear infinite;
  transition: opacity 0.2s;
}
@keyframes jr-spin {
  to {
    transform: rotate(1turn);
  }
}
.bldp .jr-btn__t {
  transition: opacity 0.2s;
}
.bldp .jr-btn.is-busy .jr-btn__t {
  opacity: 0;
}
.bldp .jr-btn.is-busy .jr-spin {
  opacity: 1;
}

/* Bố cục 2 cột kiểu checkout Shopify: cột trái form, cột phải tóm tắt đơn nền xám */
.bldp .jr-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 0;
}
.bldp .jr-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 16px 32px;
}
.bldp .jr-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 28px 20px 22px;
  background: #f5f5f5;
  border-left: 1px solid #e3e3e3;
}
.bldp .jr-aside .jr-line {
  margin-bottom: 6px;
}
.bldp .jr-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.bldp .jr-line__n {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 500;
}
.bldp .jr-line__n small {
  font-weight: 400;
  font-size: 11px;
  color: #707070;
}
.bldp .jr-thumb {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
  background: #fff;
}
.bldp .jr-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.bldp .jr-thumb i {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  font:
    600 10.5px/1 -apple-system,
    sans-serif;
}
.bldp .jr-sumbar {
  display: none;
}

/* ---------- 01 Trang sản phẩm ---------- */
.bldp .jr-ann {
  flex: none;
  padding: 6px;
  background: #111;
  color: #fff;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
}
.bldp .jr-top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: none;
  height: 50px;
  padding: 0 32px;
  border-bottom: 1px solid #ececec;
}
.bldp .jr-top nav {
  flex: 1;
  display: flex;
  gap: 20px;
  font-size: 12.5px;
  color: #444;
}
.bldp .jr-pdp__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 32px;
  min-height: 0;
}
.bldp .jr-pdp__media {
  position: relative;
  border-radius: 8px;
  background: #f2f2f0;
  overflow: hidden;
}
.bldp .jr-pdp__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bldp .jr-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.bldp .jr-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}
.bldp .jr-dots i.is-on {
  background: #111;
}
.bldp .jr-pdp__info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.bldp .jr-vendor {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #707070;
}
.bldp .jr-pdp h3 {
  margin: -2px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bldp .jr-pdp__price {
  font-size: 15px;
}
.bldp .jr-label {
  margin-top: 4px !important;
  font-size: 11.5px;
  color: #555;
}
.bldp .jr-pills {
  display: flex;
  gap: 6px;
}
.bldp .jr-pills span {
  min-width: 40px;
  padding: 7px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  text-align: center;
  font-size: 12px;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.16s var(--e-out);
}
.bldp .jr-pills .is-sel {
  background: #111;
  border-color: #111;
  color: #fff;
}
.bldp .jr-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 13px;
}
.bldp .jr-qty span {
  color: #777;
}
.bldp .jr-btn--line {
  margin-top: 6px;
}

/* ---------- 02 Checkout ---------- */
.bldp .jr-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px !important;
  font-weight: 700;
  font-size: 14px;
}
.bldp .jr-h .jr-muted {
  font-size: 11px;
}
.bldp .jr-pay {
  border: 1px solid #111;
  border-radius: 7px;
  overflow: hidden;
}
.bldp .jr-pay__head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px;
  background: #f4f6f8;
  border-bottom: 1px solid #d9d9d9;
  font-size: 12.5px;
  font-weight: 500;
}
.bldp .jr-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 4.5px solid #111;
  background: #fff;
}
.bldp .jr-cards {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.bldp .jr-cards b {
  padding: 2px 5px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  font-size: 8.5px;
  font-style: italic;
  color: #1a1f71;
}
.bldp .jr-pay__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #f4f6f8;
}
.bldp .jr-pay__body .jr-field {
  background: #fff;
}
.bldp .jr-card {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
}
.bldp .jr-card small {
  flex-basis: 100%;
}
.bldp .jr-cardno:empty::before {
  content: "1234 1234 1234 1234";
  color: #a0a0a0;
}
.bldp .jr-caret {
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: #111;
  opacity: 0;
}
.bldp .jr-card.is-typing .jr-caret {
  animation: jr-caret 0.9s steps(1) infinite;
}
.bldp .jr-card.is-typing {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}
@keyframes jr-caret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.bldp .jr-paynow {
  margin-top: 4px;
  height: 42px;
}

/* ---------- 03 Trang post-purchase (bố cục Focus Offer như ppu-surface-reeldope) ---------- */
.bldp .jr-pp .jr-bar {
  height: 44px;
}
.bldp .jr-pp__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 40px 10px;
  min-height: 0;
}
.bldp .jr-pp__paid {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}
.bldp .jr-pp__paid svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--ok);
}
.bldp .jr-pp__paid p {
  display: flex;
  flex-direction: column;
}
.bldp .jr-pp__paid b {
  font-size: 15px;
  font-weight: 600;
}
.bldp .jr-pp__paid small {
  font-size: 11px;
  color: var(--ok);
}
.bldp .jr-pp__hold {
  text-align: center;
  font-size: 13.5px;
}
.bldp .jr-pp__timer {
  padding: 7px;
  border-radius: 4px;
  background: #fff7d6;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bldp .jr-timer {
  color: #c4320a;
  font-variant-numeric: tabular-nums;
}
.bldp .jr-pp__offer {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  margin-top: 4px;
}
.bldp .jr-pp__img {
  align-self: start;
  border-radius: 6px;
  background: #f2f2f0;
  overflow: hidden;
}
.bldp .jr-pp__img img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.bldp .jr-pp__info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bldp .jr-pp h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.bldp .jr-pp__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}
.bldp .jr-pp__price b {
  font-size: 15px;
  color: var(--ok);
}
.bldp .jr-pp__price s {
  color: #888;
}
.bldp .jr-pp__price em {
  font-style: normal;
  color: var(--ok);
}
.bldp .jr-stars {
  color: #f5a623;
  font-size: 11px;
  letter-spacing: 1px;
}
.bldp .jr-stars span {
  color: #555;
  letter-spacing: 0;
}
.bldp .jr-pp__info .jr-kv--total {
  padding-top: 6px;
  border-top: 1px solid #ececec;
}
.bldp .jr-add {
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12.5px;
}
.bldp .jr-add__ok {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ok);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.2s,
    transform 0.5s var(--e-spring);
}
.bldp .jr-add__ok svg {
  width: 16px;
  height: 16px;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.4s var(--e-out) 0.25s;
}
.bldp .jr-add.is-done .jr-add__ok {
  opacity: 1;
  transform: none;
}
.bldp .jr-add.is-done .jr-add__ok svg {
  stroke-dashoffset: 0;
}
.bldp .jr-add.is-done .jr-spin {
  opacity: 0;
}
.bldp .jr-pp__note {
  text-align: center;
  font-size: 11px;
  color: #707070;
}
.bldp .jr-pp__decline {
  margin-top: auto !important;
  text-align: center;
  font-size: 11.5px;
  color: #707070;
  text-decoration: underline;
}

/* ---------- 04 Thank you ---------- */
.bldp .jr-ty__grid {
  grid-template-areas:
    "head aside"
    "main aside";
  grid-template-rows: auto 1fr;
}
.bldp .jr-ty__head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 4px 32px;
}
.bldp .jr-ty .jr-main {
  grid-area: main;
  gap: 10px;
}
.bldp .jr-ty .jr-aside {
  grid-area: aside;
}
.bldp .jr-ty__check {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--ok);
}
.bldp .jr-ty__check circle {
  stroke-dasharray: 114;
  stroke-dashoffset: 114;
}
.bldp .jr-ty__check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
}
.bldp .jr-ty.is-on .jr-ty__check circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--e-out) 0.3s;
}
.bldp .jr-ty.is-on .jr-ty__check path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s var(--e-out) 0.8s;
}
.bldp .jr-ty__head p {
  display: flex;
  flex-direction: column;
}
.bldp .jr-ty__head small {
  font-size: 11px;
  color: #707070;
}
.bldp .jr-ty__head b {
  font-size: 19px;
  font-weight: 600;
}
.bldp .jr-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
  font-size: 12px;
}
.bldp .jr-box > b {
  font-size: 13.5px;
  font-weight: 600;
}
.bldp .jr-box .jr-row2 p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.bldp .jr-box small {
  font-weight: 600;
  font-size: 11.5px;
}
.bldp .jr-visa {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 4px;
  border-radius: 2px;
  background: #1a1f71;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: italic;
}
.bldp .jr-ty__new {
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  opacity: 0;
  transform: translateY(14px) scale(0.7);
  transition:
    opacity 0.3s ease,
    transform 0.6s var(--e-spring),
    background 1.6s ease;
}
.bldp .jr-ty__new.is-in {
  opacity: 1;
  transform: none;
  background: #fff3c2;
}
.bldp .jr-ty__new em {
  align-self: flex-start;
  white-space: nowrap;
  margin-top: 3px;
  padding: 1px 6px;
  border: 1.5px solid var(--ink);
  background: var(--y);
  font: 500 9px/1.4 var(--bl-mono), monospace;
  font-style: normal;
  color: var(--ink);
}
.bldp .jr-ty__total {
  font-variant-numeric: tabular-nums;
}
.bldp .jr-ty__total.is-pop {
  animation: jr-pop 0.5s var(--e-spring);
}
@keyframes jr-pop {
  40% {
    transform: scale(1.12);
  }
}
.bldp .jr-ty__total {
  display: inline-block;
}

/* ---------- Con trỏ người mua (smooth-cursor): đi theo đường cong, nhấn thì co lại + gợn sóng ---------- */
.bldp .jr-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
  transform: translate(var(--x, 520px), var(--y, 520px));
  transition: transform 0.85s var(--e-io);
}
.bldp .jr-cursor svg {
  width: 18px;
  height: 22px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  transform-origin: 2px 2px;
  transition: transform 0.16s var(--e-out);
}
.bldp .jr-cursor.is-click svg {
  transform: scale(0.82);
}
.bldp .jr-cursor i {
  margin-top: 16px;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  background: var(--y);
  font:
    500 10px/1.3 var(--bl-mono),
    monospace;
  font-style: normal;
  color: var(--ink);
}
.bldp .jr-ripple {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--x, 0), var(--y, 0)) scale(0.3);
}
.bldp .jr-ripple.is-on {
  animation: jr-ripple 0.55s var(--e-out);
}
@keyframes jr-ripple {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0;
    transform: translate(var(--x, 0), var(--y, 0)) scale(1.4);
  }
}

/* ---------- Khung hẹp: canvas dọc 380px, bố cục mobile của Shopify ---------- */
.bldp .bl-jr__frame.is-narrow .bl-jr__screen {
  aspect-ratio: 380 / 520;
}
.bldp .is-narrow .jr-canvas {
  width: 380px;
  height: 520px;
}
.bldp .is-narrow .jr-bar,
.bldp .is-narrow .jr-top {
  padding: 0 18px;
}
.bldp .is-narrow .jr-top {
  justify-content: space-between;
}
.bldp .is-narrow .jr-top nav,
.bldp .is-narrow .jr-btn--line,
.bldp .is-narrow .jr-wide,
.bldp .is-narrow .jr-co .jr-aside {
  display: none;
}
.bldp .is-narrow .jr-pdp__body {
  grid-template-columns: 1fr;
  grid-template-rows: 190px auto;
  gap: 14px;
  padding: 14px 18px;
}
.bldp .is-narrow .jr-pdp h3 {
  font-size: 20px;
}
.bldp .is-narrow .jr-pdp__info {
  gap: 6px;
  padding: 0;
}
.bldp .is-narrow .jr-btn--line {
  margin-top: 4px;
}
.bldp .is-narrow .jr-split {
  display: flex;
  flex-direction: column;
}
.bldp .is-narrow .jr-sumbar {
  display: flex;
  justify-content: space-between;
  flex: none;
  padding: 10px 18px;
  background: #f5f5f5;
  border-bottom: 1px solid #e3e3e3;
  font-size: 12.5px;
  color: #1a1f71;
}
.bldp .is-narrow .jr-sumbar b {
  color: #111;
}
.bldp .is-narrow .jr-main {
  padding: 12px 18px;
}
.bldp .is-narrow .jr-h .jr-muted {
  display: none;
}
.bldp .is-narrow .jr-pp__body {
  padding: 12px 18px 10px;
}
.bldp .is-narrow .jr-pp__offer {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
}
.bldp .is-narrow .jr-pp__hold {
  font-size: 12.5px;
}
.bldp .is-narrow .jr-ty__grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "aside"
    "main";
  grid-template-rows: auto auto 1fr;
}
.bldp .is-narrow .jr-ty__head {
  padding: 14px 18px 10px;
}
.bldp .is-narrow .jr-ty .jr-aside {
  margin: 0 18px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
}

/* Mobile: khung trang chiếm hết bề ngang, tiêu đề cảnh hiện như các landing khác */
@media (max-width: 860px) {
  .bldp .bl-jr {
    padding: 14px 16px 24px;
    gap: 10px;
  }
  .bldp .bl-jr .bl-stage__t {
    display: block;
    width: 100%;
    font:
      700 clamp(24px, 6.8vw, 30px) / 1.1 var(--bl-display),
      sans-serif;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .bldp .bl-jr__frame {
    width: calc(100% - 6px);
    align-self: flex-start;
  }
  .bldp .bl-jr__tabs {
    height: 32px;
  }
  .bldp .bl-jr__tabs .bl-tab {
    padding: 0 9px;
    font-size: 11px;
  }
  .bldp .bl-jr__url {
    height: 28px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bldp .bl-jr *,
  .bldp .bl-jr *::before,
  .bldp .bl-jr *::after {
    transition: none !important;
    animation: none !important;
  }
  .bldp .jr-cursor,
  .bldp .jr-ripple {
    display: none;
  }
}

/* Giá cột phải không bị nhãn dài đè lên; ô "Order details" chừa chỗ cho số thẻ */
.bldp .jr-line__n {
  min-width: 0;
}
.bldp .jr-line > span:last-child {
  flex: none;
}
.bldp .jr-box .jr-row2 {
  grid-template-columns: 1.25fr 1fr;
  white-space: nowrap;
}

/* Khung < 600px không đủ chỗ cho 4 nhãn: tab đang chạy giãn ra giữ nhãn, các tab khác chỉ còn số */
.bldp .bl-jr__frame {
  container-type: inline-size;
}
.bldp .bl-jr__tabs .bl-tab {
  flex: 1 1 0;
  min-width: 0;
  transition:
    flex-grow 0.5s var(--e-out),
    background 0.3s,
    color 0.3s;
}
@container (max-width: 600px) {
  .bldp .bl-jr__tabs .bl-tab:not(.is-on) .bl-tl {
    display: none;
  }
  .bldp .bl-jr__tabs .bl-tab.is-on {
    flex-grow: 3;
  }
}
/* Món mới: giá nằm ngang dòng tên, nhãn dài bên dưới được tràn sang dưới giá thay vì đè lên */
.bldp .jr-ty__new {
  align-items: flex-start;
}
.bldp .jr-ty__new .jr-line__n {
  min-width: 0;
}
.bldp .jr-ty__new > span:last-child {
  padding-top: 2px;
}
.bldp .is-narrow .jr-pp__decline {
  margin-top: 10px !important;
}

/* Offer trang thank-you (extension thank-you-page-upsell, mẫu checkout-clone-reeldope): khác trang post-purchase ở chỗ
   bấm nhận là sang checkout mới, nên dòng phụ dưới nút nói rõ điều đó */
.bldp .jr-ty__offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bldp .jr-ty__like {
  font-weight: 600;
  font-size: 14px;
}
.bldp .jr-ty__card {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
}
.bldp .jr-thumb--lg {
  width: 72px;
  height: 72px;
}
.bldp .jr-ty__cbody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.bldp .jr-ty__cbody > b {
  font-weight: 500;
  font-size: 13px;
}
.bldp .jr-claim {
  height: 34px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}
.bldp .jr-ty__hint {
  font-size: 10.5px;
  color: #707070;
}
.bldp .is-narrow .jr-ty__grid {
  grid-template-areas:
    "head"
    "main"
    "aside";
  grid-template-rows: auto auto 1fr;
}
.bldp .is-narrow .jr-ty .jr-main {
  padding: 0 18px 12px;
}
.bldp .is-narrow .jr-ty .jr-aside {
  gap: 8px;
  padding: 12px 14px;
}
.bldp .is-narrow .jr-ty .jr-aside .jr-kv:not(.jr-kv--total, .jr-ty__due) {
  display: none;
}
.bldp .is-narrow .jr-ty .jr-thumb {
  width: 40px;
  height: 40px;
}
.bldp .is-narrow .jr-ty .jr-thumb--lg {
  width: 64px;
  height: 64px;
}

/* Claim ở thank-you theo lựa chọn "Add to the original order" của app: món vào đơn gốc, tổng tăng, đơn còn nợ phần
   chênh lệch ("Partially paid") cho tới khi người mua trả ở trang thanh toán số dư */
.bldp .jr-claim {
  overflow: hidden;
}
.bldp .jr-claim.is-done .jr-add__ok {
  opacity: 1;
  transform: none;
}
.bldp .jr-claim.is-done .jr-add__ok svg {
  stroke-dashoffset: 0;
}
.bldp .jr-claim.is-done .jr-spin {
  opacity: 0;
}
.bldp .jr-ty__claimed {
  display: none;
}
.bldp .jr-ty__claimed.is-in {
  display: flex;
  animation: jr-row-in 0.6s var(--e-spring);
}
@keyframes jr-row-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.7);
  }
}
.bldp .jr-ty__due {
  display: none;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 6px;
  background: #fff1e6;
  color: #a33a00;
}
.bldp .jr-ty__due.is-on {
  display: flex;
  animation: jr-row-in 0.5s var(--e-out);
}
.bldp .jr-ty__due.is-paid {
  background: #e6f4ec;
  color: var(--ok);
}
.bldp .jr-sheet {
  position: absolute;
  inset: 50px 0 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.38);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.5s;
}
.bldp .jr-sheet.is-on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.bldp .jr-sheet__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 330px;
  padding: 18px 20px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(40px) scale(0.96);
  transition: transform 0.6s var(--e-spring);
}
.bldp .jr-sheet.is-on .jr-sheet__panel {
  transform: none;
}
.bldp .jr-sheet__t {
  font-weight: 700;
  font-size: 16px;
}
.bldp .jr-sheet .jr-kv--total {
  padding-top: 6px;
  border-top: 1px solid #ececec;
}
.bldp .jr-paybal {
  margin-top: 2px;
}
.bldp .is-narrow .jr-canvas {
  height: 596px;
}
.bldp .bl-jr__frame.is-narrow .bl-jr__screen {
  aspect-ratio: 380 / 596;
}
.bldp .is-narrow .jr-ty .jr-aside {
  gap: 6px;
}
.bldp .is-narrow .jr-sheet__panel {
  width: 330px;
}
.bldp .is-narrow .jr-ty .jr-aside .jr-line {
  margin-bottom: 2px;
}
/* Mobile thank-you chứa cả offer lẫn 3 dòng đơn + số dư: thu gọn khoảng cách cho vừa khung */
.bldp .is-narrow .jr-ty__head {
  padding: 10px 18px 6px;
}
.bldp .is-narrow .jr-ty .jr-main {
  gap: 6px;
}
.bldp .is-narrow .jr-ty .jr-thumb {
  width: 36px;
  height: 36px;
}
.bldp .is-narrow .jr-ty__new {
  padding: 5px 10px;
}
.bldp .is-narrow .jr-ty .jr-aside {
  padding: 10px 14px;
}
.bldp .is-narrow .jr-ty .jr-thumb--lg {
  width: 58px;
  height: 58px;
}
