/* ==========================================================================
   BỘ TIỆN ÍCH WEB MINI APP 3-TRONG-1 — CỬA HÀNG MẸ VÀ BÉ NAM DUNG (namdung.com)
   1. 📲 Cài App Nam Dung ra màn hình chính điện thoại (PWA Standalone)
   2. 🔄 Sổ Đơn Quen & Đặt Lại Đơn Cũ 1 Chạm (Không lộ giá - Price-Shield 100%)
   3. 👶 Trợ Lý Chọn Sữa & Size Tã Chuẩn Theo Tháng Tuổi / Cân Nặng Bé
   ========================================================================== */

/* Thanh Dock 4 Tiện ích Mini App gọn nhẹ ngay dưới Hero */
.nd-miniapp-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.nd-dock-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  position: relative;
  overflow: hidden;
}

.nd-dock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.nd-dock-btn:active {
  transform: scale(0.985);
}

.nd-dock-btn.dock-baby {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 72%);
  border-color: #fecdd3;
}

.nd-dock-btn.dock-baby:hover {
  border-color: #fb7185;
}

.nd-dock-btn.dock-loyalty {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 74%);
  border-color: #fde68a;
}

.nd-dock-btn.dock-loyalty:hover {
  border-color: #f59e0b;
}

.nd-dock-btn.dock-orders {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 72%);
  border-color: #a7f3d0;
}

.nd-dock-btn.dock-orders:hover {
  border-color: #34d399;
}

.nd-dock-btn.dock-pwa {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
  border-color: #bfdbfe;
}

.nd-dock-btn.dock-pwa:hover {
  border-color: #60a5fa;
}

.nd-dock-btn.dock-pwa.is-installed {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 75%);
  border-color: #86efac;
}

.nd-dock-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.dock-baby .nd-dock-icon {
  background: #ffe4e6;
}

.dock-loyalty .nd-dock-icon {
  background: #fef3c7;
}

.dock-orders .nd-dock-icon {
  background: #d1fae5;
}

.dock-pwa .nd-dock-icon {
  background: #dbeafe;
}

