/* ============================================================
   NSL MODERN LAYER  — Phase 1 Visual Polish
   Import this AFTER style.default.css and custom.css
   ============================================================ */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Brand — Rose + Amber */
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fff1f2;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  /* CTA Action Buttons */
  --cta: #059669;
  --cta-dark: #047857;

  /* Neutrals */
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #d2d2d7;
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;

  /* Feedback */
  --success: #2e9e5b;
  --danger: #d63b3b;
  --warning: #f0a500;

  /* Elevation */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 180ms;
}

/* ── Base Typography ─────────────────────────────────────────── */
body {
  font-family:
    "Sarabun",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sarabun", sans-serif;
  color: var(--text-main);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2.25rem;
  font-weight: 600;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  line-height: 1.75;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar.navbar-default {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition:
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.navbar.navbar-default.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-default .navbar-brand {
  padding: 12px 15px;
}

.navbar.navbar-default .navbar-nav > li > a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 18px 14px;
  transition: color var(--duration) var(--ease);
}
.navbar.navbar-default .navbar-nav > li > a:hover,
.navbar.navbar-default .navbar-nav > li.active > a {
  color: var(--primary);
  background: transparent;
}

/* ── Top bar ─────────────────────────────────────────────────── */
#top {
  background: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 9px 22px;
  transition: all var(--duration) var(--ease);
  border: none;
}

.btn-primary,
.btn.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 107, 103, 0.25);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(27, 107, 103, 0.35);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active,
.btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(27, 107, 103, 0.2);
}

.btn-default {
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-default:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger);
  box-shadow: 0 2px 8px rgba(214, 59, 59, 0.25);
}
.btn-danger:hover {
  background: #b52d2d;
  transform: translateY(-1px);
}

.btn-success,
.btn.green {
  background: var(--success) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(46, 158, 91, 0.25);
}
.btn-success:hover,
.btn.green:hover {
  background: #257a47 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 158, 91, 0.35);
}

.btn-outline-rounded {
  border-radius: var(--radius-xl) !important;
  padding: 10px 36px;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
}
.btn-outline-rounded:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ── Cards / Boxes ───────────────────────────────────────────── */
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 28px;
  transition: box-shadow var(--duration) var(--ease);
}
#box1 {
  background: #fff0f0;
}
.box:hover {
  box-shadow: var(--shadow-md);
}
.box .box-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -24px -24px 24px;
  padding: 18px 24px;
}
.box .box-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin: 24px -24px -24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.box .box-footer .pull-left,
.box .box-footer .pull-right {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.box .box-footer .pull-right {
  margin-left: auto;
}
@media (max-width: 575px) {
  .box .box-footer {
    display: flex;
    flex-wrap: nowrap;
    padding: 8px 6px;
    gap: 4px;
  }
  .box .box-footer .pull-left,
  .box .box-footer .pull-right {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .box .box-footer .pull-left {
    justify-content: flex-start;
    margin-right: auto;
  }
  .box .box-footer .pull-right {
    justify-content: flex-end;
    margin-left: auto;
  }
  .box .box-footer .btn,
  .box .box-footer a.btn,
  .box .box-footer .btn-lg,
  .box .box-footer a.btn-lg {
    box-sizing: border-box;
    padding: 5px 7px !important;
    font-size: 0.85rem !important;
    min-height: 38px;
  }
  .box .box-footer .pull-left .btn,
  .box .box-footer .pull-right .btn {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
  }
  .box-footer .btn-nsl-bilingual {
    gap: 0;
    line-height: 1.15 !important;
  }
  .box-footer .btn-nsl-bilingual .btn-th {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }
  .box-footer .btn-nsl-bilingual .btn-en {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
  }
  .box .box-footer .nsl-btn-submit-payment {
    min-width: 0;
    min-height: 38px;
    padding: 5px 7px !important;
    font-size: 0.85rem !important;
    line-height: 1.15 !important;
  }
  .box .box-footer .nsl-btn-submit-payment .nsl-btn-line-th {
    font-size: 0.85rem !important;
  }
  .box .box-footer .nsl-btn-submit-payment .nsl-btn-line-en {
    font-size: 0.65rem !important;
  }
  .box .box-footer .pull-left .btn.hide,
  .box .box-footer .pull-right .btn.hide {
    display: none !important;
  }
}

/* ── Panels (Bootstrap 3) ────────────────────────────────────── */
.panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-heading {
  font-weight: 600;
  font-size: 15px;
}
.panel-default > .panel-heading {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-main);
}
.panel-primary > .panel-heading {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ── Form Controls ───────────────────────────────────────────── */
.form-control {
  border-radius: var(--radius-sm);
  border: 1.5px solid #d4dcdb;
  font-family: "Sarabun", sans-serif;
  font-size: 15px;
  color: var(--text-main);
  padding: 9px 14px;
  height: auto;
  box-shadow: none;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 103, 0.15);
  outline: none;
}

label {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 6px;
}

/* ── Section Headings ────────────────────────────────────────── */
#hot h2,
.section-title {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ── Main Slider ─────────────────────────────────────────────── */
#main-slider {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 36px;
}

/* ── Product cards ───────────────────────────────────────────── */
.product {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product .image img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ── Booking steps (round-tabs) ──────────────────────────────── */
.board {
  border-radius: var(--radius-lg);
  overflow: visible;
}
span.round-tabs {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: all var(--duration) var(--ease);
}
span.round-tabs.one {
  color: var(--success);
  border: 2px solid var(--success);
}
span.round-tabs.two {
  color: var(--warning);
  border: 2px solid var(--warning);
}
span.round-tabs.three {
  color: var(--primary);
  border: 2px solid var(--primary);
}
span.round-tabs.four {
  color: #9b59b6;
  border: 2px solid #9b59b6;
}
span.round-tabs.five {
  color: var(--accent);
  border: 2px solid var(--accent);
}

li.active span.round-tabs {
  border: 3px solid var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-light);
  background: var(--surface) !important;
}
.nav-tabs > li.active:after {
  border-bottom-color: var(--primary);
}
.board .liner {
  background: var(--border);
}

/* ── Loading spinner (modern) ────────────────────────────────── */
.loading:before {
  background-color: rgba(15, 30, 30, 0.45);
}
.loading:not(:required):after {
  width: 2em;
  height: 2em;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ns-spin 0.7s linear infinite;
  box-shadow: none;
  background: transparent;
  margin-top: -1em;
}

@keyframes ns-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── PDPA Cookie banner ──────────────────────────────────────── */
.cookie {
  width: 340px;
  height: auto;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
  right: 20px;
  bottom: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie .txt {
  float: none;
  width: auto;
  flex: 1;
}
.txt p {
  color: var(--text-main);
  font-size: 13px;
  margin: 0;
}
.cookie .accept {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  color: #fff !important;
  flex-shrink: 0;
  transition: background var(--duration) var(--ease);
}
.cookie .accept:hover {
  background: var(--primary-dark);
}

/* ── Tables ──────────────────────────────────────────────────── */
.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table > thead > tr > th {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
}
.table > tbody > tr > td {
  padding: 12px 16px;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--text-muted);
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background: #f6fbfb;
}
.table-hover > tbody > tr:hover {
  background: var(--primary-light);
}

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  padding: 14px 18px;
}
.alert-success {
  background: #e8f7ee;
  color: #1e6b40;
}
.alert-danger {
  background: #fdecea;
  color: #9b2020;
}
.alert-warning {
  background: #fff8e6;
  color: #7a5500;
}
.alert-info {
  background: #e8f4fd;
  color: #0d5c8a;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 9px;
}

/* ── Modals ──────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: var(--primary);
  color: #fff;
  border-bottom: none;
  padding: 18px 24px;
}
.modal-header h4,
.modal-header h5 {
  color: #fff;
  font-family: "Sarabun", sans-serif;
  margin: 0;
}
.modal-header .close {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  text-shadow: none;
  font-size: 22px;
}
.modal-header .close:hover {
  color: #fff;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--text-main) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
footer h4,
footer h5,
footer strong {
  color: #fff !important;
  font-family: "Sarabun", sans-serif;
}
footer a {
  color: rgba(255, 255, 255, 0.65) !important;
}
footer a:hover {
  color: #fff !important;
}

/* ── Ribbon ──────────────────────────────────────────────────── */
.ribbon .theribbon {
  background: var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── Section spacing ─────────────────────────────────────────── */
section,
#content > .container {
  padding-top: 16px;
  padding-bottom: 32px;
}

