:root {
  --phdui-green:#034f4f;
  --phdui-green-dark:#023f3f;
  --phdui-gold:#ffc000;
  --phdui-gold-dark:#d8a000;
  --phdui-white:#fff;
  --phdui-text:#f6fbfa;
  --phdui-muted:#d5e4e2;
  --phdui-line:rgba(255,255,255,.48);
}

html:has(body.phdui-page),
body.phdui-page {
  background:var(--phdui-green) !important;
}

body.phdui-page #content,
body.phdui-page .site-content,
body.phdui-page main.site-main,
body.phdui-page .elementor-location-single,
body.phdui-page .elementor-page,
body.phdui-page .entry-content {
  background:var(--phdui-green) !important;
}

body.phdui-page .entry-content > .elementor,
body.phdui-page .entry-content > .wp-block-group,
body.phdui-page #content .elementor-section-wrap,
body.phdui-page #content .e-con.e-parent {
  background-color:var(--phdui-green) !important;
}

.elementor-widget-shortcode:has(.phdui-root),
.elementor-shortcode:has(.phdui-root),
.elementor-widget-container:has(> .phdui-root) {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}

.phdui-helpdesk-page {
  width:100% !important;
  position:relative !important;
  isolation:isolate !important;
  font-family:"Kanit","Sarabun",Arial,sans-serif !important;
}

.phdui-helpdesk-page::before {
  content:none !important;
  display:none !important;
}

.phdui-root,
.phdui-root * {
  box-sizing:border-box !important;
}

.phdui-root {
  width:min(900px,calc(100vw - 32px)) !important;
  max-width:900px !important;
  margin:34px auto 54px !important;
  padding:0 !important;
  position:relative !important;
  isolation:isolate !important;
  color:var(--phdui-text) !important;
  font-family:"Kanit","Sarabun",Arial,sans-serif !important;
}

/* พื้นหลังใช้ที่ body และ wrapper เท่านั้น ห้ามสร้าง pseudo-element ต่อ section
   เพราะ section ถัดไปจะวางทับ Captcha และปุ่มของ section ก่อนหน้า */
.phdui-root::before { content:none !important; display:none !important; }

.phdui-narrow { max-width:900px !important; }
.phdui-ticket-root { margin-top:10px !important; margin-bottom:54px !important; }

.phdui-ticket-root > .phdui-hero {
  width:600px !important;
  max-width:100% !important;
  margin:0 auto 9px !important;
  padding:7px 0 8px !important;
  border:0 !important;
  border-bottom:2px solid var(--phdui-gold) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:center !important;
}

.phdui-ticket-root > .phdui-hero h1,
.phdui-ticket-root > .phdui-hero h1.phdui-title {
  margin:0 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:21px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  text-align:center !important;
}

.phdui-ticket-root > .phdui-hero p { display:none !important; }

.phdui-exact-tabs {
  display:grid !important;
  grid-template-columns:1fr 1.22fr 1.08fr 1fr !important;
  gap:10px !important;
  width:600px !important;
  max-width:100% !important;
  margin:0 auto 9px !important;
  padding:0 !important;
}

.phdui-exact-tabs.no-kb {
  grid-template-columns:1fr 1.22fr 1.08fr !important;
}

.phdui-exact-tab,
.phdui-root .phdui-exact-tab {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  min-height:29px !important;
  margin:0 !important;
  padding:3px 7px !important;
  border:1px solid #fff !important;
  border-radius:4px !important;
  background:transparent !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:12px !important;
  font-weight:500 !important;
  line-height:21px !important;
  text-align:center !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}

.phdui-exact-tab:hover,
.phdui-exact-tab:focus-visible {
  border-color:var(--phdui-gold) !important;
  outline:2px solid transparent !important;
}

.phdui-exact-tab.is-primary,
.phdui-root .phdui-exact-tab.is-primary {
  border-color:var(--phdui-gold-dark) !important;
  background:var(--phdui-gold) !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-weight:700 !important;
}

.phdui-ticket-main {
  display:grid !important;
  grid-template-columns:minmax(0,600px) !important;
  justify-content:center !important;
  width:100% !important;
}

.phdui-ticket-form-column,
.phdui-form { width:100% !important; min-width:0 !important; margin:0 !important; }

.phdui-card { width:100% !important; }

