.cf-track-reference {
  --ctr-ink: #102522;
  --ctr-muted: #545c62;
  --ctr-green: #008d52;
  --ctr-blue: #0867dc;
  --ctr-purple: #681edf;
  --ctr-line: #d6d9df;
  box-sizing: border-box;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 20px 13px 24px;
  color: var(--ctr-ink);
  font-family: Kanit, "Noto Sans Thai", sans-serif;
  line-height: 1.35;
}

.cf-track-reference *, .cf-track-reference *::before, .cf-track-reference *::after { box-sizing: border-box; }
.cf-track-reference [hidden], .ctr-symbols { display: none !important; }
.cf-track-reference :is(h1, h2, p) { margin: 0; }
.cf-track-reference a { text-decoration: none; }
.cf-track-reference :is(a, button, summary, input):focus-visible { outline: 2px solid #1269dd; outline-offset: 3px; }
.ctr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ctr-icon { display: block; flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ctr-intro { display: flex; align-items: center; gap: 11px; }
.ctr-intro-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  color: var(--ctr-green);
  background: #e8f9ef;
}
.ctr-intro-icon .ctr-icon { width: 35px; height: 35px; stroke-width: 1.7; }
.cf-track-reference .ctr-intro h1 { font-size: clamp(23px, 7vw, 29px); color: var(--ctr-ink); font-weight: 700; line-height: 1.12; }
.cf-track-reference .ctr-intro p { margin-top: 4px; color: var(--ctr-muted); font-size: clamp(13px, 3.65vw, 15px); font-weight: 400; }

.ctr-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 19px;
  border: 1px solid var(--ctr-line);
  border-radius: 12px;
  background: linear-gradient(105deg, #f5f8fc, #fcfdfd);
}
.cf-track-reference .ctr-mode {
  display: flex;
  align-items: center;
  gap: clamp(6px, 3vw, 17px);
  min-height: 60px;
  min-width: 0;
  padding: 8px clamp(7px, 3.5vw, 15px);
  color: var(--ctr-ink);
  border-radius: 11px;
}
.ctr-mode > .ctr-icon { width: clamp(25px, 9vw, 36px); height: clamp(25px, 9vw, 36px); color: var(--ctr-blue); stroke-width: 1.8; }
.ctr-mode strong, .ctr-qr-actions strong { display: block; font-size: clamp(14px, 4.35vw, 18px); font-weight: 650; line-height: 1.25; }
.ctr-mode small, .ctr-qr-actions small { display: block; margin-top: 2px; color: var(--ctr-muted); font-size: clamp(11px, 3.2vw, 14px); font-weight: 400; white-space: nowrap; }
.cf-track-reference .ctr-mode-current { border: 1px solid #26ad71; margin: -1px; background: linear-gradient(110deg, #f1fcf7, #eafbF2); }
.ctr-mode-current > .ctr-icon { color: var(--ctr-green); }
.ctr-mode-check { display: grid; flex: none; place-items: center; width: 18px; height: 18px; margin-left: auto; border-radius: 50%; color: #fff; background: #00a864; }
.ctr-mode-check .ctr-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.cf-track-reference a.ctr-mode:hover { background: #edf4fe; }

.ctr-lookup { margin-top: 19px; }
.ctr-lookup label { display: block; margin: 0 0 8px 2px; font-size: 21px; font-weight: 650; color: var(--ctr-ink); }
.ctr-code-field { display: flex; align-items: center; gap: 0; min-height: 51px; padding: 0 9px 0 11px; border: 1px solid var(--ctr-line); border-radius: 11px; background: #f8f9fc; }
.ctr-code-field:focus-within { border-color: #229b68; box-shadow: 0 0 0 2px #cdeedc; }
.ctr-code-icon { display: grid; place-items: center; flex: none; width: 42px; padding-right: 9px; border-right: 1px solid #c8cdd1; color: #466154; }
.ctr-code-icon .ctr-icon { width: 27px; height: 29px; stroke-width: 1.65; }
.cf-track-reference .ctr-code-field input {
  display: block; flex: 1; width: 0; min-width: 0; min-height: 49px; padding: 0 clamp(7px, 2.6vw, 11px);
  border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none;
  color: var(--ctr-ink); font: 500 clamp(16px, 4.35vw, 18px)/1.25 Kanit, "Noto Sans Thai", sans-serif;
  letter-spacing: 0; text-transform: uppercase;
}
.cf-track-reference .ctr-code-field input::placeholder { color: #5e6469; opacity: 1; }
.cf-track-reference .ctr-code-field input:focus { outline: none; box-shadow: none; background: transparent; }
.cf-track-reference .ctr-paste {
  display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px; min-height: 35px;
  border: 0; border-radius: 9px; padding: 0 clamp(6px, 2.35vw, 11px);
  color: #075cce; background: #e0ebfe; font: 600 clamp(12px, 3.8vw, 16px)/1.2 Kanit, "Noto Sans Thai", sans-serif;
}
.ctr-paste .ctr-icon { width: 22px; height: 23px; }
.cf-track-reference .ctr-paste-status { margin-top: 6px; color: #41566a; font-size: 14px; }
.cf-track-reference .track-code-error:not([hidden]) { margin: 7px 0 0; }
.cf-track-reference .ctr-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 49px;
  margin-top: 16px; padding: 8px; border: 0; border-radius: 11px;
  background: linear-gradient(108deg, #10cc48 0%, #00995d 45%, #007f83 100%);
  color: #fff; font: 650 clamp(17px, 4.95vw, 21px)/1.25 Kanit, "Noto Sans Thai", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 152, 104, .13);
}
.ctr-submit .ctr-icon { width: 26px; height: 26px; stroke-width: 2.1; }
.cf-track-reference .ctr-submit:hover { filter: brightness(.94); }

.ctr-qr { margin-top: 18px; }
.cf-track-reference .ctr-qr h2 { display: flex; align-items: center; gap: 12px; color: var(--ctr-muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.ctr-qr h2::before, .ctr-qr h2::after { content: ""; flex: 1; height: 1px; background: var(--ctr-line); }
.ctr-qr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.cf-track-reference .ctr-qr-actions button {
  display: flex; align-items: center; gap: clamp(8px, 3.6vw, 16px); min-width: 0; min-height: 68px;
  padding: 8px clamp(8px, 3.75vw, 17px); border: 0; border-radius: 12px; text-align: left;
  color: var(--ctr-ink); background: #eaf3ff; font-family: inherit;
}
.cf-track-reference .ctr-qr-actions button:nth-child(2) { background: #f3eefe; }
.ctr-qr-actions .ctr-icon { width: clamp(26px, 9vw, 36px); height: clamp(26px, 9vw, 36px); color: var(--ctr-blue); stroke-width: 1.85; }
.ctr-qr-actions button:nth-child(2) .ctr-icon { color: var(--ctr-purple); }
.cf-track-reference .ctr-qr-actions button:hover { filter: brightness(.96); }

.ctr-help { margin-top: 14px; border-block: 1px solid var(--ctr-line); }
.ctr-help summary { display: flex; align-items: center; gap: 11px; min-height: 47px; list-style: none; cursor: pointer; padding: 4px 9px; color: var(--ctr-ink); font-size: clamp(14px, 4.25vw, 17px); font-weight: 650; }
.ctr-help summary::-webkit-details-marker { display: none; }
.ctr-help .ctr-help-mark { width: 27px; height: 28px; color: #db7a00; }
.ctr-help .ctr-chevron { width: 21px; height: 21px; margin-left: auto; color: #172434; }
.ctr-help[open] .ctr-chevron { transform: rotate(180deg); }
.ctr-help-copy { padding: 1px 12px 12px; color: var(--ctr-muted); font-size: 14px; }
.cf-track-reference .ctr-help-copy p { margin: 0 0 4px; }
.ctr-help-copy code { color: #135a3f; font-size: 14px; }
.cf-track-reference .ctr-help-copy a { color: #076b47; text-decoration: underline; }

.ctr-support { display: flex; align-items: center; gap: clamp(7px, 3vw, 12px); min-height: 78px; margin: 14px -4px 0; padding: 10px 10px 10px 12px; border-radius: 13px; background: #f0fbf5; }
.ctr-support-icon { display: grid; flex: none; place-items: center; width: clamp(30px, 10vw, 42px); height: 38px; border-radius: 10px; background: #def8ea; color: #00864e; }
.ctr-support-icon .ctr-icon { width: 23px; height: 23px; }
.ctr-support-copy { flex: 1; min-width: 0; padding-left: clamp(6px, 3vw, 12px); border-left: 1px solid #c6d9d1; }
.cf-track-reference .ctr-support-copy h2 { color: var(--ctr-ink); font-size: clamp(15px, 4.15vw, 18px); font-weight: 650; line-height: 1.2; }
.cf-track-reference .ctr-support-copy p { margin: 2px 0 0; color: var(--ctr-muted); font-size: clamp(12px, 3.65vw, 15px); }
.cf-track-reference .ctr-support-copy a { display: inline-block; color: #086b40; font-size: clamp(15px, 4.6vw, 21px); font-weight: 650; line-height: 1.15; white-space: nowrap; }
.cf-track-reference .ctr-support-call { display: flex; flex: none; align-items: center; gap: 5px; min-height: 36px; padding: 5px clamp(6px, 3.7vw, 16px); border-radius: 16px; color: #056c3f; background: #dcf9e9; font-size: clamp(13px, 4.25vw, 17px); font-weight: 650; white-space: nowrap; }
.ctr-support-call .ctr-icon { width: 20px; height: 20px; }

@media (max-width: 768px) {
  body.cf-track:has(.cf-track-reference) { background: #fff; }
  body.cf-track:has(.cf-track-reference) .xh { background: #fff; border-bottom: 1px solid var(--xh-border, #dee1e5); box-shadow: none; }
  body.cf-track:has(.cf-track-reference) .xh .xh-row { min-height: 59px; height: 59px; padding: 0 9px; }
  body.cf-track:has(.cf-track-reference) .xh .xh-burger { width: 46px; height: 42px; border: 1px solid #dce6e0; border-radius: 12px; }
  body.cf-track:has(.cf-track-reference) .xh .xh-logo .cf-top-logo { width: 103px; height: auto; max-height: 43px; object-fit: contain; }
  body.cf-track:has(.cf-track-reference) .xh .xh-call { justify-content: center; min-height: 42px; min-width: 77px; padding-inline: 12px; border: 1px solid #d9eee2; border-radius: 12px; color: #086d45; background: #e4f8ec; }
  body.cf-track:has(.cf-track-reference) .xh-bn { align-items: end; padding: 3px 0 max(9px, env(safe-area-inset-bottom)); border-top: 1px solid #d9dce2; background: #fff; box-shadow: none; }
  body.cf-track:has(.cf-track-reference) .xh-bn a { min-height: 50px; justify-content: end; margin: 0; padding: 3px 0; gap: 3px; background: transparent; border-radius: 0; box-shadow: none; color: #464d51; font: 500 12px/1.2 Kanit, "Noto Sans Thai", sans-serif; }
  body.cf-track:has(.cf-track-reference) .xh-bn a .bn-i { width: 24px; height: 24px; }
  body.cf-track:has(.cf-track-reference) .xh-bn a:nth-child(1) .bn-i { color: #058ada; }
  body.cf-track:has(.cf-track-reference) .xh-bn a:nth-child(2) .bn-i { color: #e68a00; }
  body.cf-track:has(.cf-track-reference) .xh-bn a:nth-child(4) .bn-i { color: #009a63; }
  body.cf-track:has(.cf-track-reference) .xh-bn a:nth-child(5) .bn-i { color: #6839ea; }
  body.cf-track:has(.cf-track-reference) .xh-bn a.cf-mobile-booking { padding-top: 25px; background: transparent !important; color: #464d51 !important; }
  body.cf-track:has(.cf-track-reference) .xh-bn a.cf-mobile-booking .bn-i { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 47px; height: 47px; padding: 10px; border-radius: 50%; background: linear-gradient(135deg,#00b977,#008858); color: #fff; }
}

@media (min-width: 769px) {
  .cf-track-reference { margin-block: 32px 56px; padding: 27px 30px 30px; border: 1px solid #e4ebe8; border-radius: 23px; background: #fff; }
}