/* ── Wide layout for photoframe / checkout / booking pages ───── */
#basket ~ *,
#content > .container {
  max-width: 1440px !important;
  width: 96% !important;
}
#content > .container {
  max-width: 1440px;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Misc helpers ────────────────────────────────────────────── */
hr {
  border-color: var(--border);
  margin: 28px 0;
}
.text-muted {
  color: var(--text-muted) !important;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .box {
    padding: 16px;
  }
  .box .box-header {
    margin: -16px -16px 16px;
    padding: 14px 16px;
  }
  .box .box-footer {
    margin: 16px -16px -16px;
    padding: 14px 16px;
  }
  .cookie {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .modal-content {
    border-radius: var(--radius-md);
  }
}

/* ── Step Progress Bar ───────────────────────────────────────── */
.board {
  width: 100%;
  margin: 0 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 16px 24px;
}
.board > div.board-inner {
  background: none;
}

.board .nav-tabs {
  position: relative;
  width: 100%;
  margin: 0;
  border: none !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* connector line */
.board .liner {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: absolute;
  left: 10% !important;
  right: 10% !important;
  width: auto !important;
  margin: 0 !important;
  top: 40px;
  z-index: 1;
}

/* override custom.css nav-tabs width: 95% */
.board .nav-tabs {
  width: 100% !important;
  margin: 0 !important;
}

/* each step item */
.board .nav-tabs > li {
  width: 20%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  float: none !important;
  padding: 0 4px;
}

/* hide Bootstrap tab underline triangle */
.board .nav-tabs > li > a,
.board .nav-tabs > li.active > a,
.board .nav-tabs > li.active > a:hover,
.board .nav-tabs > li.active > a:focus {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  padding: 8px 0 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-shadow: none !important;
  outline: none !important;
}
.board .nav-tabs > li > a::after,
.board .nav-tabs > li > a::before {
  display: none !important;
}
.board .nav-tabs > li > a:hover {
  background: transparent !important;
}

/* circle icon */
span.round-tabs {
  width: 60px !important;
  height: 60px !important;
  line-height: 60px !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  background: var(--surface-2) !important;
  border: 2px solid var(--border) !important;
  color: var(--text-muted) !important;
  position: static !important;
  left: auto !important;
  z-index: 2;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 200ms ease;
  box-shadow: var(--shadow-sm);
}

/* hide custom.css triangle on board steps */
.board .nav-tabs > li:after,
.board .nav-tabs > li.active:after {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
}

/* all steps inactive — muted gray */
span.round-tabs.one,
span.round-tabs.two,
span.round-tabs.three,
span.round-tabs.four,
span.round-tabs.five {
  color: #bcc5c4 !important;
  border-color: #dde4e3 !important;
  background: var(--surface-2) !important;
}

/* active step — each with its own color */
.board .nav-tabs > li.active span.round-tabs.one {
  background: #22c222 !important;
  border-color: #22c222 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(34, 194, 34, 0.35) !important;
  transform: scale(1.1);
}
.board .nav-tabs > li.active span.round-tabs.two {
  background: #d4960a !important;
  border-color: #d4960a !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(212, 150, 10, 0.35) !important;
  transform: scale(1.1);
}
.board .nav-tabs > li.active span.round-tabs.three {
  background: #3e5e9a !important;
  border-color: #3e5e9a !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(62, 94, 154, 0.35) !important;
  transform: scale(1.1);
}
.board .nav-tabs > li.active span.round-tabs.four {
  background: #9b59d0 !important;
  border-color: #9b59d0 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(155, 89, 208, 0.35) !important;
  transform: scale(1.1);
}
.board .nav-tabs > li.active span.round-tabs.five {
  background: #dc760d !important;
  border-color: #dc760d !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(220, 118, 13, 0.35) !important;
  transform: scale(1.1);
}

/* step label text — shown BELOW circle via flex order */
.board .text {
  position: static !important;
  order: 2;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: "Sarabun", sans-serif;
  padding: 0 2px;
  top: auto !important;
}
.board .nav-tabs > li > a {
  order: 1;
}
.board .nav-tabs > li.active .text {
  color: var(--primary);
  font-weight: 600;
}

/* ── Step progress bar — mobile ──────────────────────────────── */
@media (max-width: 575px) {
  .board {
    padding: 16px 4px;
  }
  .board .nav-tabs > li {
    padding: 0 1px;
  }
  span.round-tabs {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 13px !important;
  }
  .board .liner {
    top: 22px;
  }
  .board .text {
    font-size: 8px;
    line-height: 1.25;
    margin-top: 5px;
    padding: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ── Photo Package Cards (photoframe.html) ───────────────────── */
#box_product_set.row {
  display: flex;
  flex-wrap: wrap;
}
.nsl-pkg-col {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.nsl-pkg-card {
  background: var(--surface);
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 18px rgba(140, 110, 20, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  height: 100%;
}
.nsl-pkg-card:hover {
  box-shadow: 0 10px 32px rgba(140, 110, 20, 0.2);
  transform: scale(1.015);
}
.nsl-pkg-card.nsl-pkg-added {
  background: #fff0f0 !important;
  box-shadow:
    0 0 0 3px var(--primary),
    0 2px 12px rgba(0, 0, 0, 0.08);
}
.nsl-pkg-card.nsl-pkg-added .nsl-pkg-body,
.nsl-pkg-card.nsl-pkg-added .nsl-pkg-footer {
  background: #fff0f0;
}

/* image area — Apple style: white bg, product shown full */
.nsl-pkg-img {
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.nsl-pkg-img > a:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.nsl-pkg-img > a:first-child img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}
.nsl-pkg-card:hover .nsl-pkg-img > a:first-child img {
  transform: scale(1.06);
}
/* thumbnail row — below the main image, between image area and body */
.nsl-pkg-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 8px 10px;
  background: #fff;
  flex-wrap: wrap;
}
.nsl-pkg-thumbs a {
  display: block;
  flex-shrink: 0;
}
.nsl-pkg-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: block;
}

/* SALE badge */
.nsl-pkg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(214, 59, 59, 0.35);
}

/* body — Apple: centered text */
.nsl-pkg-body {
  padding: 20px 24px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  background: #f5f5f7;
}
.nsl-pkg-headline {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.nsl-pkg-title {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: "Sarabun", sans-serif !important;
  color: #2563eb;
  margin: 0;
  line-height: 1.35;
  border: none !important;
  padding: 0 !important;
  letter-spacing: -0.01em;
}

/* price — Apple: dark, "From ฿X,XXX" style */
.nsl-pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.nsl-price-from {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.nsl-price-cur {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--danger);
  letter-spacing: -0.02em;
  font-family: "Sarabun", sans-serif;
}
.nsl-price-old {
  font-size: 1.5rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}
.nsl-price-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* detail */
.nsl-pkg-detail {
  font-size: 12px;
  font-family: "Sarabun", sans-serif;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
  text-align: center;
  white-space: pre-line;
}

/* footer / button area */
.nsl-pkg-footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f7;
}

/* ── Package card stepper — same compact size as addition stepper */
.nsl-stepper-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-main);
}
.nsl-stepper-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.nsl-stepper-input.nsl-stepper--active,
.nsl-stepper-display.nsl-stepper--active {
  background: #cce4ff !important;
  color: #004aad !important;
  border-color: #99caff !important;
  font-weight: 800;
}

/* ── Add to Cart button — Apple blue pill */
.nsl-btn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
  line-height: 1;
  font-family: "Sarabun", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
.nsl-btn-cart .fa {
  font-size: 12px;
  flex-shrink: 0;
}
.nsl-btn-cart:hover {
  background: var(--primary-dark);
  color: #fff !important;
  opacity: 1;
}

/* ── Bilingual button text */
.nsl-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.nsl-btn-th {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.nsl-btn-en {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1.2;
}

/* ── Added state — slightly darker blue */
.nsl-btn-cart--added {
  background: #005bb8 !important;
}
.nsl-btn-cart--added:hover {
  background: #004a99 !important;
  color: #fff !important;
}

/* ── Remove button = red outline */
.nsl-btn-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: #fff;
  color: var(--danger) !important;
  border-radius: var(--radius-sm);
  border: 2px solid var(--danger);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--duration) var(--ease);
}
.nsl-btn-remove:hover {
  background: var(--danger);
  color: #fff !important;
}