.phdui-ticket-root .phdui-form-card {
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#phd-ticket-form > .phdui-field > label { display:none !important; }
.phdui-ticket-root .phdui-field { margin:0 0 8px !important; }

.phdui-ticket-root input.phd-input,
.phdui-ticket-root select.phd-input,
.phdui-ticket-root textarea.phd-input {
  display:block !important;
  width:100% !important;
  margin:0 !important;
  border:1px solid #aeb8b7 !important;
  background:#fff !important;
  color:#263635 !important;
  -webkit-text-fill-color:#263635 !important;
  font:400 13px/1.45 "Sarabun","Kanit",sans-serif !important;
  box-shadow:0 1px 2px rgba(0,0,0,.12) !important;
}

.phdui-ticket-root input.phd-input,
.phdui-ticket-root select.phd-input {
  height:34px !important;
  min-height:34px !important;
  padding:4px 12px !important;
  border-radius:2px !important;
}

.phdui-ticket-root select.phd-input { padding-right:34px !important; }

.phdui-ticket-root textarea.phd-input {
  height:136px !important;
  min-height:136px !important;
  padding:8px 12px !important;
  border-radius:8px !important;
  resize:vertical !important;
}

.phdui-ticket-root .phd-input::placeholder,
.phdui-contact-modal .phd-input::placeholder {
  color:#737b7a !important;
  -webkit-text-fill-color:#737b7a !important;
  opacity:1 !important;
}

.phdui-submit-row,
.phdui-ticket-root .phdui-submit-row {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 120px !important;
  align-items:end !important;
  justify-content:space-between !important;
  gap:18px !important;
  width:100% !important;
  min-height:55px !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  overflow:visible !important;
  opacity:1 !important;
  visibility:visible !important;
}

.phdui-captcha-field { display:block !important; width:210px !important; max-width:100% !important; }
.phdui-captcha-field label {
  display:block !important;
  margin:0 0 3px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:12px !important;
  font-weight:500 !important;
  line-height:17px !important;
}

.phdui-captcha-field small {
  display:block !important;
  margin-top:3px !important;
  color:var(--phdui-muted) !important;
  font-size:10px !important;
  line-height:14px !important;
}

.phdui-ticket-root .phdui-captcha-field input.phd-input {
  width:100% !important;
  height:32px !important;
  min-height:32px !important;
}

.phdui-ticket-root .phdui-submit {
  display:block !important;
  width:120px !important;
  height:32px !important;
  min-height:32px !important;
  margin:0 0 17px !important;
  padding:4px 16px !important;
  border:1px solid var(--phdui-gold-dark) !important;
  border-radius:4px !important;
  background:var(--phdui-gold) !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:22px !important;
  cursor:pointer !important;
  opacity:1 !important;
  visibility:visible !important;
}

.phdui-ticket-root .phdui-submit:disabled,
.phdui-choice-btn:disabled,
.phdui-contact-send:disabled { opacity:.58 !important; cursor:wait !important; }

.phdui-honeypot {
  position:absolute !important;
  left:-99999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.phdui-modal-open { overflow:hidden !important; }
.phdui-contact-modal[hidden],
.phdui-contact-choice[hidden],
.phdui-contact-fields[hidden] { display:none !important; }

.phdui-contact-modal {
  position:fixed !important;
  z-index:999999 !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100vw !important;
  height:100vh !important;
  padding:20px !important;
}

.phdui-modal-backdrop {
  position:absolute !important;
  inset:0 !important;
  background:rgba(0,31,31,.78) !important;
  backdrop-filter:blur(3px) !important;
}

.phdui-modal-dialog {
  position:relative !important;
  z-index:2 !important;
  width:min(520px,100%) !important;
  max-height:calc(100vh - 40px) !important;
  overflow:auto !important;
  padding:28px 30px !important;
  border:3px solid var(--phdui-gold) !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#173e3e !important;
  box-shadow:0 24px 70px rgba(0,0,0,.38) !important;
  text-align:center !important;
}

.phdui-modal-dialog h2 {
  margin:0 0 8px !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1.48 !important;
}

.phdui-modal-dialog p {
  margin:0 0 16px !important;
  color:#5d6c6b !important;
  -webkit-text-fill-color:#5d6c6b !important;
  font-size:13px !important;
}

.phdui-modal-close {
  position:absolute !important;
  top:7px !important;
  right:9px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  border:0 !important;
  background:transparent !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:27px !important;
  line-height:1 !important;
  text-decoration:none !important;
}

.phdui-choice-buttons {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  width:min(300px,100%) !important;
  margin:15px auto 0 !important;
}

.phdui-choice-btn,
.phdui-contact-send {
  min-height:38px !important;
  padding:7px 14px !important;
  border:1px solid var(--phdui-gold-dark) !important;
  border-radius:4px !important;
  background:var(--phdui-gold) !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:14px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.phdui-contact-fields { text-align:left !important; }
.phdui-contact-fields h2 { margin-bottom:15px !important; text-align:center !important; }
.phdui-contact-fields .phdui-field { margin-bottom:10px !important; }
.phdui-contact-fields .phdui-field label {
  display:block !important;
  margin:0 0 4px !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:13px !important;
  font-weight:600 !important;
}

.phdui-contact-fields .phdui-field label b { color:#b62424 !important; }
.phdui-contact-modal input.phd-input {
  display:block !important;
  width:100% !important;
  height:38px !important;
  min-height:38px !important;
  margin:0 !important;
  padding:7px 10px !important;
  border:1px solid #b9c2c1 !important;
  border-radius:3px !important;
  background:#fff !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
}

.phdui-contact-send { width:100% !important; margin-top:3px !important; }

.phdui-success {
  padding:26px !important;
  border:2px solid var(--phdui-gold) !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#173e3e !important;
  text-align:center !important;
}

.phdui-success h2,
.phdui-success p {
  margin:7px 0 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
}

.phdui-success strong { color:#a47500 !important; font-size:18px !important; }
.phdui-email-status { font-size:13px !important; }

.phdui-button,
.phdui-root .phdui-button,
.phdui-search-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  margin-top:9px !important;
  padding:8px 18px !important;
  border:1px solid var(--phdui-gold-dark) !important;
  border-radius:5px !important;
  background:var(--phdui-gold) !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-weight:700 !important;
  text-decoration:none !important;
}

/* ส่วนติดตาม Ticket และ FAQ ที่ปุ่มด้านบนเลื่อนไปหา */
.phdui-track-root,
.phdui-faq-root { scroll-margin-top:30px !important; }

.phdui-track-root .phdui-hero,
.phdui-faq-root .phdui-hero {
  margin:0 0 16px !important;
  padding:22px 20px !important;
  border-bottom:2px solid var(--phdui-gold) !important;
  text-align:center !important;
}

.phdui-track-root .phdui-hero h1,
.phdui-faq-root .phdui-hero h1 {
  margin:5px 0 !important;
  color:var(--phdui-gold) !important;
  -webkit-text-fill-color:var(--phdui-gold) !important;
  font-size:23px !important;
}

.phdui-track-root .phdui-hero p,
.phdui-faq-root .phdui-hero p {
  margin:0 !important;
  color:var(--phdui-muted) !important;
  -webkit-text-fill-color:var(--phdui-muted) !important;
  text-align:center !important;
}

.phdui-track-root .phdui-form-card,
.phdui-faq-list {
  padding:24px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:10px !important;
  background:var(--phdui-green-dark) !important;
}

.phdui-grid-2 {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
}

.phdui-track-root .phdui-field label {
  display:block !important;
  margin-bottom:5px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

.phdui-track-root input.phd-input {
  width:100% !important;
  min-height:43px !important;
  padding:9px 12px !important;
  border:1px solid var(--phdui-line) !important;
  border-radius:6px !important;
  background:#063f3f !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

.phdui-track-result { margin-top:18px !important; }
.phdui-track-card { padding:18px !important; border-radius:8px !important; background:#063737 !important; }
.phdui-track-card h3 { margin:0 0 10px !important; color:var(--phdui-gold) !important; }
.phdui-track-card p { color:#e2efed !important; }
.phdui-track-msg { margin-top:8px !important; padding:10px !important; border:1px solid var(--phdui-line) !important; border-radius:6px !important; }
.phdui-track-role { color:var(--phdui-gold) !important; font-size:12px !important; }
.phdui-track-empty { color:#ffd1cd !important; }

.phdui-faq-group + .phdui-faq-group { margin-top:24px !important; }
.phdui-faq-group > h2 { margin:0 0 10px !important; color:#fff !important; -webkit-text-fill-color:#fff !important; font-size:18px !important; }
.phdui-accordion { margin-bottom:9px !important; overflow:hidden !important; border:1px solid var(--phdui-line) !important; border-radius:7px !important; }
.phdui-accordion-button {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  min-height:48px !important;
  padding:11px 14px !important;
  border:0 !important;
  background:#064646 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:600 !important;
  text-align:left !important;
  cursor:pointer !important;
}
.phdui-chevron { color:var(--phdui-gold) !important; font-size:20px !important; transition:transform .2s ease !important; }
.phdui-accordion-button[aria-expanded="true"] .phdui-chevron { transform:rotate(180deg) !important; }
.phdui-accordion-content { display:none !important; padding:14px !important; color:#e2efed !important; background:#023b3b !important; }
.phdui-accordion.is-open .phdui-accordion-content { display:block !important; }

.phdui-empty { padding:35px 20px !important; text-align:center !important; }
.phdui-empty h2 { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.phdui-empty p { color:var(--phdui-muted) !important; -webkit-text-fill-color:var(--phdui-muted) !important; }
.phdui-cta { display:none !important; }

@media (min-width:821px) and (max-height:820px) {
  .phdui-ticket-root { margin-top:4px !important; margin-bottom:34px !important; }
  .phdui-ticket-root > .phdui-hero { padding:3px 0 5px !important; margin-bottom:7px !important; }
  .phdui-ticket-root > .phdui-hero h1 { font-size:19px !important; }
  .phdui-exact-tabs { margin-bottom:7px !important; }
  .phdui-ticket-root .phdui-field { margin-bottom:6px !important; }
  .phdui-ticket-root textarea.phd-input { height:108px !important; min-height:108px !important; }
}

@media (max-width:820px) {
  .phdui-root { width:min(100% - 24px,900px) !important; margin-top:20px !important; }
  .phdui-exact-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .phdui-exact-tab { min-height:36px !important; white-space:normal !important; }
  .phdui-ticket-root textarea.phd-input { height:150px !important; min-height:150px !important; }
}

/* v1.4.37 — กรอบทองของหน้าส่ง Ticket ใช้กับแถบเขียวโดยตรง
   ไม่อาศัยขอบ #content ของธีม จึงแสดงเหมือนกันทุกหน้า */
html body.phdui-page .phdui-root.phdui-ticket-root::before {
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
}

/* v1.4.45 — Ticket/Help Desk: ใช้เส้นทองเพียงเส้นเดียวใต้ Header
   CSS รุ่นเก่ามี pseudo-element ของฟอร์มอยู่ท้ายไฟล์และวาดเส้นซ้ำ
   จึงต้องปิด pseudo-element ที่ท้ายสุดของ stylesheet นี้โดยตรง. */
html body.phdui-page:has(.phdui-ticket-root) #content {
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:4px solid #ffc000 !important;
}

/* ห้าม container ชั้นในวาดเส้นเพิ่มอีกเส้น */
html body.phdui-page:has(.phdui-ticket-root) #content .site-content,
html body.phdui-page:has(.phdui-ticket-root) #content #primary,
html body.phdui-page:has(.phdui-ticket-root) #content .content-area,
html body.phdui-page:has(.phdui-ticket-root) #content .site-main,
html body.phdui-page:has(.phdui-ticket-root) #content .ast-container,
html body.phdui-page:has(.phdui-ticket-root) #content .ast-article-single,
html body.phdui-page:has(.phdui-ticket-root) #content article,
html body.phdui-page:has(.phdui-ticket-root) #content .entry-content {
  border-top:0 !important;
}

html body.phdui-page:has(.phdui-ticket-root) .phdui-root.phdui-ticket-root::before {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:transparent !important;
}

html body.phdui-page:has(.phdui-ticket-root) .phdui-root.phdui-ticket-root {
  margin-top:0 !important;
  border-top:0 !important;
}

/* v1.4.46 FINAL — ไม่ใช้ :has() เพื่อไม่ให้ cache/ธีมเปิดเส้นซ้ำได้อีก
   เส้นทองใต้ Header มาจาก Header ของธีมอยู่แล้ว จึงห้ามฟอร์ม Ticket
   วาดเส้นบนของตัวเองทุกกรณี. */
html body.phdui-page .phdui-root.phdui-ticket-root::before,
html body.phdui-page .phdui-helpdesk-page .phdui-root.phdui-ticket-root::before {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:none !important;
}

html body.phdui-page .phdui-root.phdui-ticket-root,
html body.phdui-page .phdui-helpdesk-page .phdui-root.phdui-ticket-root {
  margin-top:0 !important;
  border-top:0 !important;
}

/* v1.4.44 — ขอบทองของหน้า Ticket ต้องติดใต้ Header เสมอ
   รุ่นเดิมวาดเส้นด้วย ::before ของฟอร์ม จึงตาม padding ของ Elementor
   ลงมาเกิดเป็นแถบเขียวว่างเหนือเส้นทอง. ใช้ขอบของ #content แทน และ
   ปิด pseudo-element รุ่นเก่าอย่างเด็ดขาด. */
html body.phdui-page:has(.phdui-ticket-root) #content,
html body.phdui-page:has(.phdui-ticket-root) #content.site-content,
html body.phdui-page:has(.phdui-ticket-root) .site-content {
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:4px solid #ffc000 !important;
}

html body.phdui-page:has(.phdui-ticket-root) #content > .ast-container,
html body.phdui-page:has(.phdui-ticket-root) #content .ast-container,
html body.phdui-page:has(.phdui-ticket-root) .site-content > .ast-container,
html body.phdui-page:has(.phdui-ticket-root) .ast-article-single,
html body.phdui-page:has(.phdui-ticket-root) article,
html body.phdui-page:has(.phdui-ticket-root) .entry-content,
html body.phdui-page:has(.phdui-ticket-root) .entry-content > .elementor,
html body.phdui-page:has(.phdui-ticket-root) .entry-content > .elementor > .elementor-element,
html body.phdui-page:has(.phdui-ticket-root) .entry-content > .e-con,
html body.phdui-page:has(.phdui-ticket-root) #content .elementor-section-wrap,
html body.phdui-page:has(.phdui-ticket-root) #content .e-con.e-parent {
  margin-top:0 !important;
  padding-top:0 !important;
}

html body.phdui-page .phdui-root.phdui-ticket-root::before {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:transparent !important;
}

html body.phdui-page .phdui-root.phdui-ticket-root {
  margin-top:0 !important;
  border-top:0 !important;
  border-bottom:4px solid #ffc000 !important;
}

/* v1.4.39 — หน้า Knowledge Base: จบพื้นเขียวที่เนื้อหา แล้ววาง Social ในแถบขาว */
html body.phdui-kb-page,
html body.phdui-kb-page #page,
html body.phdui-kb-page .site,
html body.phdui-kb-page .site-content,
html body.phdui-kb-page #content,
html body.phdui-kb-page #primary,
html body.phdui-kb-page .content-area,
html body.phdui-kb-page .site-main,
html body.phdui-kb-page article,
html body.phdui-kb-page .ast-article-single,
html body.phdui-kb-page .type-page,
html body.phdui-kb-page .entry-content,
html body.phdui-kb-page .page-content {
  min-height:0 !important;
  height:auto !important;
}

html body.phdui-kb-page #content,
html body.phdui-kb-page #content.site-content,
html body.phdui-kb-page .site-content {
  padding:0 !important;
  background:#ffffff !important;
}

html body.phdui-kb-page #content > .ast-container,
html body.phdui-kb-page #content .ast-container,
html body.phdui-kb-page .site-content > .ast-container,
html body.phdui-kb-page article,
html body.phdui-kb-page .ast-article-single,
html body.phdui-kb-page .entry-content,
html body.phdui-kb-page .page-content {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

html body.phdui-kb-page .phdui-kb-landing {
  min-height:0 !important;
  height:auto !important;
  margin-bottom:0 !important;
}

.phdui-kb-social-band {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:0 0 0 -50vw !important;
  padding:26px max(20px,calc((100vw - 1100px) / 2)) !important;
  background:#ffffff !important;
  border:0 !important;
  font-family:'Sarabun',Arial,sans-serif !important;
}

.phdui-kb-social-inner {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:min(1100px,100%) !important;
  margin:0 auto !important;
}

.phdui-kb-social-inner a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:7px 15px !important;
  border-radius:6px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font:600 15px/1 'Sarabun',Arial,sans-serif !important;
  text-decoration:none !important;
}

.phdui-kb-social-facebook { background:#1877f2 !important; }
.phdui-kb-social-x { background:#050505 !important; }
.phdui-kb-social-line { background:#06c755 !important; }

@media (max-width:600px) {
  .phdui-kb-social-band { padding:18px 16px !important; }
  .phdui-kb-social-inner { gap:8px !important; flex-wrap:wrap !important; }
}

/* v1.4.40 — พื้นหลัง Knowledge Base สีเขียวเต็มหน้า; แถบขาวเฉพาะ Social */
html body.phdui-kb-page,
html body.phdui-kb-page #page,
html body.phdui-kb-page .site,
html body.phdui-kb-page .site-content,
html body.phdui-kb-page #content {
  background:
    radial-gradient(circle at 8% 8%,rgba(255,192,0,.13),transparent 25%),
    radial-gradient(circle at 92% 15%,rgba(255,255,255,.08),transparent 24%),
    linear-gradient(145deg,#08716e 0%,#075b58 42%,#034442 100%) !important;
  background-color:#075b58 !important;
}

html body.phdui-kb-page #content {
  min-height:calc(100vh - 120px) !important;
  padding:58px 20px 82px !important;
}

html body.phdui-kb-page .phdui-kb-social-band {
  position:static !important;
  left:auto !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:22px 24px !important;
  background:#ffffff !important;
  border-top:4px solid #ffc000 !important;
  border-bottom:0 !important;
}

html body.phdui-kb-page .phdui-kb-social-inner {
  width:100% !important;
  max-width:900px !important;
  margin:0 auto !important;
}

@media (max-width:600px) {
  html body.phdui-kb-page #content { padding:30px 14px 48px !important; }
  html body.phdui-kb-page .phdui-kb-social-band { padding:17px 16px !important; }
}

/* v1.4.41 — ใช้ตัว landing เป็นพื้นเต็มหน้าจอโดยตรง (ไม่ขึ้นกับ class ของธีม) */
.phdui-kb-landing {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  min-height:calc(100vh - 160px) !important;
  margin:0 0 0 -50vw !important;
  padding:42px max(20px,calc((100vw - 1100px) / 2)) 60px !important;
  overflow:visible !important;
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
  border-radius:0 !important;
  background:
    radial-gradient(circle at 8% 8%,rgba(255,192,0,.13),transparent 25%),
    radial-gradient(circle at 92% 15%,rgba(255,255,255,.08),transparent 24%),
    linear-gradient(145deg,#08716e 0%,#075b58 42%,#034442 100%) !important;
  box-shadow:none !important;
  clip-path:inset(0 -100vmax) !important;
}

.phdui-kb-landing .phdui-kb-landing-inner {
  width:min(100%,900px) !important;
  margin:0 auto !important;
}

.phdui-kb-landing .phdui-kb-social-band {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:38px 0 0 -50vw !important;
  padding:22px max(20px,calc((100vw - 1100px) / 2)) !important;
  background:#ffffff !important;
  border-top:4px solid #ffc000 !important;
  border-bottom:0 !important;
}

.phdui-kb-landing .phdui-kb-social-inner {
  width:min(1100px,100%) !important;
  max-width:1100px !important;
}

@media (max-width:600px) {
  .phdui-kb-landing { min-height:calc(100vh - 120px) !important; padding:30px 14px 44px !important; }
  .phdui-kb-landing .phdui-kb-social-band { margin-top:28px !important; padding:17px 16px !important; }
}

html body.phdui-page .phdui-root.phdui-ticket-root {
  padding-top:38px !important;
  padding-bottom:88px !important;
}

@media (max-width:560px) {
  .phdui-ticket-root > .phdui-hero h1 { font-size:19px !important; }
  .phdui-submit-row,
  .phdui-ticket-root .phdui-submit-row { grid-template-columns:1fr !important; gap:9px !important; }
  .phdui-captcha-field { width:100% !important; }
  .phdui-ticket-root .phdui-submit { width:100% !important; margin:0 !important; }
  .phdui-choice-buttons,
  .phdui-grid-2 { grid-template-columns:1fr !important; }
  .phdui-modal-dialog { padding:28px 18px 20px !important; }
  .phdui-modal-dialog h2 { font-size:18px !important; }
  .phdui-track-root .phdui-form-card,
  .phdui-faq-list { padding:16px !important; }
}

/* v1.2.4 — ล็อกข้อความ Captcha และปุ่มส่ง กันธีมซ่อนตัวอักษร */
body.phdui-page #phd-captcha-answer,
.phdui-root #phd-captcha-answer {
  display:block !important;
  position:relative !important;
  z-index:2 !important;
  width:210px !important;
  max-width:100% !important;
  height:34px !important;
  min-height:34px !important;
  margin:0 !important;
  padding:5px 11px !important;
  border:1px solid #aeb8b7 !important;
  border-radius:2px !important;
  background:#ffffff !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-family:"Sarabun","Kanit",Arial,sans-serif !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:22px !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:left !important;
  opacity:1 !important;
  visibility:visible !important;
}

body.phdui-page #phd-captcha-answer::placeholder,
.phdui-root #phd-captcha-answer::placeholder {
  color:#687372 !important;
  -webkit-text-fill-color:#687372 !important;
  font-size:13px !important;
  text-indent:0 !important;
  opacity:1 !important;
}

body.phdui-page button#phd-submit-btn,
.phdui-root button#phd-submit-btn {
  display:flex !important;
  position:relative !important;
  z-index:2 !important;
  align-items:center !important;
  justify-content:center !important;
  width:120px !important;
  min-width:120px !important;
  height:34px !important;
  min-height:34px !important;
  margin:0 0 17px !important;
  padding:4px 16px !important;
  overflow:visible !important;
  border:1px solid #d8a000 !important;
  border-radius:4px !important;
  background:#ffc000 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-family:"Sarabun","Kanit",Arial,sans-serif !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:22px !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:center !important;
  text-transform:none !important;
  text-shadow:none !important;
  opacity:1 !important;
  visibility:visible !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  cursor:pointer !important;
}

body.phdui-page button#phd-submit-btn span,
.phdui-root button#phd-submit-btn span {
  display:inline !important;
  position:static !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:700 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  opacity:1 !important;
  visibility:visible !important;
}

@media (max-width:560px) {
  body.phdui-page #phd-captcha-answer,
  .phdui-root #phd-captcha-answer,
  body.phdui-page button#phd-submit-btn,
  .phdui-root button#phd-submit-btn {
    width:100% !important;
    max-width:none !important;
  }
  body.phdui-page button#phd-submit-btn,
  .phdui-root button#phd-submit-btn { margin:0 !important; }
}

/* v1.2.5 — ใช้ชื่อคลาสใหม่ทั้งหมด เพื่อไม่ชน CSS ของปลั๊กอิน Help Desk หลัก */
body.phdui-page .phdui-ticket-actions,
.phdui-root .phdui-ticket-actions {
  display:grid !important;
  grid-template-columns:210px 120px !important;
  align-items:end !important;
  justify-content:space-between !important;
  column-gap:20px !important;
  width:100% !important;
  height:auto !important;
  min-height:58px !important;
  max-height:none !important;
  margin:4px 0 0 !important;
  padding:0 !important;
  overflow:visible !important;
  clip:auto !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
}

body.phdui-page .phdui-antispam-field,
.phdui-root .phdui-antispam-field {
  display:block !important;
  position:relative !important;
  width:210px !important;
  height:auto !important;
  min-height:58px !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
}

body.phdui-page .phdui-antispam-field label,
.phdui-root .phdui-antispam-field label {
  display:block !important;
  width:100% !important;
  height:18px !important;
  margin:0 0 4px !important;
  padding:0 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font:600 12px/18px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  white-space:nowrap !important;
  opacity:1 !important;
  visibility:visible !important;
}

body.phdui-page input.phdui-antispam-input,
.phdui-root input.phdui-antispam-input {
  display:block !important;
  position:relative !important;
  width:210px !important;
  max-width:100% !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  padding:5px 11px !important;
  overflow:visible !important;
  border:1px solid #aeb8b7 !important;
  border-radius:2px !important;
  outline:0 !important;
  background:#ffffff !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:400 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:left !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
  appearance:textfield !important;
  -webkit-appearance:none !important;
}

body.phdui-page input.phdui-antispam-input::placeholder,
.phdui-root input.phdui-antispam-input::placeholder {
  color:#687372 !important;
  -webkit-text-fill-color:#687372 !important;
  font:400 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  opacity:1 !important;
}

body.phdui-page .phdui-antispam-field small,
.phdui-root .phdui-antispam-field small {
  display:none !important;
}

body.phdui-page button.phdui-ticket-send-button,
.phdui-root button.phdui-ticket-send-button {
  display:flex !important;
  position:relative !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:end !important;
  width:120px !important;
  min-width:120px !important;
  max-width:120px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  padding:5px 16px !important;
  overflow:visible !important;
  border:1px solid #d8a000 !important;
  border-radius:4px !important;
  background:#ffc000 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:700 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:center !important;
  text-transform:none !important;
  text-shadow:none !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  cursor:pointer !important;
}

body.phdui-page button.phdui-ticket-send-button span,
.phdui-root button.phdui-ticket-send-button span {
  display:inline-block !important;
  position:static !important;
  width:auto !important;
  height:22px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:700 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
}

@media (max-width:560px) {
  body.phdui-page .phdui-ticket-actions,
  .phdui-root .phdui-ticket-actions {
    grid-template-columns:1fr !important;
    row-gap:10px !important;
  }
  body.phdui-page .phdui-antispam-field,
  .phdui-root .phdui-antispam-field,
  body.phdui-page input.phdui-antispam-input,
  .phdui-root input.phdui-antispam-input,
  body.phdui-page button.phdui-ticket-send-button,
  .phdui-root button.phdui-ticket-send-button {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
}

/* v1.4.37 FINAL — ต้องอยู่ท้ายไฟล์เพื่อชนะ CSS รุ่นเก่าที่ตัดขอบบนออก */
html body.phdui-page .phdui-root.phdui-ticket-root::before {
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
}

/* v1.4.10 — จัดส่วนล่างตามตัวอย่างกรรมการ และให้แถบ Social เป็นพื้นขาว */
html body.phdui-page .phdui-faq-root .phdui-faq-group > h2 {
  display:none !important;
}

html body.phdui-page .phdui-faq-root .phdui-hero p {
  display:none !important;
}

/* v1.4.12 — ฐานความรู้แสดงหัวข้อเสมอ และสร้างแถวเฉพาะบทความจริงที่เผยแพร่แล้ว */
html body.phdui-page .phdui-kb-section {
  width:100% !important;
  margin:28px 0 0 !important;
  padding:0 !important;
  background:#ffffff !important;
  color:#222222 !important;
  scroll-margin-top:30px !important;
}

html body.phdui-page .phdui-kb-section > h2 {
  margin:0 0 10px !important;
  padding:0 !important;
  color:#222222 !important;
  -webkit-text-fill-color:#222222 !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  text-align:left !important;
}

html body.phdui-page .phdui-kb-list {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:5px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  counter-reset:phdui-kb-item !important;
}

html body.phdui-page .phdui-kb-list a {
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:42px !important;
  margin:0 !important;
  padding:9px 12px !important;
  border:1px solid #c8c8c8 !important;
  border-radius:2px !important;
  background:#ffffff !important;
  color:#333333 !important;
  -webkit-text-fill-color:#333333 !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  text-align:left !important;
  text-decoration:none !important;
  box-shadow:none !important;
  counter-increment:phdui-kb-item !important;
}

html body.phdui-page .phdui-kb-list a::before {
  content:counter(phdui-kb-item, phdui-thai-decimal) ". " !important;
  flex:0 0 auto !important;
  margin-right:3px !important;
  color:#555555 !important;
  -webkit-text-fill-color:#555555 !important;
}

html body.phdui-page .phdui-kb-list a:hover,
html body.phdui-page .phdui-kb-list a:focus {
  border-color:#8f8f8f !important;
  background:#f7f7f7 !important;
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
}

html body.phdui-page .phdui-social-white-band {
  position:relative !important;
  z-index:2 !important;
  min-height:92px !important;
  margin-top:-72px !important;
  margin-bottom:0 !important;
  padding-top:24px !important;
  padding-bottom:24px !important;
  border-top:72px solid #ffffff !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-left:0 !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
  /* v1.4.52: full-bleed ด้วย width:100vw (แบบเดียวกับ .phdui-kb-social-band ที่ทำงานปกติ)
   * เลิกใช้ box-shadow:0 0 0 100vmax + clip-path — เพราะเงาขาว 100vmax แผ่ขึ้นไป
   * "ทับ header/เมนู" ทำให้ submenu ที่กางลงมาถูกบัง กดไม่โดน. หน้า KB ไม่เจอปัญหา
   * เพราะ KB band ใช้ width:100vw อยู่แล้ว. ย้าย helpdesk band มาใช้วิธีเดียวกัน. */
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  color:#222222 !important;
}

html body.phdui-page .phdui-root .phdui-ticket-actions.has-google-recaptcha {
  grid-template-columns:304px 120px !important;
  align-items:end !important;
}

html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap,
html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap .g-recaptcha {
  display:block !important;
  width:304px !important;
  min-width:304px !important;
  max-width:304px !important;
  min-height:78px !important;
  margin:0 !important;
  padding:0 !important;
}

/* v1.4.21 — ส่วนฐานความรู้คงอยู่เสมอ พร้อมสถานะเมื่อยังไม่มีบทความ */
html body.phdui-page .phdui-faq-root .phdui-kb-section {
  margin:36px 0 0 !important;
  padding:38px 34px !important;
  border:1px solid rgba(255,255,255,.42) !important;
  border-radius:22px !important;
  background:linear-gradient(145deg,#034f4f,#023d3d) !important;
  color:#ffffff !important;
  box-shadow:0 18px 42px rgba(3,79,79,.2) !important;
  text-align:center !important;
}
html body.phdui-page .phdui-faq-root .phdui-kb-heading { text-align:center !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-heading-icon { display:block !important; margin:0 0 9px !important; font-size:24px !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-heading h2 {
  margin:0 !important;
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  font-size:22px !important;
  text-align:center !important;
}
html body.phdui-page .phdui-faq-root .phdui-kb-heading p {
  margin:12px 0 0 !important;
  color:#e0efed !important;
  -webkit-text-fill-color:#e0efed !important;
  text-align:center !important;
}
html body.phdui-page .phdui-faq-root .phdui-kb-empty { padding:56px 16px 28px !important; text-align:center !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-empty > span { display:block !important; margin-bottom:12px !important; font-size:27px !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-empty h3 { margin:0 !important; color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; font-size:21px !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-empty p { margin:13px 0 0 !important; color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-list { margin-top:28px !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-list a { border-color:rgba(255,255,255,.45) !important; background:rgba(255,255,255,.08) !important; color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; }
html body.phdui-page .phdui-faq-root .phdui-kb-list a::before { color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; }

@media(max-width:560px) {
  html body.phdui-page .phdui-faq-root .phdui-kb-section { padding:30px 18px !important; border-radius:17px !important; }
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions.has-google-recaptcha {
    grid-template-columns:1fr !important;
  }
}

@media (max-width:350px) {
  html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap {
    width:262px !important;
    min-width:262px !important;
    height:68px !important;
    min-height:68px !important;
    overflow:hidden !important;
  }
  html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap .g-recaptcha {
    transform:scale(.86) !important;
    transform-origin:0 0 !important;
  }
}

/* v1.4.29 LAST: หน้า FAQ เดี่ยว — ตัดเส้นทองที่หลุดลงมา และจัดการ์ดให้อ่านง่าย */
html body.phdui-page #content.site-content,
html body.phdui-page #content {
  border-top:0 !important;
}

html body.phdui-page:has(.phdui-faq-page) #content,
html body.phdui-page:has(.phdui-faq-page) .site-content,
html body.phdui-page:has(.phdui-faq-page) #primary,
html body.phdui-page:has(.phdui-faq-page) .content-area,
html body.phdui-page:has(.phdui-faq-page) main.site-main,
html body.phdui-page:has(.phdui-faq-page) article,
html body.phdui-page:has(.phdui-faq-page) .entry-content,
html body.phdui-page:has(.phdui-faq-page) #content .elementor,
html body.phdui-page:has(.phdui-faq-page) #content .elementor-section-wrap,
html body.phdui-page:has(.phdui-faq-page) #content .e-con.e-parent {
  margin-top:0 !important;
  padding-top:0 !important;
}

html body.phdui-page .phdui-faq-page {
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
  background:linear-gradient(135deg,#08716c 0%,#034f4f 48%,#023d3d 100%) !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-tabs {
  width:100% !important;
  max-width:900px !important;
  margin:0 auto 32px !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root {
  padding:0 !important;
  background:transparent !important;
  color:#ffffff !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero {
  margin:0 0 24px !important;
  padding:0 0 20px !important;
  border:0 !important;
  border-bottom:2px solid #ffc000 !important;
  border-radius:0 !important;
  background:transparent !important;
  text-align:left !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero .phdui-icon { display:none !important; }

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero h1,
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero h1.phdui-title {
  margin:0 0 7px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-size:clamp(30px,4vw,42px) !important;
  line-height:1.2 !important;
  font-weight:700 !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero p {
  margin:0 !important;
  color:rgba(255,255,255,.9) !important;
  -webkit-text-fill-color:rgba(255,255,255,.9) !important;
  font-size:18px !important;
  line-height:1.72 !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-faq-list {
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-faq-group > h2 {
  margin:26px 0 12px !important;
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  font-size:23px !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion {
  overflow:hidden !important;
  margin:0 0 11px !important;
  border:1px solid rgba(255,255,255,.48) !important;
  border-radius:12px !important;
  background:rgba(0,54,52,.46) !important;
  box-shadow:0 8px 18px rgba(0,32,30,.14) !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-button {
  min-height:56px !important;
  padding:14px 18px !important;
  background:transparent !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-size:17px !important;
  font-weight:700 !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-chevron {
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
}

html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-content,
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-content * {
  background:rgba(255,255,255,.08) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* v1.4.25: หน้า [pali_ticket_track] แบบเต็มหน้าจอ */
html body.phdui-page .phdui-track-page,
html body.phdui-page .phdui-track-page * {
  font-family: "Sarabun", Arial, sans-serif !important;
}

html body.phdui-page .phdui-track-page {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:0 0 0 -50vw !important;
  padding:48px 18px 76px !important;
  border-top:4px solid var(--phdui-gold) !important;
  border-bottom:4px solid var(--phdui-gold) !important;
  background:linear-gradient(135deg,#07605d 0%,#034f4f 55%,#023d3d 100%) !important;
  color:#fff !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-track-page .phdui-track-page-inner {
  width:min(900px,100%) !important;
  max-width:900px !important;
  margin:0 auto !important;
}

html body.phdui-page .phdui-track-page .phdui-track-tabs {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  width:100% !important;
  margin:0 auto 30px !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root {
  width:100% !important;
  max-width:900px !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#fff !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-hero {
  margin:0 0 22px !important;
  padding:0 0 18px !important;
  border:0 !important;
  border-bottom:2px solid var(--phdui-gold) !important;
  border-radius:0 !important;
  background:transparent !important;
  text-align:left !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-icon { display:none !important; }

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-title {
  margin:0 0 6px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:clamp(28px,4vw,40px) !important;
  line-height:1.25 !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-hero p {
  margin:0 !important;
  color:rgba(255,255,255,.84) !important;
  font-size:18px !important;
  line-height:1.7 !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-form-card {
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-field label {
  color:#fff !important;
  font-size:16px !important;
  font-weight:700 !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root input.phd-input {
  min-height:48px !important;
  border:1px solid rgba(255,255,255,.86) !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#034f4f !important;
  -webkit-text-fill-color:#034f4f !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-search-button {
  margin-top:18px !important;
  min-width:168px !important;
  min-height:48px !important;
  border-radius:8px !important;
  background:#ffc000 !important;
  color:#034f4f !important;
  -webkit-text-fill-color:#034f4f !important;
}

html body.phdui-page .phdui-track-page .phdui-track-root .phdui-track-result {
  margin-top:18px !important;
  color:#fff !important;
}

@media (max-width:640px) {
  html body.phdui-page .phdui-track-page { padding:32px 12px 56px !important; }
  html body.phdui-page .phdui-track-page .phdui-track-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
}

/* v1.4.26: บังคับสีข้อความของหน้า Ticket Track (กัน CSS ของธีมทับ) */
.phdui-track-page .phdui-track-root,
.phdui-track-page .phdui-track-root * {
  font-family:"Sarabun",Arial,sans-serif !important;
}

.phdui-track-page .phdui-track-root .phdui-title,
.phdui-track-page .phdui-track-root h1.phdui-title {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  text-shadow:none !important;
}

.phdui-track-page .phdui-track-root .phdui-hero p,
.phdui-track-page .phdui-track-root .phdui-hero p * {
  color:rgba(255,255,255,.90) !important;
  -webkit-text-fill-color:rgba(255,255,255,.90) !important;
}

.phdui-track-page .phdui-track-root .phdui-field label,
.phdui-track-page .phdui-track-root .phdui-field label * {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}

.phdui-track-page .phdui-track-root .phdui-track-result,
.phdui-track-page .phdui-track-root .phdui-track-result * {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

.phdui-track-page .phdui-track-root input.phd-input::placeholder {
  color:#6b7777 !important;
  -webkit-text-fill-color:#6b7777 !important;
  opacity:1 !important;
}

/* v1.4.28: หน้า [pali_faq] แยกเป็นหน้าคำถามที่พบบ่อย */
.phdui-faq-page,
.phdui-faq-page * {
  font-family:"Sarabun",Arial,sans-serif !important;
}

.phdui-faq-page {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:0 0 0 -50vw !important;
  padding:48px 18px 76px !important;
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
  background:linear-gradient(135deg,#07605d 0%,#034f4f 55%,#023d3d 100%) !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.phdui-faq-page .phdui-faq-page-inner {
  width:min(900px,100%) !important;
  max-width:900px !important;
  margin:0 auto !important;
}

.phdui-faq-page .phdui-faq-tabs {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  width:100% !important;
  margin:0 auto 30px !important;
}

.phdui-faq-page .phdui-faq-root {
  width:100% !important;
  max-width:900px !important;
  margin:0 auto !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.phdui-faq-page .phdui-faq-root .phdui-hero {
  margin:0 0 22px !important;
  padding:0 0 18px !important;
  border:0 !important;
  border-bottom:2px solid #ffc000 !important;
  border-radius:0 !important;
  background:transparent !important;
  text-align:left !important;
}

.phdui-faq-page .phdui-faq-root .phdui-icon { display:none !important; }

.phdui-faq-page .phdui-faq-root .phdui-title,
.phdui-faq-page .phdui-faq-root h1.phdui-title {
  margin:0 0 6px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-size:clamp(28px,4vw,40px) !important;
  line-height:1.25 !important;
}

.phdui-faq-page .phdui-faq-root .phdui-hero p {
  margin:0 !important;
  color:rgba(255,255,255,.9) !important;
  -webkit-text-fill-color:rgba(255,255,255,.9) !important;
  font-size:18px !important;
  line-height:1.7 !important;
}

.phdui-faq-page .phdui-faq-root .phdui-faq-list {
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.phdui-faq-page .phdui-faq-root .phdui-faq-group > h2 {
  margin:24px 0 11px !important;
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  font-size:22px !important;
}

.phdui-faq-page .phdui-faq-root .phdui-accordion {
  margin:0 0 10px !important;
  border:1px solid rgba(255,255,255,.55) !important;
  border-radius:10px !important;
  background:rgba(0,45,43,.48) !important;
  box-shadow:none !important;
}

.phdui-faq-page .phdui-faq-root .phdui-accordion-button {
  min-height:52px !important;
  padding:13px 16px !important;
  background:transparent !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-size:17px !important;
  font-weight:700 !important;
}

.phdui-faq-page .phdui-faq-root .phdui-chevron {
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
}

.phdui-faq-page .phdui-faq-root .phdui-accordion-content,
.phdui-faq-page .phdui-faq-root .phdui-accordion-content * {
  border-top-color:rgba(255,255,255,.28) !important;
  background:rgba(255,255,255,.08) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

.phdui-faq-page .phdui-faq-root .phdui-empty,
.phdui-faq-page .phdui-faq-root .phdui-empty * {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

@media (max-width:640px) {
  .phdui-faq-page { padding:32px 12px 56px !important; }
  .phdui-faq-page .phdui-faq-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
}

/* v1.4.24 — ย้ายเส้นทองด้านบนไปชิดใต้เมนู ไม่ให้ตกลงมากลางแถบเขียว */
html body.phdui-page #content.site-content,
html body.phdui-page #content {
  border-top:4px solid var(--phdui-gold) !important;
}

/* เส้นล่างยังอยู่หลังพื้นที่ฟอร์ม ส่วนเส้นบนใช้ขอบของพื้นที่เนื้อหาแทน */
html body.phdui-page .phdui-root.phdui-ticket-root::before {
  border-top:0 !important;
}

/* v1.4.23 — แถบพื้นเขียวของแบบฟอร์ม: ขอบทองบน–ล่าง และพื้นที่หายใจด้านล่าง */
html body.phdui-page .phdui-root.phdui-ticket-root {
  position:relative !important;
  isolation:isolate !important;
  z-index:0 !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding:34px 0 84px !important;
}

html body.phdui-page .phdui-root.phdui-ticket-root::before {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  z-index:-1 !important;
  top:0 !important;
  right:50% !important;
  bottom:0 !important;
  left:auto !important;
  width:100vw !important;
  height:auto !important;
  margin-right:-50vw !important;
  border-top:0 !important;
  border-bottom:4px solid var(--phdui-gold) !important;
  border-left:0 !important;
  border-right:0 !important;
  background:#034f4f !important;
  box-shadow:none !important;
}

/* ยืนยันสีเขียวต่อเนื่องใต้ปุ่มส่ง เพื่อไม่ให้พื้นที่ขาวของธีมแทรก */
html body.phdui-page .phdui-root.phdui-ticket-root .phdui-ticket-main,
html body.phdui-page .phdui-root.phdui-ticket-root .phdui-ticket-form-column {
  background:transparent !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root.phdui-ticket-root {
    padding:26px 0 64px !important;
  }
}

/* v1.4.16 — แก้สีข้อความหน้าฐานความรู้ และย่อ Social Share ตามต้นแบบ */
html body.phdui-kb-page article > .entry-content,
html body.phdui-kb-page article > .page-content,
html body.phdui-kb-page .entry-content > .elementor,
html body.phdui-kb-page .entry-content > .elementor-section,
html body.phdui-kb-page .entry-content > .e-con,
html body.phdui-kb-page .entry-content > .wp-block-group,
html body.phdui-kb-page .page-content > .elementor,
html body.phdui-kb-page .page-content > .e-con,
html body.phdui-kb-page .page-content > .wp-block-group,
html body.phdui-kb-page .entry-content .elementor-element,
html body.phdui-kb-page .entry-content .elementor-widget-container,
html body.phdui-kb-page .entry-content .e-con-inner,
html body.phdui-kb-page .entry-content .wp-block-group__inner-container,
html body.phdui-kb-page .page-content .elementor-element,
html body.phdui-kb-page .page-content .elementor-widget-container,
html body.phdui-kb-page .page-content .e-con-inner,
html body.phdui-kb-page .page-content .wp-block-group__inner-container {
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
}

html body.phdui-kb-page .entry-content,
html body.phdui-kb-page .page-content {
  padding:0 !important;
  background:transparent !important;
  background-color:transparent !important;
}

html body.phdui-kb-page .entry-content p,
html body.phdui-kb-page .entry-content p span,
html body.phdui-kb-page .page-content p,
html body.phdui-kb-page .page-content p span {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}

html body.phdui-kb-page .entry-content h1,
html body.phdui-kb-page .entry-content h2,
html body.phdui-kb-page .entry-content h3,
html body.phdui-kb-page .page-content h1,
html body.phdui-kb-page .page-content h2,
html body.phdui-kb-page .page-content h3 {
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  opacity:1 !important;
}

html body.phdui-kb-page .addtoany_share_save_container,
html body.phdui-kb-page .a2a_kit,
html body.phdui-kb-page .sharedaddy,
html body.phdui-kb-page .sd-sharing-enabled,
html body.phdui-kb-page .sd-content ul,
html body.phdui-kb-page .heateor_sss_sharing_container,
html body.phdui-kb-page .heateor_sss_sharing_ul,
html body.phdui-kb-page .essb_links,
html body.phdui-kb-page .essb_links_list,
html body.phdui-kb-page .social-share-buttons,
html body.phdui-kb-page .social-share {
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  max-width:860px !important;
  min-height:0 !important;
  margin:26px auto 0 !important;
  padding:18px 0 0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.2) !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  list-style:none !important;
  text-align:left !important;
}

html body.phdui-kb-page .sd-content li,
html body.phdui-kb-page .heateor_sss_sharing_ul li,
html body.phdui-kb-page .essb_links_list li,
html body.phdui-kb-page .social-share-buttons li,
html body.phdui-kb-page .social-share li {
  display:inline-flex !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body.phdui-kb-page .entry-content a[href*="facebook.com"],
html body.phdui-kb-page .entry-content a[href*="twitter.com"],
html body.phdui-kb-page .entry-content a[href*="x.com"],
html body.phdui-kb-page .entry-content a[href*="line.me"],
html body.phdui-kb-page .page-content a[href*="facebook.com"],
html body.phdui-kb-page .page-content a[href*="twitter.com"],
html body.phdui-kb-page .page-content a[href*="x.com"],
html body.phdui-kb-page .page-content a[href*="line.me"] {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:100px !important;
  max-width:180px !important;
  min-height:44px !important;
  margin:0 8px 8px 0 !important;
  padding:9px 14px !important;
  border-radius:4px !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
}

@media (max-width:480px) {
  html body.phdui-kb-page .addtoany_share_save_container,
  html body.phdui-kb-page .a2a_kit,
  html body.phdui-kb-page .sharedaddy,
  html body.phdui-kb-page .sd-content ul,
  html body.phdui-kb-page .heateor_sss_sharing_container,
  html body.phdui-kb-page .heateor_sss_sharing_ul,
  html body.phdui-kb-page .essb_links,
  html body.phdui-kb-page .essb_links_list,
  html body.phdui-kb-page .social-share-buttons,
  html body.phdui-kb-page .social-share {
    justify-content:center !important;
  }
}

/* v1.4.15 — หน้าฐานความรู้แบบพื้นเขียวเต็มหน้าและจัดเนื้อหากึ่งกลาง */
html body.phdui-kb-page {
  background:#075b58 !important;
  background-color:#075b58 !important;
}

html body.phdui-kb-page #page,
html body.phdui-kb-page .site,
html body.phdui-kb-page .site-content,
html body.phdui-kb-page #content {
  background:
    radial-gradient(circle at 8% 8%,rgba(255,192,0,.13),transparent 25%),
    radial-gradient(circle at 92% 15%,rgba(255,255,255,.08),transparent 24%),
    linear-gradient(145deg,#08716e 0%,#075b58 42%,#034442 100%) !important;
  background-color:#075b58 !important;
}

html body.phdui-kb-page #content {
  min-height:calc(100vh - 120px) !important;
  padding:58px 20px 82px !important;
}

html body.phdui-kb-page #content > .ast-container,
html body.phdui-kb-page #content .ast-container,
html body.phdui-kb-page .site-content > .ast-container {
  display:block !important;
  width:min(1080px,100%) !important;
  max-width:1080px !important;
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
}

html body.phdui-kb-page #primary,
html body.phdui-kb-page .content-area,
html body.phdui-kb-page .site-main {
  float:none !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 auto !important;
  padding:0 !important;
  background:transparent !important;
}

html body.phdui-kb-page article,
html body.phdui-kb-page .ast-article-single,
html body.phdui-kb-page .type-page,
html body.phdui-kb-page .type-phdui_kb {
  width:100% !important;
  max-width:960px !important;
  margin:0 auto !important;
  padding:46px 48px !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:24px !important;
  background:linear-gradient(145deg,rgba(0,54,53,.94),rgba(0,76,74,.86)) !important;
  box-shadow:0 26px 64px rgba(0,35,34,.28) !important;
  color:#ffffff !important;
  text-align:center !important;
}

html body.phdui-kb-page .entry-header,
html body.phdui-kb-page .entry-content,
html body.phdui-kb-page .page-content {
  width:100% !important;
  max-width:860px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  color:#ffffff !important;
  text-align:center !important;
}

html body.phdui-kb-page .entry-title,
html body.phdui-kb-page .entry-content h1,
html body.phdui-kb-page .entry-content h2,
html body.phdui-kb-page .entry-content h3,
html body.phdui-kb-page .page-content h1,
html body.phdui-kb-page .page-content h2,
html body.phdui-kb-page .page-content h3 {
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  text-align:center !important;
}

html body.phdui-kb-page .entry-title,
html body.phdui-kb-page .entry-content > h1:first-child,
html body.phdui-kb-page .page-content > h1:first-child {
  margin:0 auto 18px !important;
  font:700 clamp(28px,4vw,42px)/1.3 "Sarabun","Kanit",Arial,sans-serif !important;
}

html body.phdui-kb-page .entry-content p,
html body.phdui-kb-page .page-content p {
  max-width:760px !important;
  margin:0 auto 22px !important;
  color:#e0efed !important;
  -webkit-text-fill-color:#e0efed !important;
  font-size:16px !important;
  line-height:1.8 !important;
  text-align:center !important;
}

html body.phdui-kb-page .entry-content ul,
html body.phdui-kb-page .entry-content ol,
html body.phdui-kb-page .page-content ul,
html body.phdui-kb-page .page-content ol {
  width:100% !important;
  max-width:800px !important;
  margin:22px auto !important;
  padding:0 !important;
  list-style:none !important;
  text-align:left !important;
}

html body.phdui-kb-page .entry-content li,
html body.phdui-kb-page .page-content li,
html body.phdui-kb-page .phdui-kb-list a {
  display:block !important;
  width:100% !important;
  margin:0 0 10px !important;
  padding:14px 16px !important;
  border:1px solid rgba(255,255,255,.28) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.09) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  text-align:left !important;
}

html body.phdui-kb-page .entry-content a,
html body.phdui-kb-page .page-content a {
  color:#ffc000 !important;
  -webkit-text-fill-color:#ffc000 !important;
  font-weight:700 !important;
}

html body.phdui-kb-page .entry-content > p:last-child a,
html body.phdui-kb-page .page-content > p:last-child a,
html body.phdui-kb-page .phdui-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:44px !important;
  padding:11px 22px !important;
  border:1px solid #d99f00 !important;
  border-radius:7px !important;
  background:#ffc000 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  text-decoration:none !important;
}

@media (max-width:700px) {
  html body.phdui-kb-page #content {
    padding:28px 12px 54px !important;
  }
  html body.phdui-kb-page article,
  html body.phdui-kb-page .ast-article-single,
  html body.phdui-kb-page .type-page,
  html body.phdui-kb-page .type-phdui_kb {
    padding:30px 20px !important;
    border-radius:18px !important;
  }
}

/* v1.4.17 — แยก Social Share ออกจากรายการฐานความรู้และเรียงแนวนอนด้านล่าง */
html body.phdui-kb-page .entry-content ul:has(a[href*="facebook.com"]),
html body.phdui-kb-page .entry-content ol:has(a[href*="facebook.com"]),
html body.phdui-kb-page .page-content ul:has(a[href*="facebook.com"]),
html body.phdui-kb-page .page-content ol:has(a[href*="facebook.com"]) {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  max-width:860px !important;
  margin:38px auto 0 !important;
  padding:22px 0 0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.22) !important;
  background:transparent !important;
  box-shadow:none !important;
  list-style:none !important;
  text-align:left !important;
}

html body.phdui-kb-page .entry-content li:has(a[href*="facebook.com"]),
html body.phdui-kb-page .entry-content li:has(a[href*="twitter.com"]),
html body.phdui-kb-page .entry-content li:has(a[href*="x.com"]),
html body.phdui-kb-page .entry-content li:has(a[href*="line.me"]),
html body.phdui-kb-page .page-content li:has(a[href*="facebook.com"]),
html body.phdui-kb-page .page-content li:has(a[href*="twitter.com"]),
html body.phdui-kb-page .page-content li:has(a[href*="x.com"]),
html body.phdui-kb-page .page-content li:has(a[href*="line.me"]) {
  display:inline-flex !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body.phdui-kb-page .entry-content li:has(a[href*="facebook.com"]) > a,
html body.phdui-kb-page .entry-content li:has(a[href*="twitter.com"]) > a,
html body.phdui-kb-page .entry-content li:has(a[href*="x.com"]) > a,
html body.phdui-kb-page .entry-content li:has(a[href*="line.me"]) > a,
html body.phdui-kb-page .page-content li:has(a[href*="facebook.com"]) > a,
html body.phdui-kb-page .page-content li:has(a[href*="twitter.com"]) > a,
html body.phdui-kb-page .page-content li:has(a[href*="x.com"]) > a,
html body.phdui-kb-page .page-content li:has(a[href*="line.me"]) > a {
  margin:0 !important;
}

@media (max-width:480px) {
  html body.phdui-kb-page .entry-content ul:has(a[href*="facebook.com"]),
  html body.phdui-kb-page .entry-content ol:has(a[href*="facebook.com"]),
  html body.phdui-kb-page .page-content ul:has(a[href*="facebook.com"]),
  html body.phdui-kb-page .page-content ol:has(a[href*="facebook.com"]) {
    justify-content:center !important;
  }
}

/* v1.4.7 — ตั้งแต่ติดตาม Ticket ถึง FAQ เป็นพื้นขาวตามแบบกรรมการ */
html body.phdui-page .phdui-white-band {
  position:relative !important;
  z-index:1 !important;
  width:100vw !important;
  max-width:none !important;
  margin:0 0 0 calc(50% - 50vw) !important;
  padding:1px 16px !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#222222 !important;
}

html body.phdui-page .phdui-track-white-band {
  padding-top:28px !important;
}

html body.phdui-page .phdui-faq-white-band {
  padding-bottom:52px !important;
}

html body.phdui-page .phdui-track-root,
html body.phdui-page .phdui-faq-root {
  margin:0 auto !important;
  color:#222222 !important;
  background:#ffffff !important;
}

html body.phdui-page .phdui-track-root {
  padding:0 0 28px !important;
}

html body.phdui-page .phdui-faq-root {
  padding:8px 0 0 !important;
}

html body.phdui-page .phdui-track-root .phdui-hero,
html body.phdui-page .phdui-faq-root .phdui-hero {
  margin:0 0 14px !important;
  padding:8px 0 12px !important;
  border:0 !important;
  border-bottom:1px solid #d4d4d4 !important;
  background:#ffffff !important;
  text-align:left !important;
}

html body.phdui-page .phdui-track-root .phdui-hero .phdui-icon,
html body.phdui-page .phdui-faq-root .phdui-hero .phdui-icon {
  display:none !important;
}

html body.phdui-page .phdui-track-root .phdui-hero h1,
html body.phdui-page .phdui-track-root .phdui-hero h1.phdui-title,
html body.phdui-page .phdui-faq-root .phdui-hero h1,
html body.phdui-page .phdui-faq-root .phdui-hero h1.phdui-title {
  margin:0 0 5px !important;
  color:#222222 !important;
  -webkit-text-fill-color:#222222 !important;
  font-size:18px !important;
  font-weight:700 !important;
  text-align:left !important;
}

html body.phdui-page .phdui-track-root .phdui-hero p,
html body.phdui-page .phdui-faq-root .phdui-hero p {
  margin:0 !important;
  color:#555555 !important;
  -webkit-text-fill-color:#555555 !important;
  font-size:14px !important;
  text-align:left !important;
}

html body.phdui-page .phdui-track-root .phdui-form-card,
html body.phdui-page .phdui-faq-root .phdui-faq-list {
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#ffffff !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-track-root .phdui-field label,
html body.phdui-page .phdui-faq-root .phdui-faq-group > h2 {
  color:#222222 !important;
  -webkit-text-fill-color:#222222 !important;
}

html body.phdui-page .phdui-track-root input.phd-input {
  border:1px solid #bfc3c4 !important;
  border-radius:3px !important;
  background:#ffffff !important;
  color:#222222 !important;
  -webkit-text-fill-color:#222222 !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-track-root input.phd-input::placeholder {
  color:#777777 !important;
  -webkit-text-fill-color:#777777 !important;
}

html body.phdui-page .phdui-faq-root .phdui-faq-group + .phdui-faq-group {
  margin-top:16px !important;
}

html body.phdui-page .phdui-faq-root .phdui-accordion {
  margin-bottom:5px !important;
  border:1px solid #c8c8c8 !important;
  border-radius:2px !important;
  background:#ffffff !important;
  box-shadow:none !important;
}

html body.phdui-page .phdui-faq-root .phdui-accordion-button {
  min-height:42px !important;
  padding:9px 12px !important;
  background:#ffffff !important;
  color:#333333 !important;
  -webkit-text-fill-color:#333333 !important;
  font-size:14px !important;
  font-weight:500 !important;
}

html body.phdui-page .phdui-faq-root .phdui-chevron {
  color:#555555 !important;
  -webkit-text-fill-color:#555555 !important;
}

html body.phdui-page .phdui-faq-root .phdui-accordion-content {
  padding:12px !important;
  border-top:1px solid #dddddd !important;
  background:#f7f7f7 !important;
  color:#333333 !important;
  -webkit-text-fill-color:#333333 !important;
}

html body.phdui-page .phdui-track-card {
  border:1px solid #d1d1d1 !important;
  background:#f7f7f7 !important;
  color:#222222 !important;
}

html body.phdui-page .phdui-track-card h3,
html body.phdui-page .phdui-track-card p,
html body.phdui-page .phdui-track-msg,
html body.phdui-page .phdui-track-empty {
  color:#222222 !important;
  -webkit-text-fill-color:#222222 !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-white-band {
    padding-left:12px !important;
    padding-right:12px !important;
  }
  html body.phdui-page .phdui-track-root .phdui-grid-2 {
    grid-template-columns:1fr !important;
  }
}

/* v1.3.2 — เอาข้อความอธิบายที่ไม่ได้สั่งออก เหลือ CAPTCHA ที่ทำงานจริง */
html body.phdui-page .phdui-root .phdui-ticket-actions {
  grid-template-columns:minmax(0,285px) 120px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-field {
  display:block !important;
  width:285px !important;
  min-width:285px !important;
  max-width:285px !important;
  min-height:36px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-title,
.phdui-modal-antispam {
  display:none !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 78px !important;
  align-items:end !important;
  gap:8px !important;
  width:285px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge label {
  width:auto !important;
  height:34px !important;
  font:600 12px/34px "Sarabun","Kanit",Arial,sans-serif !important;
}

html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions {
    grid-template-columns:1fr !important;
  }
  html body.phdui-page .phdui-root .phdui-antispam-field,
  html body.phdui-page .phdui-root .phdui-antispam-challenge {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
    width:100% !important;
    min-width:90px !important;
    max-width:none !important;
  }
}

/* v1.3.2 FINAL — ไม่มีป้ายข้อความเพิ่ม เหลือเฉพาะ CAPTCHA คำนวณที่ตรวจจริง */
html body.phdui-page .phdui-root .phdui-ticket-actions {
  grid-template-columns:minmax(0,285px) 120px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-field {
  display:block !important;
  width:285px !important;
  min-width:285px !important;
  max-width:285px !important;
  min-height:36px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-title,
.phdui-modal-antispam {
  display:none !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 78px !important;
  align-items:end !important;
  gap:8px !important;
  width:285px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge label {
  width:auto !important;
  height:34px !important;
  font:600 12px/34px "Sarabun","Kanit",Arial,sans-serif !important;
}

html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions {
    grid-template-columns:1fr !important;
  }
  html body.phdui-page .phdui-root .phdui-antispam-field,
  html body.phdui-page .phdui-root .phdui-antispam-challenge {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
    width:100% !important;
    min-width:90px !important;
    max-width:none !important;
  }
}

/* v1.2.8 — ลบเส้น/แท่งสีขาวจาก pseudo-element และพื้นของ Container ธีม */
body.phdui-page #content,
body.phdui-page .site-content,
body.phdui-page #primary,
body.phdui-page .content-area,
body.phdui-page main.site-main,
body.phdui-page article,
body.phdui-page .entry-content,
body.phdui-page #content .elementor,
body.phdui-page #content .elementor-section-wrap,
body.phdui-page #content .elementor-section,
body.phdui-page #content .elementor-container,
body.phdui-page #content .e-con.e-parent,
body.phdui-page #content .wp-block-group {
  background-color:#034f4f !important;
  border-left:0 !important;
  border-right:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

body.phdui-page #content::before,
body.phdui-page #content::after,
body.phdui-page .site-content::before,
body.phdui-page .site-content::after,
body.phdui-page #primary::before,
body.phdui-page #primary::after,
body.phdui-page .content-area::before,
body.phdui-page .content-area::after,
body.phdui-page main.site-main::before,
body.phdui-page main.site-main::after,
body.phdui-page article::before,
body.phdui-page article::after,
body.phdui-page .entry-content::before,
body.phdui-page .entry-content::after,
body.phdui-page #content .elementor::before,
body.phdui-page #content .elementor::after,
body.phdui-page #content .elementor-section-wrap::before,
body.phdui-page #content .elementor-section-wrap::after,
body.phdui-page #content .elementor-section::before,
body.phdui-page #content .elementor-section::after,
body.phdui-page #content .elementor-container::before,
body.phdui-page #content .elementor-container::after,
body.phdui-page #content .e-con.e-parent::before,
body.phdui-page #content .e-con.e-parent::after,
body.phdui-page .phdui-helpdesk-page::before,
body.phdui-page .phdui-helpdesk-page::after {
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

body.phdui-page #content .elementor-shape,
body.phdui-page #content .elementor-shape-top,
body.phdui-page #content .elementor-shape-bottom,
body.phdui-page #content .elementor-shape svg,
body.phdui-page #content .elementor-shape .elementor-shape-fill {
  display:none !important;
  width:0 !important;
  height:0 !important;
  fill:transparent !important;
  stroke:transparent !important;
}

/* v1.2.6 — ปุ่มส่งใช้ input แบบเดียวกับปุ่มค้นหาสถานะที่ธีมยอมให้แสดง */
html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-submit-btn.phdui-ticket-send-control {
  display:block !important;
  position:relative !important;
  align-self:end !important;
  width:120px !important;
  min-width:120px !important;
  max-width:120px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  padding:5px 16px !important;
  overflow:visible !important;
  border:1px solid #d8a000 !important;
  border-radius:4px !important;
  background:#ffc000 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:700 13px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:center !important;
  text-transform:none !important;
  text-shadow:none !important;
  transform:none !important;
  scale:none !important;
  opacity:1 !important;
  visibility:visible !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  cursor:pointer !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-submit-btn.phdui-ticket-send-control {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
}

html body.phdui-page .phdui-root .phdui-ticket-actions button#phd-submit-btn.phdui-ticket-send-button {
  width:120px !important;
  min-width:120px !important;
  max-width:120px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  transform:none !important;
}

html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
  width:210px !important;
  min-width:210px !important;
  max-width:210px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  transform:none !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions button#phd-submit-btn.phdui-ticket-send-button,
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
}

/* v1.2.9 — ปิดพื้นขาวใน padding ของ Astra และขยายฟอร์มบนเท่าฟอร์มติดตาม */
html body.phdui-page #content,
html body.phdui-page .site-content,
html body.phdui-page .site-content > .ast-container,
html body.phdui-page #content > .ast-container,
html body.phdui-page #content .ast-container,
html body.phdui-page #content .ast-row,
html body.phdui-page #primary,
html body.phdui-page .content-area,
html body.phdui-page .ast-article-single,
html body.phdui-page article,
html body.phdui-page .entry-content {
  background:#034f4f !important;
  background-color:#034f4f !important;
  border-left:0 !important;
  border-right:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

html body.phdui-page #content .ast-container::before,
html body.phdui-page #content .ast-container::after,
html body.phdui-page #content .ast-row::before,
html body.phdui-page #content .ast-row::after,
html body.phdui-page #content .ast-article-single::before,
html body.phdui-page #content .ast-article-single::after {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:transparent !important;
}

html body.phdui-page .phdui-ticket-root > .phdui-hero,
html body.phdui-page .phdui-ticket-root .phdui-exact-tabs {
  width:900px !important;
  max-width:100% !important;
}

html body.phdui-page .phdui-ticket-root .phdui-ticket-main {
  grid-template-columns:minmax(0,900px) !important;
  width:100% !important;
}

html body.phdui-page .phdui-ticket-root .phdui-ticket-form-column,
html body.phdui-page .phdui-ticket-root #phd-ticket-form-wrap,
html body.phdui-page .phdui-ticket-root #phd-ticket-form {
  width:100% !important;
  max-width:900px !important;
}

@media (max-width:820px) {
  html body.phdui-page .phdui-ticket-root > .phdui-hero,
  html body.phdui-page .phdui-ticket-root .phdui-exact-tabs,
  html body.phdui-page .phdui-ticket-root .phdui-ticket-main,
  html body.phdui-page .phdui-ticket-root .phdui-ticket-form-column,
  html body.phdui-page .phdui-ticket-root #phd-ticket-form-wrap,
  html body.phdui-page .phdui-ticket-root #phd-ticket-form {
    width:100% !important;
    max-width:100% !important;
  }
}

/* v1.3.1 — CAPTCHA แบบมองเห็นชัดตามเอกสารกรรมการ และยังตรวจจริง */
html body.phdui-page .phdui-root .phdui-ticket-actions {
  grid-template-columns:minmax(0,390px) 120px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-field {
  display:grid !important;
  grid-template-columns:220px minmax(0,1fr) !important;
  align-items:end !important;
  gap:10px !important;
  width:390px !important;
  min-width:390px !important;
  max-width:390px !important;
  min-height:36px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-title {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:220px !important;
  height:34px !important;
  min-height:34px !important;
  padding:4px 10px !important;
  border:1px solid #aeb8b7 !important;
  border-radius:3px !important;
  background:#f2f2f2 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font:500 12px/22px "Sarabun","Kanit",Arial,sans-serif !important;
  white-space:nowrap !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge {
  display:grid !important;
  grid-template-columns:auto 72px !important;
  align-items:end !important;
  gap:7px !important;
  width:160px !important;
  min-height:36px !important;
}

html body.phdui-page .phdui-root .phdui-antispam-challenge label {
  display:flex !important;
  align-items:center !important;
  height:34px !important;
  margin:0 !important;
  padding:0 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  font:600 12px/34px "Sarabun","Kanit",Arial,sans-serif !important;
  white-space:nowrap !important;
}

html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
  display:block !important;
  width:72px !important;
  min-width:72px !important;
  max-width:72px !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  padding:5px 7px !important;
  text-align:center !important;
}

.phdui-modal-antispam {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  width:100% !important;
  min-height:38px !important;
  margin:2px 0 10px !important;
  padding:7px 10px !important;
  border:1px solid #aeb8b7 !important;
  border-radius:3px !important;
  background:#f2f2f2 !important;
  color:#173e3e !important;
  -webkit-text-fill-color:#173e3e !important;
  font-size:12px !important;
}

.phdui-modal-antispam strong {
  color:#0b704e !important;
  -webkit-text-fill-color:#0b704e !important;
  font-size:12px !important;
  white-space:nowrap !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions {
    grid-template-columns:1fr !important;
  }
  html body.phdui-page .phdui-root .phdui-antispam-field {
    grid-template-columns:1fr !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html body.phdui-page .phdui-root .phdui-antispam-title {
    width:100% !important;
  }
  html body.phdui-page .phdui-root .phdui-antispam-challenge {
    width:100% !important;
    grid-template-columns:auto minmax(90px,1fr) !important;
  }
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
    width:100% !important;
    min-width:90px !important;
    max-width:none !important;
  }
}

/* v1.3.2 LAST OVERRIDE */
html body.phdui-page .phdui-root .phdui-ticket-actions {
  grid-template-columns:minmax(0,285px) 120px !important;
}
html body.phdui-page .phdui-root .phdui-antispam-field {
  display:block !important;
  width:285px !important;
  min-width:285px !important;
  max-width:285px !important;
}
html body.phdui-page .phdui-root .phdui-antispam-title,
.phdui-modal-antispam { display:none !important; }
html body.phdui-page .phdui-root .phdui-antispam-challenge {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 78px !important;
  width:285px !important;
  gap:8px !important;
}
html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
}
@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions { grid-template-columns:1fr !important; }
  html body.phdui-page .phdui-root .phdui-antispam-field,
  html body.phdui-page .phdui-root .phdui-antispam-challenge {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html body.phdui-page .phdui-root .phdui-ticket-actions input#phd-captcha-answer.phdui-antispam-input {
    width:100% !important;
    min-width:90px !important;
    max-width:none !important;
  }
}

html body.phdui-page .phdui-root .phdui-ticket-actions.has-google-recaptcha {
  grid-template-columns:304px 120px !important;
  align-items:end !important;
  min-height:78px !important;
}

html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap,
html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap .g-recaptcha {
  display:block !important;
  width:304px !important;
  min-width:304px !important;
  max-width:304px !important;
  min-height:78px !important;
  margin:0 !important;
  padding:0 !important;
}

@media (max-width:560px) {
  html body.phdui-page .phdui-root .phdui-ticket-actions.has-google-recaptcha {
    grid-template-columns:1fr !important;
    row-gap:10px !important;
  }
}

@media (max-width:350px) {
  html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap {
    width:262px !important;
    min-width:262px !important;
    height:68px !important;
    min-height:68px !important;
    overflow:hidden !important;
  }
  html body.phdui-page .phdui-root .phdui-google-recaptcha-wrap .g-recaptcha {
    transform:scale(.86) !important;
    transform-origin:0 0 !important;
  }
}

/* v1.4.29 FINAL FAQ STANDALONE OVERRIDE */
html body.phdui-page #content.site-content,
html body.phdui-page #content { border-top:0 !important; }

html body.phdui-page:has(.phdui-faq-page) #content,
html body.phdui-page:has(.phdui-faq-page) .site-content,
html body.phdui-page:has(.phdui-faq-page) #primary,
html body.phdui-page:has(.phdui-faq-page) .content-area,
html body.phdui-page:has(.phdui-faq-page) main.site-main,
html body.phdui-page:has(.phdui-faq-page) article,
html body.phdui-page:has(.phdui-faq-page) .entry-content,
html body.phdui-page:has(.phdui-faq-page) #content .elementor,
html body.phdui-page:has(.phdui-faq-page) #content .elementor-section-wrap,
html body.phdui-page:has(.phdui-faq-page) #content .e-con.e-parent {
  margin-top:0 !important; padding-top:0 !important;
}

html body.phdui-page .phdui-faq-page {
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
  background:linear-gradient(135deg,#08716c 0%,#034f4f 48%,#023d3d 100%) !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-tabs {
  width:100% !important; max-width:900px !important; margin:0 auto 32px !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root {
  padding:0 !important; background:transparent !important; color:#ffffff !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero {
  margin:0 0 24px !important; padding:0 0 20px !important;
  border:0 !important; border-bottom:2px solid #ffc000 !important;
  border-radius:0 !important; background:transparent !important; text-align:left !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero .phdui-icon { display:none !important; }
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero h1,
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero h1.phdui-title {
  margin:0 0 7px !important; color:#ffffff !important; -webkit-text-fill-color:#ffffff !important;
  font-size:clamp(30px,4vw,42px) !important; line-height:1.2 !important; font-weight:700 !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-hero p {
  margin:0 !important; color:rgba(255,255,255,.9) !important;
  -webkit-text-fill-color:rgba(255,255,255,.9) !important; font-size:18px !important; line-height:1.72 !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-faq-list {
  padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-faq-group > h2 {
  margin:26px 0 12px !important; color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; font-size:23px !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion {
  overflow:hidden !important; margin:0 0 11px !important; border:1px solid rgba(255,255,255,.48) !important;
  border-radius:12px !important; background:rgba(0,54,52,.46) !important; box-shadow:0 8px 18px rgba(0,32,30,.14) !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-button {
  min-height:56px !important; padding:14px 18px !important; background:transparent !important;
  color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; font-size:17px !important; font-weight:700 !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-chevron {
  color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important;
}
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-content,
html body.phdui-page .phdui-faq-page .phdui-faq-root .phdui-accordion-content * {
  background:rgba(255,255,255,.08) !important; color:#ffffff !important; -webkit-text-fill-color:#ffffff !important;
}
@media (max-width:640px) {
  html body.phdui-page .phdui-faq-page { padding:32px 12px 56px !important; }
  html body.phdui-page .phdui-faq-page .phdui-faq-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
}

/* v1.4.30 KNOWLEDGE BASE: show published posts from the admin Knowledge menu */
html body.phdui-kb-page .phdui-kb-landing,
html body.phdui-page .phdui-kb-landing {
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:0 0 0 -50vw !important;
  padding:42px max(20px,calc((100vw - 1100px)/2)) 58px !important;
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
  background:linear-gradient(135deg,#08716c 0%,#034f4f 48%,#023d3d 100%) !important;
  color:#ffffff !important;
  font-family:'Sarabun',Arial,sans-serif !important;
}
html body.phdui-kb-page .phdui-kb-landing *,
html body.phdui-page .phdui-kb-landing * { font-family:'Sarabun',Arial,sans-serif !important; }
.phdui-kb-landing-inner { width:min(100%,900px) !important; margin:0 auto !important; }
.phdui-kb-landing .phdui-kb-tabs { margin:0 auto 28px !important; }
.phdui-kb-landing-heading { margin:0 0 26px !important; text-align:center !important; }
.phdui-kb-landing-heading > span { display:block; margin:0 0 7px !important; font-size:22px !important; }
.phdui-kb-landing-heading h1 { margin:0 !important; color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; font-size:clamp(28px,4vw,40px) !important; font-weight:700 !important; }
.phdui-kb-landing-heading h1 small { font-size:.67em !important; font-weight:700 !important; }
.phdui-kb-landing-heading p { margin:10px 0 0 !important; color:rgba(255,255,255,.9) !important; -webkit-text-fill-color:rgba(255,255,255,.9) !important; font-size:18px !important; }
.phdui-kb-landing-list { display:grid !important; gap:12px !important; }
.phdui-kb-landing-item { display:grid !important; grid-template-columns:44px minmax(0,1fr) 24px !important; gap:14px !important; align-items:center !important; padding:17px 18px !important; border:1px solid rgba(255,255,255,.52) !important; border-radius:14px !important; background:rgba(0,52,50,.5) !important; color:#ffffff !important; text-decoration:none !important; box-shadow:0 9px 18px rgba(0,25,23,.14) !important; transition:transform .18s ease,background .18s ease,border-color .18s ease !important; }
.phdui-kb-landing-item:hover,.phdui-kb-landing-item:focus { transform:translateY(-2px) !important; background:rgba(255,192,0,.12) !important; border-color:#ffc000 !important; outline:0 !important; }
.phdui-kb-landing-icon { display:grid !important; place-items:center !important; width:44px !important; height:44px !important; border-radius:12px !important; background:rgba(255,192,0,.18) !important; font-size:20px !important; }
.phdui-kb-landing-copy { display:grid !important; gap:3px !important; min-width:0 !important; }
.phdui-kb-landing-copy strong { color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; font-size:20px !important; line-height:1.35 !important; }
.phdui-kb-landing-copy small { display:block !important; overflow:hidden !important; color:rgba(255,255,255,.78) !important; -webkit-text-fill-color:rgba(255,255,255,.78) !important; font-size:16px !important; line-height:1.42 !important; }
.phdui-kb-landing-arrow { color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; font-size:24px !important; text-align:right !important; }
.phdui-kb-landing-empty { padding:52px 20px !important; border:1px solid rgba(255,255,255,.3) !important; border-radius:16px !important; background:rgba(0,52,50,.36) !important; text-align:center !important; }
.phdui-kb-landing-empty > span { font-size:24px !important; }
.phdui-kb-landing-empty h2 { margin:10px 0 6px !important; color:#ffc000 !important; -webkit-text-fill-color:#ffc000 !important; font-size:24px !important; }
.phdui-kb-landing-empty p { margin:0 !important; color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; font-size:17px !important; }
@media (max-width:640px) {
  html body.phdui-kb-page .phdui-kb-landing,html body.phdui-page .phdui-kb-landing { padding:30px 14px 42px !important; }
  .phdui-kb-landing .phdui-kb-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .phdui-kb-landing-item { grid-template-columns:40px minmax(0,1fr) 20px !important; gap:11px !important; padding:14px !important; }
  .phdui-kb-landing-icon { width:40px !important; height:40px !important; }
  .phdui-kb-landing-copy strong { font-size:18px !important; }
  .phdui-kb-landing-copy small { font-size:15px !important; }
}

/* v1.4.33: Astra/Elementor container must not leave a green gap above the gold frame */
html body.phdui-page:has(.phdui-faq-page) #content > .ast-container,
html body.phdui-page:has(.phdui-faq-page) #content .ast-container,
html body.phdui-page:has(.phdui-faq-page) .site-content > .ast-container,
html body.phdui-page:has(.phdui-faq-page) .ast-article-single,
html body.phdui-page:has(.phdui-faq-page) .ast-single-entry-banner,
html body.phdui-page:has(.phdui-faq-page) .entry-content > .elementor,
html body.phdui-page:has(.phdui-faq-page) .entry-content > .elementor > .elementor-element,
html body.phdui-page:has(.phdui-faq-page) .entry-content > .elementor > .e-con,
html body.phdui-page:has(.phdui-faq-page) .entry-content > .e-con {
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:0 !important;
}
html body.phdui-page:has(.phdui-faq-page) .phdui-faq-page {
  margin-top:0 !important;
}

/* v1.4.34: keep the gold rule immediately below the site header */
html body.phdui-page:has(.phdui-helpdesk-page) #content,
html body.phdui-page:has(.phdui-helpdesk-page) #content.site-content,
html body.phdui-page:has(.phdui-helpdesk-page) .site-content {
  border-top:0 !important;
}
html body.phdui-page:has(.phdui-helpdesk-page) #content > .ast-container,
html body.phdui-page:has(.phdui-helpdesk-page) #content .ast-container,
html body.phdui-page:has(.phdui-helpdesk-page) .site-content > .ast-container,
html body.phdui-page:has(.phdui-helpdesk-page) .ast-article-single,
html body.phdui-page:has(.phdui-helpdesk-page) .entry-content,
html body.phdui-page:has(.phdui-helpdesk-page) .entry-content > .elementor,
html body.phdui-page:has(.phdui-helpdesk-page) .entry-content > .e-con {
  margin-top:0 !important;
  padding-top:0 !important;
}
html body.phdui-page .phdui-helpdesk-page .phdui-root.phdui-ticket-root::before {
  border-top:4px solid #ffc000 !important;
}

/* v1.4.37 FINAL — หน้าแจ้งปัญหาเดี่ยวก็ต้องมีเส้นบน–ล่างเหมือนกัน */
html body.phdui-page .phdui-root.phdui-ticket-root::before {
  border-top:4px solid #ffc000 !important;
  border-bottom:4px solid #ffc000 !important;
}

/* v1.4.45 FINAL — แก้เส้นทองซ้ำใต้ Header ของ Help Desk/Ticket
   กฎเก่าด้านบนเปิด pseudo-element กลับมา ทำให้มีแถบเขียวว่างและ
   เส้นทองอีกเส้นหนึ่งก่อนหัวข้อแบบฟอร์ม. ปิดที่ท้ายสุดเพื่อชนะทุกกฎเดิม. */
html body.phdui-page:has(.phdui-ticket-root) #content {
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:4px solid #ffc000 !important;
}

html body.phdui-page:has(.phdui-ticket-root) #content .site-content,
html body.phdui-page:has(.phdui-ticket-root) #content #primary,
html body.phdui-page:has(.phdui-ticket-root) #content .content-area,
html body.phdui-page:has(.phdui-ticket-root) #content .site-main,
html body.phdui-page:has(.phdui-ticket-root) #content .ast-container,
html body.phdui-page:has(.phdui-ticket-root) #content .ast-article-single,
html body.phdui-page:has(.phdui-ticket-root) #content article,
html body.phdui-page:has(.phdui-ticket-root) #content .entry-content {
  border-top:0 !important;
}

html body.phdui-page:has(.phdui-ticket-root) .phdui-root.phdui-ticket-root::before {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:transparent !important;
}

html body.phdui-page:has(.phdui-ticket-root) .phdui-root.phdui-ticket-root {
  margin-top:0 !important;
  border-top:0 !important;
}

/* v1.4.46 FINAL — ไม่ใช้ :has() เพื่อไม่ให้ cache/ธีมเปิดเส้นซ้ำได้อีก
   เส้นทองใต้ Header มาจาก Header ของธีมอยู่แล้ว จึงห้ามฟอร์ม Ticket
   วาดเส้นบนของตัวเองทุกกรณี. */
html body.phdui-page .phdui-root.phdui-ticket-root::before,
html body.phdui-page .phdui-helpdesk-page .phdui-root.phdui-ticket-root::before {
  content:none !important;
  display:none !important;
  border:0 !important;
  background:none !important;
}

html body.phdui-page .phdui-root.phdui-ticket-root,
html body.phdui-page .phdui-helpdesk-page .phdui-root.phdui-ticket-root {
  margin-top:0 !important;
  border-top:0 !important;
}