.nd-dock-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nd-dock-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-dock-sub {
  font-size: 11.2px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-dock-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.nd-dock-badge.badge-amber {
  background: #d97706;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.26);
}

/* Nút Cài App nhỏ gọn trên Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.header-pwa-btn:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}

.header-pwa-btn.hidden-standalone {
  display: none !important;
}

/* Khung gợi ý Đặt lại đơn cũ ngay trong Giỏ hàng trống */
.cart-empty-mini-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-quick-reorder-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.cart-quick-reorder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cart-quick-reorder-title {
  font-size: 12.8px;
  font-weight: 800;
  color: #065f46;
}

.cart-quick-reorder-date {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
}

.cart-quick-reorder-items {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 9px;
}

.cart-quick-reorder-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.cart-quick-reorder-btn {
  flex: 1;
  min-width: 140px;
  border: none;
  border-radius: 9px;
  padding: 8px 11px;
  background: #059669;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.cart-quick-reorder-more {
  border: 1px solid #6ee7b7;
  border-radius: 9px;
  padding: 8px 10px;
  background: #ffffff;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cart-empty-baby-btn {
  width: 100%;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

/* Nút gợi ý gắn App sau khi gửi đơn thành công */
.order-pwa-nudge {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #86efac;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.order-pwa-nudge-text {
  font-size: 12px;
  color: #166534;
  font-weight: 600;
  flex: 1;
  min-width: 170px;
}

.order-pwa-nudge-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* ==========================================================================
   CỬA SỔ MINI APP SHEET DÙNG CHUNG (TRỢ LÝ TUỔI & KG / SỔ ĐƠN QUEN / CÀI APP)
   ========================================================================== */
body.nd-mini-modal-open {
  overflow: hidden;
}

.nd-mini-backdrop {
  position: fixed;
  inset: 0;
  z-index: 285;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nd-mini-backdrop.open {
  display: flex;
  animation: pdBackdropFade 0.14s ease-out;
}

.nd-mini-sheet {
  width: 100%;
  max-width: 680px;
  height: min(90vh, 840px);
  background: #f8fafc;
  border-radius: 22px;
  box-shadow: 0 25px 55px -12px rgba(15, 23, 42, 0.36);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.nd-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.nd-mini-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nd-mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-mini-head-titles {
  min-width: 0;
}

.nd-mini-head-titles h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-mini-head-titles p {
  font-size: 11.8px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-mini-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Thanh chuyển Tab bên trong Mini App */
.nd-mini-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.nd-mini-nav-tab {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12.2px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.14s ease;
}

.nd-mini-nav-tab.active {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.12);
}

.nd-mini-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nd-mini-footer {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.nd-mini-footer-cart {
  font-size: 12.8px;
  font-weight: 700;
  color: #0f172a;
}

.nd-mini-footer-btn {
  border: none;
  border-radius: 11px;
  padding: 9px 15px;
  background: #e11d48;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* ==========================================================================
   TAB 1: 👶 TRỢ LÝ CHỌN SỮA & SIZE TÃ THEO THÁNG TUỔI & CÂN NẶNG BÉ
   ========================================================================== */
.baby-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.baby-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baby-label {
  font-size: 12.8px;
  font-weight: 800;
  color: #0f172a;
}

.baby-name-inline {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12.2px;
  font-family: inherit;
  width: 145px;
  color: #0f172a;
  background: #f8fafc;
}

.baby-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baby-chip {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12.2px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}

.baby-chip.active {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.22);
}

.baby-weight-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.baby-weight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baby-weight-val {
  font-size: 15px;
  font-weight: 800;
  color: #be123c;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #fda4af;
}

.baby-weight-slider {
  width: 100%;
  accent-color: #e11d48;
  cursor: pointer;
}

.baby-weight-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.baby-wt-pill {
  border: 1px solid #fecdd3;
  background: #ffffff;
  color: #881337;
  font-size: 11.4px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.baby-wt-pill.active {
  background: #be123c;
  border-color: #be123c;
  color: #ffffff;
}

.baby-chubby-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.baby-chubby-check input {
  width: 16px;
  height: 16px;
  accent-color: #e11d48;
}

/* Thẻ Kết luận Tư vấn Size Tã & Giai đoạn Sữa */
.baby-advice-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 15px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.baby-advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.baby-advice-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 9px 10px;
}

.baby-advice-kicker {
  font-size: 10.8px;
  font-weight: 700;
  color: #fda4af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.baby-advice-main {
  font-size: 13.8px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.baby-advice-sub {
  font-size: 11.4px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.38;
}

/* Kệ Hàng Gợi Ý Tức Thì Trong Mini App */
.baby-res-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.baby-res-tabs::-webkit-scrollbar {
  display: none;
}

.baby-res-tab {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.2px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.baby-res-tab.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.mini-prod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-prod-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-prod-row.in-cart {
  border-color: #6ee7b7;
  background: #f0fdf4;
}

.mini-prod-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-prod-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fff1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  cursor: pointer;
}

.mini-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.mini-prod-info {
  flex: 1;
  min-width: 0;
}

.mini-prod-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  cursor: pointer;
}

.mini-prod-title:hover {
  color: #e11d48;
}

.mini-prod-desc {
  font-size: 11.4px;
  color: #64748b;
  margin-top: 2px;
}

.mini-prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-unit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-unit-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11.2px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}

.mini-unit-btn.active {
  background: #fff1f2;
  border-color: #e11d48;
  color: #be123c;
}

.mini-buy-btn {
  border: none;
  border-radius: 9px;
  padding: 7px 12px;
  background: #e11d48;
  color: #ffffff;
  font-size: 12.2px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.mini-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #10b981;
  background: #ecfdf5;
  border-radius: 9px;
  height: 32px;
  overflow: hidden;
}

.mini-step-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: #10b981;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.mini-step-btn[data-mstep="dec"] {
  background: #d1fae5;
  color: #065f46;
}

.mini-step-txt {
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
}

.mini-push-grid-btn {
  width: 100%;
  border: 1px dashed #94a3b8;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   TAB 2: 🔄 SỔ ĐƠN QUEN & ĐẶT LẠI ĐƠN CŨ 1 CHẠM
   ========================================================================== */
.reorder-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reorder-sec-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.freq-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
}

.freq-item-info {
  flex: 1;
  min-width: 0;
}

.freq-item-name {
  font-size: 12.6px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.freq-item-meta {
  font-size: 11.2px;
  color: #64748b;
  margin-top: 2px;
}

.freq-add-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  background: #059669;
  color: #ffffff;
  font-size: 11.8px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.history-order-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.history-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #e2e8f0;
}

.history-order-code {
  font-size: 12.5px;
  font-weight: 800;
  color: #be123c;
  background: #fff1f2;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #fecdd3;
}

.history-order-time {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.history-order-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-line {
  font-size: 12.4px;
  color: #1e293b;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.history-line-oos {
  color: #94a3b8;
  text-decoration: line-through;
}

.history-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.history-reorder-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  background: #059669;
  color: #ffffff;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.history-del-btn {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.reorder-empty-box {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   TAB 3: 📲 CÀI APP NAM DUNG RA MÀN HÌNH CHÍNH ĐIỆN THOẠI (PWA)
   ========================================================================== */
.pwa-hero-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 55%, #eff6ff 100%);
  border: 1px solid #fecdd3;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.pwa-app-icon-preview {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.25);
  overflow: hidden;
  background: #e11d48;
}

.pwa-app-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.pwa-hero-desc {
  font-size: 12.8px;
  color: #475569;
  line-height: 1.48;
  max-width: 480px;
}

.pwa-primary-install-btn {
  width: 100%;
  max-width: 340px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  background: #e11d48;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

.pwa-installed-pill {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
}

.pwa-guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-guide-card.highlight-env {
  border-color: #fb7185;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
}

.pwa-guide-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwa-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-step-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.6px;
  color: #334155;
  line-height: 1.45;
}

.pwa-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffe4e6;
  color: #be123c;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-copy-link-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   TAB 4: VÍ ĐIỂM GIA ĐÌNH (1 CHỦ VÍ + 3 NGƯỜI THÂN) & BĂNG-RÔN GIỎ HÀNG
   ========================================================================== */
.fam-hero-card {
  border-radius: 16px;
  padding: 15px 16px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fam-hero-card.is-owner {
  background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 100%);
  border: 1.5px solid #fcd34d;
}

.fam-hero-card.is-member {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1.5px solid #6ee7b7;
}

.fam-hero-card.is-guest {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border: 1.5px solid #fde68a;
}

.fam-role-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.2px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #92400e;
}

.fam-hero-card.is-member .fam-role-pill {
  color: #065f46;
}

.fam-wallet-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.fam-pts-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 13px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fam-pts-big {
  font-size: 21px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.15;
}

.fam-hero-card.is-member .fam-pts-big {
  color: #047857;
}

.fam-pts-meta {
  font-size: 11.8px;
  color: #475569;
  line-height: 1.45;
}

.fam-notice-banner {
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  color: #065f46;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 12.6px;
  font-weight: 700;
  line-height: 1.45;
}

.fam-auth-alert-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 12px 14px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
}

.fam-invite-share-box {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fam-invite-url-line {
  background: #ffffff;
  border: 1px dashed #16a34a;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

.fam-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fam-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.fam-member-card {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fam-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fam-member-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.fam-member-rel {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11.2px;
  font-weight: 800;
}

.fam-member-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.42;
}

.fam-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  align-self: flex-start;
}

.fam-auth-pill.is-locked {
  background: #f1f5f9;
  color: #475569;
}

.fam-auth-pill.is-open {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.fam-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fam-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.fam-btn.primary {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.fam-btn.emerald {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.fam-btn.amber {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.fam-btn.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.fam-input {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
}

.fam-input:focus {
  outline: none;
  border-color: #fb7185;
}

.fam-rel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fam-rel-chip {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.fam-rel-chip.active {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
}

.fam-code-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 13px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.fam-code-digits {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #b45309;
  background: #ffffff;
  padding: 5px 16px;
  border-radius: 10px;
  border: 1px solid #fde68a;
}

.fam-wallet-switch-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fam-wallet-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.fam-wallet-opt-btn.active {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

/* Băng-rôn Ví Gia Đình ngay trong Giỏ Đặt Hàng (#cartBackdrop) */
.cart-family-banner-slot {
  margin-bottom: 11px;
}

.cart-fam-card {
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fffbeb 100%);
  border: 1.5px solid #6ee7b7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-fam-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-fam-title {
  font-size: 12.6px;
  font-weight: 800;
  color: #065f46;
}

.cart-fam-link-btn {
  border: none;
  background: #ffffff;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11.4px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cart-fam-guest-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* Thẻ Mã Vạch Tích Điểm Tại Quầy (Chuẩn ISO Code-128C • Nền trắng tương phản tối đa) */
.fam-pos-barcode-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 11px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.fam-pos-barcode-card.is-zoomed {
  padding: 16px 14px 14px;
  border: 2px solid #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.fam-pos-barcode-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fam-pos-barcode-kicker {
  font-size: 11.4px;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.2px;
}

.fam-pos-zoom-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11.2px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.fam-pos-svg-stage {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  padding: 8px 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.fam-pos-barcode-card.is-zoomed .fam-pos-svg-stage {
  max-width: 420px;
  padding: 14px 8px 8px;
}

.fam-pos-svg-stage svg {
  width: 100%;
  height: 62px;
  display: block;
}

.fam-pos-barcode-card.is-zoomed .fam-pos-svg-stage svg {
  height: 104px;
}

.fam-pos-digits-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fam-pos-digits {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.fam-pos-barcode-card.is-zoomed .fam-pos-digits {
  font-size: 22px;
  letter-spacing: 2.2px;
}

.fam-pos-eye-btn {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.fam-pos-hint {
  font-size: 11.2px;
  color: #64748b;
  text-align: center;
  line-height: 1.38;
}

@media (max-width: 768px) {
  .nd-miniapp-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .nd-dock-btn {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .nd-dock-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 16px;
  }

  .nd-dock-title {
    font-size: 12.4px;
    width: 100%;
  }

  .nd-dock-sub {
    font-size: 10.6px;
    width: 100%;
  }

  .nd-mini-nav-tabs {
    padding: 7px 10px;
    gap: 5px;
  }

  .nd-mini-nav-tab {
    font-size: 11.4px;
    padding: 8px 4px;
  }

  .header-pwa-btn {
    display: none;
  }

  .nd-mini-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .nd-mini-sheet {
    max-width: 100%;
    height: 94vh;
    height: 94dvh;
    border-radius: 20px 20px 0 0;
    border: none;
  }

  .baby-advice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .nd-dock-title {
    font-size: 11px;
  }
  .nd-dock-sub {
    display: none;
  }
}

/* ==========================================================================
   TRỢ LÝ HƯỚNG DẪN KHÁCH HÀNG 1 CHẠM (#ndGuideBackdrop • 6 Thẻ Thực Chiến)
   ========================================================================== */
.quick-guide-pill {
  border: 1.5px solid #0d9488;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  color: #0f766e;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.13);
  transition: all 0.15s ease;
}

.quick-guide-pill:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
}

.cart-header-actions,
.nd-mini-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.cart-help-btn,
.nd-mini-help-btn {
  border: 1.5px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.cart-help-btn:hover,
.nd-mini-help-btn:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.pd-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.pd-help-btn:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.nd-chat-help-btn {
  font-weight: 800;
  background: rgba(20, 184, 166, 0.24) !important;
  border-color: rgba(153, 246, 228, 0.55) !important;
}

body.nd-guide-modal-open {
  overflow: hidden;
}

.nd-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 380;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nd-guide-backdrop.open {
  display: flex;
}

.nd-guide-sheet {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  max-height: 90dvh;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ndGuidePopIn 0.18s ease-out;
}

@keyframes ndGuidePopIn {
  from {
    opacity: 0.86;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nd-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #fff1f2 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.nd-guide-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nd-guide-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.24);
}

.nd-guide-head-titles {
  min-width: 0;
}

.nd-guide-head-titles h3 {
  margin: 0;
  font-size: 15.8px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.nd-guide-head-titles p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
}

.nd-guide-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-guide-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nd-guide-body {
  flex: 1;
  overflow-y: auto;
  padding: 13px 15px 15px;
  -webkit-overflow-scrolling: touch;
}

.nd-guide-greeting {
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 9.5px 12px;
  font-size: 13.2px;
  line-height: 1.48;
  color: #1e293b;
  margin-bottom: 10px;
}

.nd-guide-search-wrap {
  position: relative;
  margin-bottom: 9px;
}

.nd-guide-search-inp {
  width: 100%;
  padding: 9.5px 36px 9.5px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nd-guide-search-inp:focus {
  background: #ffffff;
  border-color: #0d9488;
}

.nd-guide-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nd-guide-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.nd-guide-cat-pill {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12.4px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.nd-guide-cat-pill.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
  box-shadow: 0 2px 7px rgba(13, 148, 136, 0.22);
}

.nd-guide-topics-list {
  display: block;
}

.nd-guide-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nd-guide-item:last-child {
  margin-bottom: 0;
}

.nd-guide-item:hover {
  border-color: #99f6e4;
}

.nd-guide-item.is-open {
  border-color: #0d9488;
  background: #f8fafc;
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.11);
}

.nd-guide-qbtn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 13px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.nd-guide-qleft {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.nd-guide-qicon {
  font-size: 19px;
  line-height: 1.3;
  flex-shrink: 0;
}

.nd-guide-qtitle {
  font-size: 14.2px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.42;
  white-space: normal;
  overflow-wrap: break-word;
}

.nd-guide-qtag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.2px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  padding: 1.5px 8px;
}

.nd-guide-qchev {
  font-size: 12.5px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.nd-guide-item.is-open .nd-guide-qchev {
  transform: rotate(180deg);
  color: #0d9488;
}

.nd-guide-abody {
  display: none;
  padding: 2px 13px 13px;
  border-top: 1px dashed #cbd5e1;
  background: #ffffff;
  border-radius: 0 0 12.5px 12.5px;
}

.nd-guide-item.is-open .nd-guide-abody {
  display: block;
}

.nd-guide-steps {
  margin: 10px 0 0;
  padding-left: 19px;
  font-size: 13.8px;
  line-height: 1.55;
  color: #1e293b;
}

.nd-guide-steps li {
  margin-bottom: 6px;
}

.nd-guide-steps li:last-child {
  margin-bottom: 0;
}

.nd-guide-steps li strong {
  color: #0f172a;
}

.nd-guide-tip {
  margin-top: 9px;
  padding: 8.5px 11px;
  border-radius: 10px;
  font-size: 12.6px;
  line-height: 1.46;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.nd-guide-tip.is-shield {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.nd-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.nd-guide-act-btn {
  border: 1.5px solid #0d9488;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8.5px 13px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
  transition: transform 0.12s ease, opacity 0.12s ease;
  text-decoration: none;
}

.nd-guide-act-btn:active {
  transform: scale(0.98);
}

.nd-guide-act-btn.secondary {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
  box-shadow: none;
}

.nd-guide-act-btn.outline {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: none;
}

.nd-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 15px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.nd-guide-footer-note {
  font-size: 12.2px;
  font-weight: 700;
  color: #475569;
}

.nd-guide-footer-btns {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nd-guide-zalo-btn,
.nd-guide-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.nd-guide-zalo-btn {
  background: #0068ff;
  color: #ffffff;
}

.nd-guide-call-btn {
  background: #ffffff;
  color: #be123c;
  border: 1.5px solid #fda4af;
}

@keyframes guideSpotlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.62);
  }
  65% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

.guide-spotlight-pulse {
  outline: 3px solid #0d9488 !important;
  outline-offset: 3px;
  animation: guideSpotlightPulse 1.15s ease-out 2;
}

@media (max-width: 768px) {
  .nd-guide-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .nd-guide-sheet {
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border: none;
  }

  .nd-guide-search-inp {
    font-size: 16px !important;
  }

  .cart-help-btn,
  .nd-mini-help-btn {
    padding: 5px 9px;
    font-size: 11.4px;
  }
}

@media (max-width: 400px) {
  .cart-help-btn,
  .nd-mini-help-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}
