/* 1clicktee — hộp nạp ví (D2, 12/11/2026; F2 13/11 — bản chép từ pay-1211a.css). Mảnh `templates/oneclicktee/_pane_pay.html`.
   Nhận diện tee: nền ngà #F4F1EA, mực #0B0B0B, nhấn cam #FF5A36, bo 6px, viền 1.5px mực, nút chính đen chữ ngà.
   F2: khách chỉ thấy tiền $; lưới gói 3×2 (điện thoại 2×3), MỌI thẻ cùng cao (grid-auto-rows 1fr); icon gói nền trong
   (goi-t-<n>-1311.webp, 40px / 32px điện thoại) nằm thẳng trên nền thẻ. Hộp NEO TRÊN, cao theo nội dung, tối đa bằng
   khung nhìn trừ lề (12px điện thoại) → thân cuộn, đầu hộp + nút đóng luôn thấy; đổi tab chỉ đổi mép dưới.
   Chân hộp chỉ hiện khi có nút (không còn dải trống).
   Đổi nội dung file này → đổi tên file (cache tĩnh 7 ngày). */

@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/oneclicktee/fonts/BeVietnamPro-Regular.ttf") format("truetype"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/oneclicktee/fonts/BeVietnamPro-Bold.ttf") format("truetype"); }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/oneclicktee/fonts/Anton-vietnamese-1211.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/oneclicktee/fonts/Anton-latin-ext-1211.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/oneclicktee/fonts/Anton-latin-1211.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html.otp-lock, html.otp-lock body { overflow: hidden; }

.otp {
  --otp-ivory: #F4F1EA;
  --otp-ink: #0B0B0B;
  --otp-accent: #FF5A36;
  --otp-muted: rgba(11, 11, 11, .62);
  --otp-line: rgba(11, 11, 11, .16);
  --otp-soft: rgba(11, 11, 11, .05);
  --otp-tint: rgba(255, 90, 54, .12);
  --otp-paper: rgba(255, 255, 255, .55);
  --otp-r: 6px;
  --otp-bd: 1.5px solid var(--otp-ink);
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 6vh, 56px) 16px 16px;
  font: 400 15px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--otp-ink);
}
.otp[hidden], .otp [hidden] { display: none !important; }
.otp *, .otp *::before, .otp *::after { box-sizing: border-box; }
.otp-overlay { position: absolute; inset: 0; background: rgba(11, 11, 11, .55); }

/* hộp — rộng cố định, cao theo nội dung (tối đa = khung nhìn trừ lề), thân cuộn */
.otp-dlg {
  position: relative;
  width: min(640px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--otp-ivory);
  border: var(--otp-bd); border-radius: var(--otp-r);
  box-shadow: 6px 6px 0 var(--otp-ink);
  overflow: hidden;
}
.otp .otp-dlg:focus, .otp .otp-dlg:focus-visible { outline: none; }

.otp-h {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 12px 12px 20px;
  border-bottom: var(--otp-bd);
}
.otp-title {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font: 400 26px/1.1 "Anton", "Be Vietnam Pro", Impact, sans-serif;
  letter-spacing: .01em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.otp-bal {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0;
  font-size: 13px; font-weight: 700; color: var(--otp-muted); white-space: nowrap;
}
.otp-bal span { overflow: hidden; text-overflow: ellipsis; }
.otp-x {
  flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: var(--otp-bd); border-radius: var(--otp-r); background: transparent; color: var(--otp-ink); cursor: pointer;
}
.otp-x:hover { background: var(--otp-ink); color: var(--otp-ivory); }

.otp-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px 20px 16px; overscroll-behavior: contain; }
.otp-f { flex: 0 0 auto; border-top: var(--otp-bd); padding: 12px 20px; display: flex; align-items: center; }
.otp-f__row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; }
.otp-f__row--split { justify-content: space-between; }