/* ── Added badge on image corner */
.nsl-pkg-badge-added {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #b8860b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Cart alert banner */
/* ── Cart panel — Apple-style white dropdown ──────────────────── */
#alert_cart {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 1050;
  width: 390px;
  max-height: 60vh;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06);
  border: none;
  padding: 0;
  display: none;
  font-family: "Sarabun", sans-serif;
  flex-direction: column;
}
#alert_cart.show-flex,
#alert_cart[style*="display: block"],
#alert_cart[style*="display:block"] {
  display: flex !important;
}
#cart-header {
  flex-shrink: 0;
  padding: 16px 20px;
  background: #cce4ff;
  border-radius: 18px 18px 0 0;
}
#cart-header .cart-title-text {
  color: #004aad;
}
#cart-header .cart-close-btn {
  background: rgba(0, 74, 173, 0.12);
  color: #004aad !important;
}
#cart-header .cart-close-btn:hover {
  background: var(--danger);
  color: #fff !important;
}
#cart-header .cart-title-row {
  border-bottom: none;
  margin: 0;
  padding-bottom: 0;
}
#cart-footer {
  flex-shrink: 0;
  padding: 14px 20px 20px;
  border-top: 2px solid var(--border);
  margin-top: 0;
}

/* Cart title row — title left, close button right */
.cart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}
.cart-title-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Sarabun", sans-serif;
}
.cart-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted) !important;
  font-size: 14px;
  text-decoration: none !important;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  flex-shrink: 0;
}
.cart-close-btn:hover {
  background: var(--danger);
  color: #fff !important;
}

@media (max-width: 460px) {
  #alert_cart {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}

/* Scrollable content area */
#alert_cart_detail {
  flex: 1;
  padding: 0 20px;
  overflow-y: auto;
  color: var(--text-main);
}
#alert_cart_detail::-webkit-scrollbar {
  width: 4px;
}
#alert_cart_detail::-webkit-scrollbar-track {
  background: #f5f5f7;
}
#alert_cart_detail::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Cart title h5 — kept for fallback, layout handled by .cart-title-row */
#alert_cart_detail h5 {
  display: none;
}

/* Section label (ภาพชุด / เพิ่มเติม) */
#alert_cart_detail u {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  margin: 14px 0 6px;
  color: var(--text-muted);
}
#alert_cart_detail u.cart-sec-set,
#alert_cart_detail u.cart-sec-add {
  color: #0071e3;
}

/* Item list */
#alert_cart_detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#alert_cart_detail li {
  font-size: 13px;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}
#alert_cart_detail li:last-child {
  border-bottom: none;
}

/* Total in sticky footer */
#cart-footer h4 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: -14px -20px -20px;
  font-family: "Sarabun", sans-serif;
  background: var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 14px 20px;
}
#alert_cart_detail h4[style*="color:#ff0a0a"],
#alert_cart_detail h4[style*="color:#2200f2"] {
  border-top: none;
  padding-top: 6px;
  margin-top: 4px;
  font-size: 0.9rem;
}

/* Additional / Special section boxes */
#box_product_addition {
  border: 1.5px solid #428bca !important;
  border-radius: var(--radius-md);
}
#box_product_special {
  border: 1.5px solid var(--accent) !important;
  border-radius: var(--radius-md);
}

/* Responsive */
@media (max-width: 768px) {
  .nsl-pkg-col {
    padding: 6px;
  }
  .nsl-pkg-body {
    padding: 14px 16px 10px;
  }
  .nsl-pkg-footer {
    padding: 0 16px 14px;
  }
  .nsl-price-cur {
    font-size: 2rem;
  }

  /* addition items — 2-column on mobile */
  /* addition items — 2-row layout on mobile */
  .nsl-add-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px 14px 0;
  }

  /* row 1: thumbnail + title/price */
  .nsl-add-thumb {
    flex: 0 0 100px;
    height: 70px;
  }
  .nsl-add-info {
    flex: 1;
    min-width: 0;
  }
  .nsl-add-title {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }
  .nsl-add-price {
    font-size: 1.1rem;
    letter-spacing: 0;
  }
  .nsl-add-price span {
    font-size: 0.78rem;
  }

  /* make row 1 horizontal (thumb + info side by side) */
  .nsl-add-item > .nsl-add-thumb,
  .nsl-add-item > .nsl-add-info {
    align-self: center;
  }
  .nsl-add-item {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nsl-add-thumb {
    flex: 0 0 100px;
  }
  .nsl-add-info {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  /* row 2: stepper + total — full width, space-between */
  .nsl-add-stepper {
    flex: 0 0 auto;
    order: 10;
  }
  .nsl-add-total {
    flex: 0 0 auto;
    order: 10;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
  }
  /* push stepper+total to their own row */
  .nsl-add-stepper {
    margin-left: 0;
  }
  .nsl-add-item::after {
    content: "";
    flex: 0 0 100%;
    order: 9;
  }

  .nsl-stepper-btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .nsl-stepper-input {
    width: 40px !important;
    height: 34px !important;
    font-size: 0.95rem;
  }

  /* total: single line "รวม 260 บาท" */
  .nsl-add-total {
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
  }
  .nsl-add-total-label {
    font-size: 0.9rem;
  }
  .nsl-add-total-val {
    font-size: 2rem;
  }
}

/* ── Navbar scroll effect (JS adds .scrolled) ────────────────── */

/* =============================================================
   PHASE 3 — Page UX
   ============================================================= */

/* ── Form section headings (booking.html) ────────────────────── */
.box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 12px 0 10px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.box h3 .fa {
  color: var(--primary);
  font-size: 1rem;
}
.box h4 {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  font-family: "Sarabun", sans-serif;
  margin-top: 0;
}

/* ── booking.html section headers (match payment.html h2 style) ── */
#customer1 > h3,
#customer2 > h3 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  border-left: 5px solid var(--primary) !important;
  border-bottom: none !important;
  padding: 0 0 0 14px !important;
  margin: 0 0 20px !important;
  display: block !important;
}
#customer1 > h3 .fa,
#customer2 > h3 .fa {
  display: none;
}

/* ── HR divider override (replaces inline style) ─────────────── */
.box hr {
  border-color: var(--primary-light);
  border-top-width: 2px;
  margin: 24px 0;
}

/* ── Required field asterisk ─────────────────────────────────── */
span[style*="color:red"],
span[style*="color: red"] {
  color: var(--danger) !important;
  font-weight: 700;
  font-size: 13px;
  margin-left: 2px;
}

/* ── Legend (payment receipt section headings) ───────────────── */
legend {
  font-family: "Sarabun", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Section divider (booking.html graduate → postal) ─────────── */
.nsl-section-divider {
  border-color: var(--primary) !important;
  border-top-width: 2px;
  opacity: 0.3;
  margin: 28px 0;
}

/* ── Table-in-form (payment receipt form) ────────────────────── */
.box table td {
  padding: 10px 8px;
  vertical-align: middle;
  color: var(--text-muted);
  font-size: 14px;
}
.box table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  width: 220px;
}
.box table tr + tr td {
  border-top: 1px solid var(--border);
}

/* ── Bookcode input (large, prominent) ───────────────────────── */
#bookcode {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ── Status result box (track.html) ─────────────────────────── */
#box_result {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 24px;
}
#box_result h3 {
  border: none;
  color: var(--primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0;
  text-align: center;
}
#show_status {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}
#show_update,
#show_remark {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 4px 0;
}

/* ── QR Code / PromptPay display ─────────────────────────────── */
#renderpp {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}
#renderpp canvas,
#renderpp img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 240px;
}
#promptpay > .box {
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  text-align: center;
}

/* ── File upload (payment slip) ──────────────────────────────── */
#rc_file {
  padding: 24px 16px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary-light);
  cursor: pointer;
  font-size: 14px;
  color: var(--primary);
  transition: background var(--duration) var(--ease);
}
#rc_file:hover {
  background: #d6eeec;
}
#previewFile img {
  border-radius: var(--radius-md);
  max-height: 200px;
  box-shadow: var(--shadow-sm);
  margin: 8px auto;
  display: block;
}

/* ── Progress bar (file upload) ──────────────────────────────── */
.progress {
  height: 6px;
  border-radius: var(--radius-xl);
  background: var(--border);
  overflow: hidden;
  margin: 12px 0;
}
.progress-bar {
  background: var(--primary);
  border-radius: var(--radius-xl);
  transition: width 0.3s var(--ease);
}

/* ── Payment result (success) ────────────────────────────────── */
#pg_return .box.text-center {
  background: var(--primary-light);
  border: 2px solid var(--primary);
}
#pg_return h3 {
  color: var(--primary);
}
#show_bc2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