/* chữ */
.otp-muted { color: var(--otp-muted); }
.otp-num { font-variant-numeric: tabular-nums; }
.otp-lead { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.otp-big { margin: 14px 0 6px; font: 400 28px/1.15 "Anton", "Be Vietnam Pro", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.otp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.otp-ic { flex: 0 0 auto; display: block; }

/* nút */
.otp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: var(--otp-bd); border-radius: var(--otp-r);
  font: 700 15px/1 "Be Vietnam Pro", system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.otp-btn--primary { background: var(--otp-ink); color: var(--otp-ivory); }
.otp-btn--primary:hover:not(:disabled) { background: var(--otp-accent); color: var(--otp-ink); }
.otp-btn--ghost { background: transparent; color: var(--otp-ink); }
.otp-btn--ghost:hover { background: var(--otp-soft); }
.otp-btn:disabled { opacity: .45; cursor: not-allowed; }
.otp :focus { outline: none; }
.otp :focus-visible { outline: 2px solid var(--otp-accent); outline-offset: 2px; }

/* cảnh báo thiếu số dư */
.otp-warn {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px;
  border: 1.5px solid var(--otp-accent); border-radius: var(--otp-r); background: var(--otp-tint);
  font-size: 14px; font-weight: 700;
}
.otp-warn .otp-ic { color: var(--otp-accent); margin-top: 1px; }

/* tab — gạch chân, không nền xám */
.otp-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1.5px solid var(--otp-line); }
.otp-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin-bottom: -1.5px;
  border: 0; border-bottom: 3px solid transparent; background: none; color: var(--otp-muted);
  font: 700 15px/1 "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.otp-tab:hover { color: var(--otp-ink); }
.otp-tab[aria-selected="true"] { color: var(--otp-ink); border-bottom-color: var(--otp-accent); }

/* gói — lưới 3 cột × 2 hàng (điện thoại 2 × 3); grid-auto-rows 1fr = mọi hàng cao bằng hàng cao nhất → 6 thẻ đều nhau */
.otp-packbox { min-width: 0; }
.otp-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px 10px; margin: 0; padding-top: 2px; }
.otp-pack {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
  min-width: 0; min-height: 76px; padding: 12px;
  border: var(--otp-bd); border-radius: var(--otp-r); background: var(--otp-paper); cursor: pointer;
}
.otp-pack:hover { background: var(--otp-soft); }
.otp-pack__r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.otp-pack:has(.otp-pack__r:checked) { border-color: var(--otp-accent); background: var(--otp-tint); box-shadow: inset 0 0 0 1.5px var(--otp-accent); }
.otp-pack:has(.otp-pack__r:focus-visible) { outline: 2px solid var(--otp-accent); outline-offset: 2px; }
.otp-pack__top { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
/* icon nền trong: không ô, không nền — nằm thẳng trên nền thẻ */
.otp-pack__img { flex: 0 0 auto; display: block; width: 40px; height: 40px; object-fit: contain; background: transparent; border: 0; }
.otp-pack__p {
  min-width: 0; font: 400 26px/1.05 "Anton", "Be Vietnam Pro", Impact, sans-serif; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.otp-pack__p--long { font-size: 20px; }
.otp-pack__sub { max-width: 100%; font-size: 13px; font-weight: 700; line-height: 18px; color: var(--otp-muted); overflow-wrap: anywhere; }
.otp-pack__tag {
  position: absolute; top: 0; right: 8px; transform: translateY(-50%); padding: 0 6px; border-radius: 4px;
  background: var(--otp-ink); color: var(--otp-ivory); font-size: 10px; font-weight: 700; line-height: 16px; text-transform: uppercase; letter-spacing: .04em;
}
.otp-pack__bonus {
  max-width: 100%; padding: 0 6px; border: 1.5px solid var(--otp-accent); border-radius: 999px;
  color: var(--otp-ink); background: var(--otp-tint); font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap;
}

/* thứ tự khối trong tab (cố định, theo trình tự chọn rồi trả): lưới gói → ô số tiền khác → khối thẻ (nút trả) */
.otp-panel { display: flex; flex-direction: column; gap: 16px; }
.otp-loading { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; font-weight: 700; color: var(--otp-muted); }

/* ô tự nhập */
.otp-custom { padding: 14px; border: 1.5px dashed var(--otp-line); border-radius: var(--otp-r); }
.otp-custom.is-on { border: 1.5px solid var(--otp-ink); }
.otp-custom__t { display: block; margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.otp-amt { position: relative; }
.otp-input {
  width: 100%; height: 48px; padding: 0 44px 0 14px; border: var(--otp-bd); border-radius: var(--otp-r);
  background: var(--otp-paper); color: var(--otp-ink);
  font: 700 18px/1 "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.otp-amt--usd .otp-input { padding: 0 14px 0 32px; }
.otp-input::placeholder { color: var(--otp-muted); font-weight: 400; }
.otp-input:focus-visible { outline: 2px solid var(--otp-accent); outline-offset: 1px; }
.otp-input.is-error { border-color: var(--otp-accent); box-shadow: inset 0 0 0 1px var(--otp-accent); }
.otp-unit { position: absolute; top: 0; right: 14px; height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--otp-muted); pointer-events: none; }
.otp-unit--pre { right: auto; left: 14px; }
.otp-recv { min-height: 22px; margin-top: 8px; font-weight: 700; font-size: 14px; }
.otp-hint { min-height: 20px; font-size: 13px; color: var(--otp-muted); }
.otp-hint.is-error { color: var(--otp-accent); font-weight: 700; }

/* chip */
.otp-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: var(--otp-bd); border-radius: 999px; background: transparent; color: var(--otp-ink);
  font: 700 13px/1 "Be Vietnam Pro", system-ui, sans-serif; white-space: nowrap;
}
.otp-chip--accent { border-color: var(--otp-accent); background: var(--otp-tint); }
.otp-chip--warn { border-color: var(--otp-ink); background: var(--otp-ink); color: var(--otp-ivory); }
.otp-chip--ink { background: var(--otp-ink); color: var(--otp-ivory); }

/* khối thẻ (macro _pp_card_button.html dùng chung — đè khung trắng bo 12 của macro) */
.otp-ppcard { margin: 0; }
#ot-pay .pp-card { background: var(--otp-paper); border: var(--otp-bd); border-radius: var(--otp-r); color: var(--otp-ink); }
#ot-pay .pp-card__note { color: var(--otp-muted); }
#ot-pay .pp-card__err { color: var(--otp-accent); font-weight: 700; }
/* số tiền chưa hợp lệ → khối thẻ (nút trả) khoá: mờ .45 + not-allowed */
.otp-ppcard { transition: opacity .15s; }
.otp-ppcard.is-off { opacity: .45; cursor: not-allowed; }
.otp-ppcard.is-off [data-pp-buttons] { pointer-events: none; }

.otp-err { margin: 0 0 16px; padding: 10px 14px; border: 1.5px solid var(--otp-accent); border-radius: var(--otp-r); background: var(--otp-tint); font-size: 14px; font-weight: 700; color: var(--otp-ink); }
.otp-err:empty { display: none; }
.otp-panel > .otp-err { margin: 0; }

/* màn chuyển khoản */
.otp-transfer { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.otp-qr { position: relative; width: 200px; height: 200px; padding: 8px; border: var(--otp-bd); border-radius: var(--otp-r); background: #fff; }
.otp-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.otp-qr.is-expired img { opacity: .12; filter: grayscale(1); }
.otp-qr__exp { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-weight: 700; font-size: 14px; }
.otp-rows { margin: 0; display: grid; gap: 0; }
.otp-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--otp-line); min-width: 0; }
.otp-r:last-child { border-bottom: 0; }
.otp-r dt { grid-column: 1; font-size: 12px; color: var(--otp-muted); }
.otp-r dd { grid-column: 1; margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.otp-r--memo dd { color: var(--otp-ink); background: var(--otp-tint); padding: 2px 6px; margin-left: -6px; border-radius: 4px; justify-self: start; }
.otp-copy {
  grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--otp-bd); border-radius: var(--otp-r); background: transparent; color: var(--otp-ink); cursor: pointer;
}
.otp-copy:hover, .otp-copy.is-done { background: var(--otp-ink); color: var(--otp-ivory); }
.otp-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 13px; color: var(--otp-muted); }
.otp-note .otp-ic { margin-top: 2px; }
.otp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.otp-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.otp-spin { width: 14px; height: 14px; border: 2px solid var(--otp-line); border-top-color: var(--otp-accent); border-radius: 50%; animation: otp-spin .8s linear infinite; }
@keyframes otp-spin { to { transform: rotate(360deg); } }

/* màn giữa (đăng nhập / xong / lỗi) */
.otp-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 8px 4px; }
.otp-center .otp-muted { max-width: 380px; margin: 0 0 14px; }
.otp-badge { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: var(--otp-bd); background: transparent; }
.otp-badge--ok { background: var(--otp-accent); color: var(--otp-ink); }
.otp-badge--err { background: var(--otp-ink); color: var(--otp-ivory); }