/* ── Checkbox group container (booking.html postal section) ─── */
.nsl-checkbox-group {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nsl-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.nsl-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.nsl-checkbox-row span {
  flex: 1;
  min-width: 0;
}
.nsl-checkbox-row a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Checkbox / PDPA ─────────────────────────────────────────── */
.checkbox label,
.custom-control-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1.6;
}
.checkbox label a,
.custom-control-label a {
  color: var(--primary);
  text-decoration: underline;
}
/* PDPA custom-control: flex layout so label wraps next to checkbox */
#uaccept_0 ~ label,
.custom-control:has(#uaccept_0) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
/* Fallback: target the wrapper directly via its parent */
.form-group > .checkbox > .custom-control {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0 !important;
}
.form-group > .checkbox > .custom-control .custom-control-input {
  flex-shrink: 0;
  margin-top: 3px;
  position: static !important;
}
.form-group > .checkbox > .custom-control .custom-control-label {
  padding-left: 0 !important;
  flex: 1;
  min-width: 0;
}
.form-group > .checkbox > .custom-control .custom-control-label::before,
.form-group > .checkbox > .custom-control .custom-control-label::after {
  display: none !important;
}

/* ── Warning / info notices ──────────────────────────────────── */
.text-warning {
  color: var(--warning) !important;
  font-weight: 500;
}
.text-danger {
  color: var(--danger) !important;
}

/* ── booking.html box1 (university select wrapper) ─── */
#box1 {
  background: #fff0f0;
}

/* ── University selector grid (booking.html #setOpenUniList) ─── */
#setOpenUniList {
  gap: 14px;
  display: flex !important;
  flex-direction: column;
  padding: 4px 24px;
}
.lblUni {
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.lblUni > .btn {
  display: grid !important;
  grid-template-columns: 130px 4px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 24px;
  padding: 24px !important;
  border-radius: var(--radius-lg) !important;
  border: 2px solid var(--border) !important;
  border-left: 5px solid var(--primary) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
  line-height: 1.4;
  white-space: normal;
  text-align: left !important;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: relative;
  cursor: pointer;
}
.lblUni > .btn::after {
  content: "\f054";
  font-family: "FontAwesome";
  grid-column: 4;
  grid-row: 1 / 3;
  font-size: 1.1rem;
  color: var(--border);
  transition:
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.lblUni > .btn img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 130px !important;
  height: 130px !important;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lblUni > .btn h3 {
  grid-column: 3;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lblUni > .btn h3::after,
.lblUni > .btn h3::before {
  display: none !important;
}
.lblUni > .btn .text-large {
  grid-column: 3;
  grid-row: 2;
  font-size: 1.7rem !important;
  color: var(--text-muted) !important;
  font-weight: 500;
  line-height: 1.8;
  margin: 0;
}
.lblUni > .btn .text-large * {
  font-size: inherit !important;
  font-family: inherit !important;
}
.lblUni > .btn:hover,
.lblUni > .btn:active {
  border-color: var(--primary) !important;
  border-left-color: var(--primary) !important;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f1ff 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15);
  transform: translateX(3px);
}
.lblUni > .btn:hover::after {
  color: var(--primary);
  transform: translateX(3px);
}
.lblUni > .btn:hover h3 {
  color: var(--primary-dark) !important;
}
@media (max-width: 600px) {
  #setOpenUniList {
    padding: 4px 10px;
  }
  .lblUni > .btn {
    grid-template-columns: 52px 4px 1fr auto;
    gap: 4px 10px;
    padding: 10px !important;
  }
  .lblUni > .btn img {
    width: 52px !important;
    height: 52px !important;
  }
  .lblUni > .btn h3 {
    font-size: 1.15rem !important;
    line-height: 1.25;
  }
  .lblUni > .btn .text-large {
    font-size: 1rem !important;
    line-height: 1.4;
  }
}

/* ── rc_amount (payment amount display) ──────────────────────── */
#rc_amount_lb {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

/* ── btn_book_reset (reset order button in navbar) ───────────── */
.btn_book_reset {
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
}

/* ── Box header title row ────────────────────────────────────── */
#box1 h2 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* ── photoframe.html basket h2 ─────────────────────────────── */
#basket .box h2 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* ── Page heading sizes — mobile ─────────────────────────────── */
@media (max-width: 575px) {
  .box h2 {
    font-size: 1.15rem;
  }
  #box1 h2,
  #basket .box h2 {
    font-size: 1.4rem;
    border-left-width: 4px;
    padding-left: 10px;
    margin-bottom: 12px;
  }
}

/* ── Track page extra whitespace fix ─────────────────────────── */
#basket br {
  display: none;
}
#box_result br {
  display: block;
}

/* ── Turnstile / recaptcha container ─────────────────────────── */
#cf-turnstile,
#cf-turnstile-rc1,
#cf-turnstile-rc2 {
  margin: 16px 0;
}

/* ── Index CTA buttons ───────────────────────────────────────── */
.btn-lg.btn-block {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.btn-lg.btn-block .material-symbols-outlined {
  font-size: 22px;
}

/* ── Announce / result alert inside form ─────────────────────── */
#announce:not(:empty),
#rc_result:not(:empty) {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

/* ── Additional / Special order sections ─────────────────────── */
#box_product_addition,
#box_product_special {
  border-radius: var(--radius-md) !important;
  border: none !important;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px !important;
  margin-top: 16px;
}
#box_product_addition {
  border-left: 5px solid var(--primary) !important;
}
#box_product_special {
  border-left: 5px solid var(--primary) !important;
}
#box_product_addition h3,
#box_product_special h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#box_product_addition h3 .fa {
  color: var(--primary);
}
#box_product_special h3 .fa {
  color: var(--primary);
}
#box_product_addition .text-muted,
#box_product_special .text-muted {
  font-size: 0.95rem;
  margin: 10px 0 4px;
}

/* ── Addition item rows (new flex layout) ────────────────────── */
.nsl-add-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.nsl-add-item:hover {
  background: #fafafa;
}
.nsl-add-item:last-child {
  border-bottom: none;
}
.nsl-add-item--selected {
  background: #fff0f0;
}
.nsl-add-item--selected:hover {
  background: #ffe4e4;
}
#remarkProd {
  font-size: 1.6rem;
  font-family: "Sarabun", sans-serif;
  white-space: pre-wrap;
}

/* thumbnail — landscape 3:2 */
.nsl-add-thumb {
  flex-shrink: 0;
  width: 190px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nsl-add-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.nsl-add-thumb img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.nsl-add-thumb img:hover {
  transform: scale(1.06);
}
.nsl-add-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 30px;
}

/* info: title + price */
.nsl-add-info {
  flex: 1;
  min-width: 0;
}
.nsl-add-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 5px;
}
.nsl-add-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.nsl-add-price span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* stepper — pushed to right */
.nsl-add-stepper {
  flex-shrink: 0;
  margin-left: auto;
}

.nsl-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.nsl-stepper-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
  color: var(--text-muted);
  padding: 0;
}
.nsl-stepper-minus:hover {
  background: rgba(214, 59, 59, 0.1);
  color: var(--danger);
}
.nsl-stepper-plus:hover {
  background: rgba(27, 107, 103, 0.1);
  color: var(--primary);
}
.nsl-stepper-input {
  width: 52px !important;
  height: 42px !important;
  text-align: center !important;
  font-weight: 700;
  font-size: 1.6rem;
  border: none !important;
  border-left: 1.5px solid var(--border) !important;
  border-right: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  background: var(--surface-2) !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--text-main);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* total — hidden, replaced by stepper-only layout */
.nsl-add-total {
  display: none !important;
}
.nsl-add-total-label {
  font-size: 1.5rem;
  color: var(--text-muted);
}
.nsl-add-total-val {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* (pill stepper replaced by .nsl-stepper above) */

/* sub-total footer row */
#box_product_addition tfoot tr th,
#box_product_special tfoot tr th {
  padding-top: 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  border-top: 2px solid var(--border);
}
#box_product_addition tfoot tr td,
#box_product_special tfoot tr td {
  padding-top: 16px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  border-top: 2px solid var(--border);
}

/* ── Footer nav buttons — bilingual ─────────────────────────── */
.box-footer .btn-nsl-bilingual {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  gap: 2px;
}
.box-footer .btn-nsl-bilingual .btn-th {
  font-size: 14px;
  font-weight: 700;
}
.box-footer .btn-nsl-bilingual .btn-en {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

/* ============================================================
   Payment Page Styles
   ============================================================ */

/* hide dated breadcrumb on payment page */
#content .breadcrumb {
  display: none;
}

/* ── Payment box (QR / bank transfer) ── */
#promptpay > .box {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  text-align: center;
  padding: 28px;
}

#promptpay h2,
#receipt_submit h2 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 20px;
}

/* QR code container */
#renderpp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#renderpp h1,
#renderpp h3 {
  font-family: "Sarabun", sans-serif !important;
  font-weight: 400;
}
#renderpp h1 {
  font-size: 1.6rem;
  color: var(--primary);
}
#renderpp canvas,
#renderpp img {
  border: 4px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* submit slip button */
#btnReceipt {
  background: var(--primary) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: "Sarabun", sans-serif;
  font-size: 1rem;
  padding: 12px 32px;
  box-shadow: 0 4px 14px rgba(27, 107, 103, 0.3);
}
#btnReceipt:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* ── Receipt submission form ── */
#receipt_submit {
  max-width: 100%;
  margin: 0;
}

#rc_result:empty {
  display: none !important;
}
#rc_result {
  font-family: "Sarabun", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  min-height: 0;
  border-radius: var(--radius-sm);
}

#receipt_submit legend {
  font-family: "Sarabun", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Style form tables as stacked rows */
#receipt_submit table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
#receipt_submit table td:first-child {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  width: 160px;
  vertical-align: middle;
  padding-right: 12px;
}
#receipt_submit table td:last-child {
  vertical-align: middle;
}

/* Bookcode input highlight */
#bookcode {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  letter-spacing: 0.05em;
}

/* Amount display */
#rc_amount_lb {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #c85a11 !important;
}

/* Bank account display */
#rc_promptpayid_lb {
  font-family: "Sarabun", sans-serif;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  line-height: 1.6;
}

/* search result alert */
#rc_result {
  font-family: "Sarabun", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  padding: 16px 24px;
}

/* File upload area */
#rc_file {
  border: 2px dashed var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px !important;
  background: var(--surface-2) !important;
  cursor: pointer;
}
#rc_file:hover {
  border-color: var(--primary) !important;
}

#receipt_submit .small.text-danger {
  font-family: "Sarabun", sans-serif;
  font-size: 12px;
  margin-top: 8px;
  padding-left: 16px;
}

/* Preview image */
#previewFile img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

/* Progress bar */
#progress {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 8px;
}
#progress .progress-bar {
  background: var(--primary);
}

/* Remark input */
#rc_remark {
  margin-top: 6px;
}

/* Submit button */
#btnSubmitRec {
  font-family: "Sarabun", sans-serif !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm) !important;
  margin-top: 4px;
}

/* Bilingual stacked button pattern */
.nsl-btn-bilingual-stacked {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2 !important;
  padding: 8px 12px !important;
  height: auto !important;
}
.nsl-btn-line-th {
  font-family: "Sarabun", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: block;
}
.nsl-btn-line-en {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
  display: block;
}

/* Submit payment button — prominent */
.nsl-btn-submit-payment {
  font-family: "Sarabun", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  padding: 14px 36px !important;
  line-height: 1.3 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 16px rgba(46, 158, 91, 0.35) !important;
  letter-spacing: 0.02em;
  min-width: 200px;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.nsl-btn-submit-payment:not(:disabled):hover {
  box-shadow: 0 6px 24px rgba(46, 158, 91, 0.5) !important;
  transform: translateY(-1px);
}
.nsl-btn-submit-payment .nsl-btn-line-th {
  font-size: 1.15rem;
  font-weight: 800;
}
.nsl-btn-submit-payment .nsl-btn-line-en {
  font-size: 0.82rem;
  opacity: 0.88;
}

/* Search button */
/* ── Download + Search buttons → blue ───────────────────────── */
#btnDL {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
#btnDL:hover {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

#btnFg {
  font-family: "Sarabun", sans-serif;
  background: #0ea5e9;
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
}
#btnFg:hover {
  background: #0284c7;
}

/* ── Payment result box ── */
#pg_return h2 {
  font-family: "Sarabun", sans-serif !important;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
}
#pg_return .box {
  text-align: center;
  padding: 32px;
}
#pg_return .badge.btn {
  background: var(--success);
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}
#pg_return h3 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
}
#pg_return h1 {
  font-family: "Sarabun", sans-serif !important;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* ── Payment Submission — new layout ───────────────────────── */
.nsl-field-label {
  font-family: "Sarabun", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nsl-bookcode-input {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  text-align: center;
  letter-spacing: 0.08em;
}

/* Search row */
.nsl-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: flex-end;
}
.nsl-search-field {
  min-width: 0;
}
.nsl-search-btn-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.nsl-search-hint {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.nsl-search-hint span {
  font-size: 1.1rem;
}
.nsl-search-btn-wrap .btn {
  width: auto;
  min-width: 180px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 1.3rem;
  padding: 0 28px;
}
@media (max-width: 767px) {
  .nsl-search-row {
    grid-template-columns: 1fr;
  }
  .nsl-search-btn-wrap {
    grid-column: 1;
  }
}

/* Search card */
.nsl-payment-search-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px 16px;
  margin-bottom: 20px;
}

/* Payment detail card */
.nsl-payment-detail-card {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
.nsl-payment-col-sm {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
}
.nsl-payment-col-sm .nsl-amount-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nsl-payment-col-lg {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nsl-payment-col-lg .nsl-bank-block {
  flex: 1;
}
@media (max-width: 767px) {
  .nsl-payment-detail-card {
    flex-direction: column;
  }
  .nsl-payment-col-sm {
    flex: unset;
  }
  .nsl-payment-col-sm .nsl-amount-block {
    min-height: 90px;
  }
}

.nsl-amount-block {
  background: #fff5ef;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  box-sizing: border-box;
}
.nsl-amount-label {
  font-family: "Sarabun", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c05a1a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
}
.nsl-amount-value {
  font-family: "Sarabun", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}
#rc_amount_lb {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.nsl-bank-block {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  box-sizing: border-box;
}
.nsl-bank-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.08);
  overflow: hidden;
}
.nsl-bank-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.nsl-bank-info {
  flex: 1;
  min-width: 0;
}
.nsl-bank-label {
  font-family: "Sarabun", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.nsl-bank-value {
  font-family: "Sarabun", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.nsl-bank-accname {
  font-family: "Sarabun", sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-top: 5px;
  opacity: 0.8;
  word-break: break-word;
}
#rc_promptpayid_lb {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  display: inline !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: inherit !important;
}

/* Upload card */
.nsl-upload-card {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 4px;
}
.nsl-upload-key-note {
  color: var(--cta, #e63946) !important;
  font-weight: 600;
}
.nsl-upload-key-note strong {
  color: var(--cta, #e63946);
}
.nsl-submit-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1.5px solid #ffd54f;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.95rem;
  color: #7a5c00;
}
.nsl-submit-reminder i {
  font-size: 1.4rem;
  color: #f5a623;
  flex-shrink: 0;
}
.nsl-submit-reminder strong {
  color: #c0392b;
}
.nsl-upload-title {
  font-family: "Sarabun", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.nsl-upload-card .form-control[type="file"] {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  height: auto;
}
.nsl-upload-card .form-control[type="file"]::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: "Sarabun", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: background var(--duration) var(--ease);
}
.nsl-upload-card .form-control[type="file"]::file-selector-button:hover {
  background: var(--primary-dark, #1557b0);
}

/* File preview */
#previewFile {
  margin-top: 12px;
  text-align: center;
}
#previewFile img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto;
}

/* ── Payment form — mobile sizing ────────────────────────────── */
@media (max-width: 575px) {
  .form-control {
    font-size: 13px;
    padding: 8px 10px;
  }
  label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .nsl-field-label {
    font-size: 0.95rem;
  }
  .nsl-bookcode-input {
    font-size: 1.15rem !important;
  }
  .nsl-search-hint {
    font-size: 1rem;
  }
  .nsl-search-hint span {
    font-size: 0.9rem;
  }
  .nsl-search-btn-wrap .btn {
    min-width: 0;
    height: 38px;
    font-size: 1.05rem;
    padding: 0 18px;
  }
  .nsl-amount-block {
    padding: 10px 14px;
  }
  .nsl-amount-label {
    font-size: 0.9rem;
    min-height: 0;
    margin-bottom: 4px;
  }
  .nsl-amount-value {
    font-size: 1.9rem;
  }
  .nsl-amount-block {
    min-height: 64px;
    justify-content: center;
  }
  .nsl-bank-block {
    padding: 10px 12px;
    gap: 10px;
    min-height: 64px;
    align-items: center;
  }
  .nsl-bank-logo-wrap,
  .nsl-bank-logo-img {
    width: 48px;
    height: 48px;
  }
  .nsl-bank-label {
    font-size: 0.9rem;
  }
  .nsl-bank-value {
    font-size: 1.6rem;
  }
  .nsl-pp-accno {
    font-size: 1.6rem;
  }
  .nsl-pp-accname {
    font-size: 1.6rem;
  }
  .nsl-bank-accname {
    font-size: 1.6rem;
  }
  html body .nsl-upload-card {
    padding: 10px 12px !important;
  }
  html body .nsl-upload-title {
    font-size: 0.85rem !important;
    gap: 5px;
    flex-wrap: wrap;
  }
  html body .nsl-upload-title .fa-upload {
    font-size: 0.95rem !important;
  }
  html body .nsl-upload-title #rc_file_lbl {
    font-size: 0.85rem !important;
  }
  html body .nsl-upload-card .form-control[type="file"] {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
  }
  html body .nsl-upload-card .form-control[type="file"]::file-selector-button {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    margin-right: 8px;
  }
  html body .nsl-upload-card ul.small {
    font-size: 0.72rem !important;
    margin-top: 6px !important;
    padding-left: 16px !important;
  }
  #previewFile img {
    max-height: 200px;
  }
}