/* điện thoại: lề 12px, gói 2 cột × 3 hàng, icon 32px cạnh số tiền; lưới số dài (VND "5.200.000đ") xếp icon trên số */
@media (max-width: 520px) {
  .otp { padding: 12px; }
  .otp-dlg { box-shadow: 4px 4px 0 var(--otp-ink); max-height: calc(100% - 4px); }
  .otp-h { padding-left: 16px; gap: 10px; }
  .otp-title { font-size: 22px; }
  .otp-bal { font-size: 12px; gap: 4px; }
  .otp-b { padding: 16px 16px 14px; }
  .otp-f { padding: 12px 16px; }
  .otp-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .otp-pack { padding: 10px; gap: 4px; }
  .otp-pack__top { gap: 8px; }
  .otp-packs--long .otp-pack__top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .otp-pack__img { width: 32px; height: 32px; }
  .otp-pack__p { font-size: 22px; }
  .otp-pack__p--long { font-size: 20px; }
  .otp-pack__sub { font-size: 12px; line-height: 16px; }
  .otp-tab { padding: 0 10px; font-size: 14px; }
  .otp-transfer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .otp-qr { width: 176px; height: 176px; }
  .otp-rows { width: 100%; }
  .otp-f__row .otp-btn { flex: 1 1 auto; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .otp-spin { animation: none; } }