/* PromptPay section */
#promptpay h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 20px;
}
.nsl-pp-wrap {
  width: 100%;
}

/* Info row: amount + bank side by side, full width */
.nsl-pp-info-row {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
  align-items: stretch;
}
.nsl-pp-amount-col {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
}
.nsl-pp-bank-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nsl-pp-stretch {
  flex: 1;
}
.nsl-pp-bank-inner {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 18px;
}
.nsl-pp-accno {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.nsl-pp-accname {
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-top: 5px;
  opacity: 0.8;
}
.nsl-pp-warn {
  color: #c0392b;
  font-size: 1.6rem;
  font-weight: 600;
  background: #fff5f5;
  border: 1.5px solid #f5c6cb;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* QR + Bookcode lower section */
.nsl-pp-lower {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}
.nsl-pp-qr-card {
  flex: 0 0 280px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.nsl-pp-qr-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.5;
}
.nsl-pp-qr-label span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
}
.nsl-pp-qr-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: inline-block;
}
.nsl-pp-qr-box #ppqrcode0 {
  width: 200px;
  height: 200px;
}
.nsl-pp-bc-card {
  flex: 1;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.nsl-pp-bc-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}
.nsl-pp-bc-label span {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
}
.nsl-bookcode-display {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
  letter-spacing: 3px;
}
.nsl-bookcode-display a {
  color: var(--primary);
  text-decoration: none;
}
.nsl-bookcode-display a:hover {
  text-decoration: underline;
}
.nsl-pp-bc-hint {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.nsl-pp-notice-card {
  width: 100%;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-top: 16px;
  text-align: left;
}
.nsl-pp-notice-card p {
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.6;
}
.nsl-pp-notice-icon-ok {
  color: #28a745;
}
.nsl-pp-notice-icon-mail {
  color: #3b82f6;
}
.nsl-pp-notice-heading {
  display: inline-block;
  background: #ede4f7;
  color: #7c3aed;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-md);
  margin: 6px 0 6px !important;
}
.nsl-pp-notice-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 14px 0;
}

/* ── PromptPay page mobile ── */
@media (max-width: 767px) {
  .nsl-pp-info-row {
    flex-direction: column;
  }
  .nsl-pp-amount-col {
    flex: unset;
  }
  .nsl-pp-lower {
    flex-direction: column;
  }
  .nsl-pp-qr-card {
    flex: unset;
  }
  .nsl-bookcode-display {
    font-size: 4.5rem;
    letter-spacing: 2px;
  }
  .nsl-pp-accno {
    font-size: 2rem;
  }
}

/* ── Checkout Page ── */
#order-summary h2,
.nsl-co-order-box h2,
#payment_method h2 {
  font-size: 2.1rem;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin-top: 0;
  margin-bottom: 24px;
}

.nsl-co-section-header {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 6px 16px;
  margin-bottom: 14px;
}
.nsl-co-header-graduate {
  background: #8bc34a;
}
.nsl-co-header-postal {
  background: #03a9f4;
}

.nsl-co-info-grid {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  margin-bottom: 8px;
}
.nsl-co-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.5rem;
}
.nsl-co-info-row:last-child {
  border-bottom: none;
}
.nsl-co-label {
  flex: 0 0 200px;
  color: var(--text-muted);
  font-size: 1.4rem;
}
.nsl-co-value {
  flex: 1;
  font-weight: 600;
  color: var(--text-main);
}

/* Order table */
.nsl-co-table thead tr th {
  background: var(--surface-2);
  font-size: 1.45rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.nsl-co-table tbody td {
  font-size: 1.8rem;
  vertical-align: middle;
}
.nsl-co-fee-row th {
  color: #e74c3c;
  font-size: 1.4rem;
}
.nsl-co-total-row th {
  font-size: 1.6rem;
  background: var(--surface-2);
}
.nsl-co-total-val {
  color: var(--primary);
  font-size: 2rem !important;
}
.nsl-co-promo th {
  color: #e74c3c;
}

/* Payment method cards */
.nsl-co-payment-row {
  margin-bottom: 20px;
}
.nsl-co-pay-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.nsl-co-pay-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.nsl-co-pay-card.active,
.nsl-co-pay-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nsl-co-pay-radio {
  padding-top: 3px;
}
.nsl-co-pay-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.nsl-co-pay-body {
  flex: 1;
}
.nsl-co-pay-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.nsl-co-pay-desc {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}
.nsl-co-pay-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.nsl-co-pay-note {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* Total bar */
.nsl-co-total-bar {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 4px 24px;
  margin: 16px 0 32px;
}
.nsl-co-total-table {
  margin-bottom: 0;
}
.nsl-co-total-table tfoot tr th {
  border-top: none;
}

/* JS sets inline background-color on payment card click — style it nicely */
.nsl-co-pay-card.box.payment-method[style*="background-color"] {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── Checkout table: mobile responsive ── */
@media (max-width: 767px) {
  /* info grid: stack label above value */
  .nsl-co-info-row {
    flex-direction: column;
    gap: 2px;
  }
  .nsl-co-label {
    flex: none;
    font-size: 1.2rem;
  }

  /* order table: hide image, qty, unit-price — keep name + total */
  .nsl-co-table .nsl-co-col-img,
  .nsl-co-table .nsl-co-col-qty,
  .nsl-co-table .nsl-co-col-price,
  .nsl-co-table tbody td:first-child,
  .nsl-co-table tbody td:nth-child(3),
  .nsl-co-table tbody td:nth-child(4),
  .nsl-co-tfoot-spacer {
    display: none;
  }
  /* tfoot label cell spans remaining 2 visible cols */
  .nsl-co-table tfoot th[colspan="2"].text-right {
    text-align: right;
  }

  .nsl-co-order-box .table-responsive {
    overflow-x: auto;
  }
  .nsl-co-table {
    table-layout: auto;
    width: 100%;
  }
  .nsl-co-table tbody td:nth-child(2) {
    word-break: break-word;
  }
  .nsl-co-table tfoot th:last-child {
    white-space: nowrap;
    width: 90px;
  }

  /* total bar */
  .nsl-co-total-bar {
    padding: 4px 8px;
  }

  /* payment cards: full width on mobile */
  .nsl-co-payment-row .col-sm-6 {
    width: 100%;
  }
}

/* ── Unit price under item name ── */
.nsl-co-col-price,
.nsl-co-table tbody td:nth-child(4) {
  display: none;
}
.nsl-co-unit-price {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Checkout table: image cell ── */
.nsl-co-table tbody td:first-child {
  width: 180px;
  padding-right: 0;
  vertical-align: middle;
}
.nsl-co-table tbody td:first-child img {
  width: 170px !important;
  height: 140px !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.nsl-co-table tbody td:nth-child(2) {
  padding-left: 18px;
  vertical-align: middle;
}
.nsl-co-table .nsl-co-col-img {
  width: 180px;
}

/* ── Checkout tfoot: align right flush with table ── */
.nsl-co-table tfoot .nsl-co-total-row th:first-child,
.nsl-co-table tfoot .nsl-co-fee-row th:first-child {
  text-align: right;
  padding-right: 16px;
}
.nsl-co-table tfoot th {
  border-top: 2px solid var(--border);
}

/* ── Checkout tfoot total label ── */
.nsl-co-total-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  white-space: nowrap;
  padding-right: 12px;
}

/* ── Checkout tfoot: inline label + value ── */
.nsl-co-total-label-txt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 12px;
}
.nsl-co-table tfoot .nsl-co-total-row th {
  background: var(--surface-2);
  border-top: 2px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ── Toggle section label (non-clickable, same pill look) ── */
.nsl-toggle-label {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  margin: 0 10px 0 0;
  cursor: default;
}

/* ── Toggle section button ── */
.nsl-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  margin-left: 10px;
  transition: all var(--duration) var(--ease);
}
.nsl-toggle-btn:hover,
.nsl-toggle-btn:focus {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}
.nsl-toggle-btn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
  display: inline-block;
}
.nsl-toggle-btn .fa-chevron-down {
  transition: transform var(--duration) var(--ease);
}

/* ── Homepage Hero ───────────────────────────────────────────── */
.nsl-hero {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 0;
}
.nsl-hero__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nsl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,40,100,0.40) 0%, rgba(0,80,160,0.22) 60%, rgba(0,0,0,0.04) 100%);
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nsl-hero__text {
  color: #fff;
  max-width: 520px;
}
.nsl-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.nsl-hero__title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  color: #fff !important;
  border: none !important;
}
.nsl-hero__title::after,
.nsl-hero__title::before { display: none !important; }
.nsl-hero__sub {
  font-size: 1.7rem;
  font-weight: 400;
  opacity: 0.88;
  margin: 0;
}

/* ── Homepage Action Cards ───────────────────────────────────── */
.nsl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px 0 40px;
}
.nsl-action-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: #fff !important;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), filter var(--duration) var(--ease);
  box-shadow: var(--shadow-md);
}
.nsl-action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.06);
}
.nsl-action-card--blue {
  background: linear-gradient(135deg, #0071e3 0%, #0058b0 100%);
}
.nsl-action-card--green {
  background: linear-gradient(135deg, #2e9e5b 0%, #1e7a44 100%);
}
.nsl-action-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.nsl-action-card__body {
  flex: 1;
  min-width: 0;
}
.nsl-action-card__th {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}
.nsl-action-card__en {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.nsl-action-card__arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  opacity: 0.6;
}
@media (max-width: 767px) {
  .nsl-actions { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 28px; }
  .nsl-hero__title { font-size: 2.6rem; }
  .nsl-hero__overlay { padding: 0 20px; }
  .nsl-hero__img { height: 280px; }
  .nsl-hero { max-height: 280px; }
  .nsl-action-card { padding: 16px 16px; gap: 12px; }
  .nsl-action-card__icon {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }
  .nsl-action-card__body {
    overflow: hidden;
  }
  .nsl-action-card__th {
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .nsl-action-card__en {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .nsl-action-card__arrow {
    font-size: 1.1rem;
  }
}

/* ── Homepage Hero Slider ────────────────────────────────────── */
.nsl-hero-slider {
  width: 100%;
  margin-bottom: 0;
}
.nsl-hero-slider .item img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nsl-hero-slider .owl-pagination {
  position: absolute;
  bottom: 14px;
  width: 100%;
  text-align: center;
}
.nsl-hero-slider .owl-page span {
  background: rgba(255,255,255,0.6);
}
.nsl-hero-slider .owl-page.active span {
  background: #fff;
}
@media (max-width: 767px) {
  .nsl-hero-slider .item img { height: 220px; }
}

/* ── Homepage Hero Single ────────────────────────────────────── */
.nsl-hero-single {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (max-width: 767px) {
  .nsl-hero-single { height: 220px; }
}

/* ── Hero Overlay (updated) ──────────────────────────────────── */
.nsl-hero {
  position: relative;
  overflow: hidden;
}
.nsl-hero .nsl-hero-single {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nsl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 55%, rgba(255,255,255,0) 100%);
  display: flex;
  align-items: center;
  padding: 0 48px;
}
.nsl-hero__text { max-width: 480px; }
.nsl-hero__badge {
  display: inline-block;
  background: rgba(0,113,227,0.12);
  border: 1px solid rgba(0,113,227,0.35);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}
.nsl-hero__title {
  font-size: 3.8rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
  color: #1d1d1f !important;
  border: none !important;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
}
.nsl-hero__title::after,
.nsl-hero__title::before { display: none !important; }
.nsl-hero__sub {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 767px) {
  .nsl-hero .nsl-hero-single { height: 260px; }
  .nsl-hero__overlay { padding: 0 20px; }
  .nsl-hero__title { font-size: 2.4rem !important; }
}

/* ── Hero & Button updates ───────────────────────────────────── */
.nsl-hero__sub {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #4a3000 !important;
  text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}
.nsl-action-card--blue {
  background: linear-gradient(135deg, #c97d10 0%, #a86000 100%);
}
.nsl-action-card--green {
  background: linear-gradient(135deg, #9b5a1a 0%, #7a4010 100%);
}

/* ── Index page — outlined card style ───────────────────────── */
.nsl-action-card {
  color: inherit !important;
  box-shadow: none;
}
.nsl-action-card--blue {
  background: color-mix(in srgb, var(--primary) 10%, white);
  border: 2px solid var(--primary);
  color: var(--primary-dark) !important;
}
.nsl-action-card--blue .nsl-action-card__icon {
  background: color-mix(in srgb, var(--primary) 18%, white);
  color: var(--primary);
}
.nsl-action-card--blue .nsl-action-card__th,
.nsl-action-card--blue .nsl-action-card__en,
.nsl-action-card--blue .nsl-action-card__arrow {
  color: var(--primary-dark) !important;
}
.nsl-action-card--green {
  background: color-mix(in srgb, #059669 10%, white);
  border: 2px solid #059669;
  color: #047857 !important;
}
.nsl-action-card--green .nsl-action-card__icon {
  background: color-mix(in srgb, #059669 18%, white);
  color: #059669;
}
.nsl-action-card--green .nsl-action-card__th,
.nsl-action-card--green .nsl-action-card__en,
.nsl-action-card--green .nsl-action-card__arrow {
  color: #047857 !important;
}
.nsl-action-card:hover {
  filter: none;
  box-shadow: var(--shadow-md);
}
.nsl-action-card--blue:hover { background: color-mix(in srgb, var(--primary) 16%, white); }
.nsl-action-card--green:hover { background: color-mix(in srgb, #059669 16%, white); }
.nsl-hero__badge {
  background: rgba(0,113,227,0.10);
  border-color: rgba(0,113,227,0.30);
  color: var(--primary);
}
.nsl-hero__title {
  color: #1d1d1f !important;
}
.nsl-hero__sub {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  text-shadow: none;
  display: inline-block;
  background: rgba(0,0,0,0.28);
  border: none;
  border-radius: 0;
  padding: 6px 14px;
  margin-top: 6px;
  color: #fff !important;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-all;
}
@media (max-width: 575px) {
  .nsl-hero__sub {
    font-size: 1.05rem !important;
    padding: 5px 10px;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .nsl-hero__sub {
    font-size: 1.3rem !important;
  }
}

/* ── Upload Card — highlighted ───────────────────────────────── */
.nsl-upload-card {
  background: #ffffff !important;
  border: 2.5px solid var(--primary) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px 28px !important;
  box-shadow: 0 0 0 4px rgba(0,113,227,0.10);
}
.nsl-upload-title {
  font-size: 1.6rem !important;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nsl-upload-title .fa-upload {
  font-size: 1.8rem;
  color: var(--primary);
}
.nsl-upload-title #rc_file_lbl {
  font-size: 1.6rem;
}
.nsl-upload-card .form-control[type="file"] {
  border: 2px dashed var(--primary) !important;
  background: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 12px !important;
  font-size: 1.4rem;
}
.nsl-upload-card .form-control[type="file"]::file-selector-button {
  font-size: 1.4rem !important;
  padding: 10px 22px !important;
}

/* ── Amount block — accent-toned background ──────────────────── */
.nsl-amount-block {
  background: color-mix(in srgb, var(--accent) 12%, white) !important;
  border-color: var(--accent) !important;
}
.nsl-amount-label {
  color: var(--accent-dark) !important;
}

/* fallback for older browsers */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .nsl-amount-block { background: #e0f9fb !important; }
}

/* ── CTA Action Buttons — green across all pages ─────────────── */
/* booking.html: ต่อไป */
#btnSubmit1,
/* photoframe.html: ต่อไป */
.box-footer .pull-right .btn-primary,
/* checkout.html: ชำระเงินออนไลน์, ส่งหลักฐาน */
#btnConfirm,
#btnRepayGW,
#btnSubmitReceipt,
/* payment.html: ส่งหลักฐาน + แจ้งชำระเงิน */
#btnReceipt,
#btnSubmitRec {
  background-color: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
}
#btnSubmit1:hover, #btnSubmit1:focus,
.box-footer .pull-right .btn-primary:hover, .box-footer .pull-right .btn-primary:focus,
#btnConfirm:hover, #btnConfirm:focus,
#btnRepayGW:hover, #btnRepayGW:focus,
#btnSubmitReceipt:hover, #btnSubmitReceipt:focus,
#btnReceipt:hover, #btnReceipt:focus,
#btnSubmitRec:hover, #btnSubmitRec:focus {
  background-color: var(--cta-dark) !important;
  border-color: var(--cta-dark) !important;
}

/* ── Choose Files button → outlined CTA style ───────────────── */
.nsl-upload-card .form-control[type="file"]::file-selector-button {
  background: color-mix(in srgb, var(--cta) 12%, white) !important;
  color: var(--cta-dark) !important;
  border: 1.5px solid var(--cta) !important;
  font-weight: 600 !important;
}
.nsl-upload-card .form-control[type="file"]::file-selector-button:hover {
  background: color-mix(in srgb, var(--cta) 22%, white) !important;
  border-color: var(--cta-dark) !important;
}

/* ── Track result card ───────────────────────────────────────── */
#box_result {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cta) 8%, white) 0%, #fff 100%);
  border: 2px solid var(--cta);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-align: center;
  margin-bottom: 24px;
}
#box_result h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center !important;
  width: 100%;
  display: block;
}
#box_result #show_status {
  all: unset;
  display: block;
}
.nsl-track-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 16px;
}
.nsl-track-msg {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 12px;
}
.nsl-track-ext-link {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.nsl-track-ext-link a {
  color: #0ea5e9;
  font-weight: 600;
  text-decoration: none;
}
.nsl-track-ext-link a:hover { text-decoration: underline; }

#box_result #show_update {
  all: unset;
  display: block;
  margin-top: 20px;
  font-size: 1.7rem;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
}
.nsl-track-line {
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.6;
}
.nsl-track-heading {
  text-align: left;
  font-weight: 800;
  font-size: 1.05em;
  color: var(--text-main);
  margin: 18px 0 10px;
}
.nsl-track-heading:first-child { margin-top: 0; }
.nsl-track-subheading {
  text-align: left;
  font-weight: 700;
  font-size: 0.85em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 4px 0 10px;
}
.nsl-track-divider {
  border: none;
  border-top: 1.5px dashed #e5e7eb;
  margin: 22px 0 4px;
}
.nsl-track-item {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}
.nsl-track-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8em;
  margin-top: 1px;
}
.nsl-track-item-body {
  flex: 1;
  min-width: 0;
}
.nsl-track-item-text {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}
.nsl-track-item-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.92em;
}
.nsl-track-highlight {
  color: inherit;
  font-weight: inherit;
}
.nsl-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: none !important;
}
.nsl-track-btn-en {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.85em;
}
.nsl-track-btn--green {
  background: color-mix(in srgb, #059669 10%, white);
  border-color: #059669;
  color: #059669 !important;
}
.nsl-track-btn--green:hover { background: color-mix(in srgb, #059669 18%, white); }
.nsl-track-btn--orange {
  background: color-mix(in srgb, #f97316 10%, white);
  border-color: #f97316;
  color: #c2410c !important;
}
.nsl-track-btn--orange:hover { background: color-mix(in srgb, #f97316 18%, white); }
.nsl-track-btn--default {
  background: color-mix(in srgb, var(--primary) 10%, white);
  border-color: var(--primary);
  color: var(--primary) !important;
}
.nsl-track-btn--default:hover { background: color-mix(in srgb, var(--primary) 18%, white); }
.nsl-track-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 6%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, white);
  font-size: 0.85em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 575px) {
  .nsl-track-item-sub { padding-left: 0; }
  .nsl-track-btn { font-size: 0.78em; padding: 4px 10px; }
  .nsl-track-heading { font-size: 0.98em; }
  #box_result #show_update,
  #box_result #show_remark,
  .nsl-track-section p {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }
  .nsl-track-note { font-size: 0.8rem !important; padding: 10px 12px !important; }
}
.nsl-track-parcel-label {
  font-weight: 700;
  color: var(--text-main);
  margin-right: 6px;
}
.nsl-track-parcel-date { color: var(--text-muted); }

#box_result #show_remark {
  all: unset;
  display: block;
  font-size: 1.7rem;
  color: var(--text-main);
  text-align: center;
  width: 100%;
  line-height: 1.7;
}
.nsl-track-parcel-code { color: var(--cta-dark); letter-spacing: 1px; }
.nsl-track-parcel-sep { color: var(--text-muted); }
.nsl-track-parcel-date2 { color: var(--text-muted); font-size: 1.4rem; font-weight: 400; }

/* ── Track page: แสดงสถานะ button → blue ─────────────────────── */
#btnSearch2 {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
#btnSearch2:hover {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* ── Track result: แยกกล่อง description / basket / remark ──────── */
.nsl-track-section {
  margin-top: 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 12px 16px 14px;
  text-align: center;
}
.nsl-track-section-label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.nsl-track-section p {
  margin: 0;
  font-size: 1.7rem;
  color: var(--text-main);
  line-height: 1.7;
}
.nsl-track-section--remark {
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-color: var(--accent);
}
.nsl-track-section--remark .nsl-track-section-label { color: var(--accent); }

/* ── Track Status Stepper ──────────────────────────────────────── */
.nsl-status-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 20px 0 24px;
  width: 100%;
  position: relative;
}
.nsl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.nsl-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 3px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}
/* Step color comes from --step-color, set inline per step by track.js (TRACK_STEPS) */
.nsl-step.active .nsl-step-circle, .nsl-step.done .nsl-step-circle {
  background: var(--step-color); border-color: var(--step-color); color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color) 20%, transparent);
}
.nsl-step-label {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nsl-step-th {
  font-size: 1.3rem;
  font-weight: 700;
  color: #9ca3af;
  line-height: 1.3;
}
.nsl-step-en {
  font-size: 1.1rem;
  color: #d1d5db;
  line-height: 1.2;
}
.nsl-step.active .nsl-step-th,
.nsl-step.done .nsl-step-th {
  color: var(--text-main);
}
.nsl-step.active .nsl-step-en,
.nsl-step.done .nsl-step-en {
  color: var(--text-muted);
}
.nsl-step-line {
  flex: 1;
  height: 3px;
  background: #e5e7eb;
  margin-top: 22px;
  border-radius: 2px;
  transition: background 0.3s ease;
  min-width: 20px;
  max-width: 80px;
}
.nsl-step-line.done { background: var(--step-line-color); }
@media (max-width: 600px) {
  .nsl-step-circle { width: 38px; height: 38px; font-size: 1.3rem; }
  .nsl-step-th { font-size: 1.1rem; }
  .nsl-step-en { font-size: 1rem; }
  .nsl-step-line { margin-top: 17px; }
}

/* Success modal (payment receipt submitted) */
.nsl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nsl-modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 26px 22px;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.nsl-modal-content p {
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.6;
}
.nsl-modal-icon-ok {
  color: #28a745;
}
.nsl-modal-icon-mail {
  color: #3b82f6;
}
.nsl-modal-icon-time {
  color: #f59e0b;
}
.nsl-modal-sublist {
  margin: 0 0 14px;
  padding-left: 30px;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.nsl-modal-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 0;
}

.nsl-dl-intro-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 10px 0 22px;
}
.nsl-password-example-wrap {
  position: relative;
  flex: 0 0 260px;
  width: 260px;
  line-height: 0;
}
.nsl-password-example-img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.nsl-password-example-caption {
  line-height: 1.4;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.nsl-password-hint-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cta, #e63946);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  max-width: 90%;
}
.nsl-password-hint-badge i {
  font-size: 0.85rem;
}
.nsl-password-hint-badge-face {
  left: 60%;
  top: 15%;
  width: 18%;
  height: 25%;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  border-radius: 50%;
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  padding: 4px;
}
.nsl-password-hint-badge-face i {
  display: none;
}
.nsl-password-hint-circle {
  position: absolute;
  right: 1%;
  bottom: 4%;
  width: 9%;
  height: 32%;
  border: 2.5px solid #ffd400;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0 10px rgba(255, 212, 0, 0.7);
  pointer-events: none;
}
.nsl-face-blur {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.nsl-face-blur-1 {
  left: 23%;
  top: 9%;
  width: 17%;
  height: 24%;
}
.nsl-dl-intro-text {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.9;
}
.nsl-dl-intro-text p {
  margin: 0 0 10px;
}
.nsl-dl-intro-text span {
  display: inline-block;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  line-height: 1.6 !important;
}
.nsl-dl-intro-text a {
  font-weight: 600;
  text-decoration: underline;
}
.nsl-dl-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
@media (max-width: 700px) {
  .nsl-dl-intro-card {
    flex-direction: column;
  }
  .nsl-password-example-wrap {
    flex: unset;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}
