/* =========================================================
   Suriya9 — หน้าบริจาคโลงศพ (รายการบริจาค / ตรวจสอบรายการบริจาค)
   โหลดเฉพาะ template-donate.php + template-donate-check.php
   คลาส dn-* กันชนกับหน้าอื่น — desktop-first
   ========================================================= */

/* หน้านี้ hero เข้ม → เมนูขาวค้างไว้จนเลื่อนพ้น hero ค่อยเป็นสีดำ */
.s9-header:not(.is-past-hero) .s9-nav__menu > li > a { color: #fff; }
.s9-header:not(.is-past-hero) .s9-nav__menu > li > a:hover { color: #ffe6a8; }
.s9-header:not(.is-past-hero) .s9-nav__menu > li > a.is-active { color: #fff; }

.dn {
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* ─── HERO ─── */
.dn-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 420px;
  border-radius: 0 0 60px 60px;
  overflow: hidden;
}
.dn-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  transform: scale(1.02);
}
.dn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,12,4,0.55) 0%, rgba(40,22,8,0.5) 55%, rgba(20,12,4,0.62) 100%);
}
.dn-hero__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 66px;
  display: flex;
  justify-content: center;
  padding: 0 64px;
}
.dn-hero__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: #f6e2ad;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

/* hero แบบสว่าง (หน้ารายการบริจาค ตามดีไซน์ Figma): รูปเฟดขาวด้านล่าง + หัวข้อสีแดงเลือดหมู */
.dn-hero--light { height: 368px; border-radius: 0; }
.dn-hero--light .dn-hero__bg { object-position: center 18%; transform: none; }
.dn-hero--light .dn-hero__overlay { background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0) 100%); }
.dn-hero--light .dn-hero__title { bottom: 64px; }
.dn-hero--light .dn-hero__h1 { color: #8c0e0f; text-shadow: none; }
.dn-hero--light + .dn-divider { position: relative; z-index: 3; margin-top: -40px; padding-top: 0; }
@media (max-width: 900px) { .dn-hero--light .dn-hero__h1 { font-size: 38px; } }

/* ─── GOLD DIVIDER (ใต้ hero) ─── */
.dn-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 30px 64px 0;
  max-width: 1312px;
  margin: 0 auto;
}
.dn-divider .ln {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--gold), #e5c877, var(--gold), transparent);
}
.dn-divider__c {
  padding: 0 18px;
  display: flex;
  align-items: center;
}
.dn-divider__c img { width: 150px; height: 73px; object-fit: contain; display: block; transform: rotate(180deg); }

/* ─── TABS (ลิงก์ 3 ปุ่ม) ─── */
/* แท็บ: รางสีครีมแคปซูลเดียว + แท็บที่เลือกไล่ทองตามดีไซน์ Figma (ใช้ร่วม 3 หน้าบริจาค) */
.dn-tabs {
  display: flex;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 30px auto 8px;
  gap: 13px;
  border-radius: 100px;
  background: #f5efe5;
}
.dn-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 12px 36px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: #94641e;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.dn-tab:hover { color: #a67c1e; }
.dn-tab.is-active {
  border-color: #fff;
  background: linear-gradient(93deg, #a67c1e 1.5%, #d4af37 99.4%);
  box-shadow: 0 10px 12px rgba(166, 124, 30, 0.4);
  color: #fff;
}
@media (max-width: 900px) {
  .dn-tabs { gap: 0; }
  .dn-tab { height: 48px; padding: 10px 18px; font-size: 16px; }
}
@media (max-width: 600px) {
  .dn-tabs { flex-direction: column; width: calc(100% - 32px); padding: 5px; border-radius: 24px; }
  .dn-tab { width: 100%; }
}

/* ═════════════ หน้า A — รายการบริจาค (การ์ด) ═════════════ */
.dn-cards {
  width: min(1312px, calc(100% - 128px));
  margin: 0 auto;
  padding: 32px 0 8px;
}
/* ตามดีไซน์ Figma: 3 คอลัมน์ 426px, ระยะแถว 64 / คอลัมน์ 17 */
.dn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 426px));
  justify-content: space-between;
  gap: 64px 17px;
}
.dn-card {
  display: flex;
  flex-direction: column;
  min-height: 449px;
  overflow: hidden;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow .22s, transform .22s;
}
.dn-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-3px); }
.dn-card__media { position: relative; }
.dn-card__img {
  display: block;
  width: 100%;
  height: 244px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}
/* ขอบล่างรูปตัดเฉียง + เส้นทองแนวเฉียง (ซ้ายสูง → ขวาต่ำ) ตามดีไซน์ */
.dn-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426 34' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f3e3a6'/%3E%3Cstop offset='1' stop-color='%23c99a2e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 3 L426 29 L426 34 L0 34Z' fill='%23fff'/%3E%3Cpath d='M0 3 L426 29' fill='none' stroke='url(%23g)' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.dn-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.dn-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #121416;
}
.dn-card__desc {
  margin: 15px 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dn-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.14px;
  color: #94641e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dn-card__link:hover { color: var(--gold); }

/* ─── PAGINATION (ช่องสี่เหลี่ยมมน 32px + ไอคอนแรก/ก่อน/ถัด/สุดท้าย) ─── */
.dn-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 42px 0 8px;
}
.dn-pager a, .dn-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #121416;
  text-decoration: none;
  transition: border-color .18s;
}
.dn-pager a:hover { border-color: #e19c00; }
.dn-pager .is-active { background: #e19c00; border-color: #e19c00; color: #fff; }
.dn-pager .dots { border-color: transparent; background: none; }
.dn-pager__ic img { width: 16px; height: 16px; display: block; }

@media (max-width: 1100px) {
  .dn-cards { width: calc(100% - 64px); }
  .dn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 17px; }
}
@media (max-width: 900px) {
  .dn-cards { width: calc(100% - 40px); }
  .dn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 600px) {
  .dn-grid { grid-template-columns: 1fr; }
  .dn-card { min-height: 0; }
  .dn-pager { gap: 3px; }
  .dn-pager a, .dn-pager span { width: 30px; height: 30px; }
}

/* ═════════════ หน้า B — ตรวจสอบรายการบริจาค (ค้นหา + ตาราง) ═════════════ */
.dn-search {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.dn-search__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: #2a2118;
  text-align: center;
}
.dn-search__input {
  width: 100%;
  max-width: 600px;
  height: 58px;
  padding: 0 28px;
  border: 1px solid #cea934;
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: #4a4237;
  text-align: center;
  outline: none;
}
.dn-search__input::placeholder { color: #b7ad98; }
.dn-search__input:focus { border-color: #a67c1e; box-shadow: 0 0 0 3px rgba(206,169,52,0.15); }
.dn-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 164px;
  height: 44px;
  padding: 0 28px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: linear-gradient(93deg, #a67c1e 1.5%, #d4af37 99.4%);
  box-shadow: 0 10px 12px rgba(166, 124, 30, 0.4);
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: filter .2s;
}
.dn-search__btn:hover { filter: brightness(1.06); }
.dn-search__btn svg { width: 15px; height: 15px; }

/* ─── RESULTS TABLE (เต็มความกว้าง หัวขาว + แถวว่างสีครีม ตามดีไซน์) ─── */
.dn-results {
  width: calc(100% - 64px);
  max-width: 1376px;
  margin: 0 auto;
  padding: 0 0 20px;
  overflow-x: auto;
}
.dn-results__label {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #2a2118;
}
.dn-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.dn-table th {
  height: 44px;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-weight: 400;
  color: #3a3228;
  text-align: center;
  white-space: nowrap;
}
.dn-table th:nth-child(1) { width: 4%; }
.dn-table th:nth-child(2) { width: 13%; }
.dn-table th:nth-child(3) { width: 15%; }
.dn-table th:nth-child(4) { width: 37%; }
.dn-table th:nth-child(5) { width: 16%; }
.dn-table td {
  padding: 14px 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #6a6157;
  text-align: center;
}
.dn-table tbody tr:hover td { background: #fffaf0; }
.dn-table .dn-empty,
.dn-table tbody tr:hover .dn-empty { height: 50px; padding: 12px; background: #ede4d3; color: #4a4237; }

/* ═════════════ หน้า C — แบบฟอร์มบริจาคโลงศพ (multi-step) ═════════════ */
.dn-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 40px 20px;
}
.dn-form__lead {
  text-align: center;
  color: #6a6157;
  font-family: var(--font-body);
  font-size: 15px;
  margin: 0 0 28px;
}

/* progress steps */
.dn-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px auto 34px;
  max-width: 520px;
}
.dn-steps__dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.dn-steps__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  background: #f0ead9; color: #b7a976;
  border: 2px solid #e6dcbe;
  transition: all .25s;
}
.dn-steps__lbl {
  font-family: var(--font-body); font-size: 13px; color: #a79b86; white-space: nowrap;
}
.dn-steps__bar { flex: 1; height: 2px; background: #e6dcbe; margin: 0 6px; margin-bottom: 26px; }
.dn-steps__dot.is-done .dn-steps__num,
.dn-steps__dot.is-current .dn-steps__num {
  background: linear-gradient(92deg, var(--gold-soft), var(--gold));
  color: #fff; border-color: transparent;
}
.dn-steps__dot.is-done .dn-steps__lbl,
.dn-steps__dot.is-current .dn-steps__lbl { color: var(--gold-deep); font-weight: 600; }

/* section heading */
.dn-fsec { margin-bottom: 30px; }
.dn-fsec__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400; color: #2a2118;
  margin: 0 0 6px;
}
.dn-fsec__note { font-family: var(--font-body); font-size: 13.5px; color: #8a8073; margin: 0 0 16px; }

/* type cards (โลงศพ / โลงเย็น) */
.dn-types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dn-type {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1.5px solid rgba(166,124,30,0.35);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.dn-type__ic {
  width: 56px; height: 48px; border-radius: 8px;
  background: rgba(255,208,102,0.5);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dn-type__ic svg { width: 30px; height: 30px; }
.dn-type__t { font-family: var(--font-display); font-size: 22px; color: #2a2118; margin: 0 0 3px; }
.dn-type__d { font-family: var(--font-body); font-size: 13.5px; color: #7a7063; margin: 0; line-height: 1.5; }
.dn-type.is-active {
  border-color: transparent;
  background: linear-gradient(79deg, var(--gold-soft) 1%, var(--gold) 99%);
  box-shadow: 0 10px 22px rgba(166,124,30,0.28);
}
.dn-type.is-active .dn-type__ic { background: rgba(255,255,255,0.28); }
.dn-type.is-active .dn-type__ic svg path { fill: #fff; }
.dn-type.is-active .dn-type__t,
.dn-type.is-active .dn-type__d { color: #fff; }

/* amount buttons */
.dn-amounts { display: flex; flex-wrap: wrap; gap: 12px; }
.dn-amt {
  padding: 12px 26px; border-radius: 12px;
  border: 1.5px solid #e0d6b6; background: #fff;
  font-family: var(--font-body); font-size: 16px; color: #5a5247;
  cursor: pointer; transition: all .18s;
}
.dn-amt:hover { border-color: var(--gold); }
.dn-amt.is-active { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }

/* fields */
.dn-field { margin-bottom: 16px; }
.dn-field__lbl {
  display: block; font-family: var(--font-body); font-size: 14.5px;
  color: #3a3228; margin-bottom: 7px; font-weight: 500;
}
.dn-field__lbl .req { color: #c0392b; }
.dn-field__lbl .opt { color: #a79b86; font-weight: 400; font-size: 13px; }
.dn-input, .dn-textarea, .dn-date {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid #e2dcc8;
  border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; color: #3a3228;
  outline: none; background: #fff;
  transition: border-color .18s;
}
.dn-input::placeholder, .dn-textarea::placeholder { color: #b7ad98; }
.dn-input:focus, .dn-textarea:focus, .dn-date:focus { border-color: var(--gold); }
.dn-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.dn-field--stack .dn-input { margin-bottom: 10px; }

/* upload */
.dn-upload {
  border: 1.6px dashed #d8c98f;
  border-radius: 14px;
  background: #fdfaf0;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.dn-upload:hover { border-color: var(--gold); background: #fdf7e6; }
.dn-upload__ic { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--gold-deep); }
.dn-upload__t { font-family: var(--font-body); font-size: 15px; color: #4a4237; margin: 0 0 4px; font-weight: 500; }
.dn-upload__d { font-family: var(--font-body); font-size: 12.5px; color: #a79b86; margin: 0; }
.dn-upload input { display: none; }

/* pdpa */
.dn-pdpa {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-size: 13px; color: #8a8073;
  margin: 18px 0 26px;
}
.dn-pdpa svg { width: 15px; height: 15px; color: #c98fa0; }

/* nav buttons */
.dn-fnav { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }
.dn-fnav--end { justify-content: flex-end; }
.dn-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 40px; border-radius: 28px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  cursor: pointer; border: none; transition: all .2s;
}
.dn-btn--primary {
  background: linear-gradient(92deg, var(--gold-soft), var(--gold));
  color: #fff; box-shadow: 0 6px 16px rgba(166,124,30,0.32);
}
.dn-btn--primary:hover { filter: brightness(1.05); }
.dn-btn--ghost { background: #fff; border: 1.5px solid #ddd4bf; color: #6a6157; }
.dn-btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ─── STEP 2: summary + payment ─── */
.dn-pay { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.dn-summary {
  background: linear-gradient(160deg, #fdf9ec, #fbf3d9);
  border: 1.5px solid #efe2b4;
  border-radius: 18px;
  padding: 26px 24px;
}
.dn-summary__total-lbl { font-family: var(--font-body); font-size: 14px; color: #8a7a4a; margin: 0 0 4px; }
.dn-summary__total { font-family: var(--font-display); font-size: 40px; color: var(--gold-deep); margin: 0 0 4px; line-height: 1; }
.dn-summary__cert { font-family: var(--font-body); font-size: 13px; color: #a08b52; margin: 0 0 20px; }
.dn-summary__row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #eaddb0; font-family: var(--font-body); font-size: 14px; }
.dn-summary__row .k { color: #8a8073; }
.dn-summary__row .v { color: #3a3228; font-weight: 500; text-align: right; }

.dn-bank {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1.5px solid #e8ddba; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
}
.dn-bank__logo { width: 52px; height: 52px; border-radius: 10px; background: #4e2a84; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-body); flex-shrink: 0; }
.dn-bank__name { font-family: var(--font-body); font-size: 16px; color: #2a2118; margin: 0; font-weight: 600; }
.dn-bank__acc { font-family: var(--font-body); font-size: 14px; color: #7a7063; margin: 2px 0 0; }
.dn-qr {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1.5px solid #e8ddba; border-radius: 14px; padding: 20px; margin-bottom: 24px;
}
.dn-qr__box { width: 120px; height: 120px; border-radius: 10px; flex-shrink: 0; background: #fdf9ec; border: 1px solid #efe2b4; display: flex; align-items: center; justify-content: center; }
.dn-qr__box svg { width: 96px; height: 96px; }
.dn-qr__t { font-family: var(--font-body); font-size: 15px; color: #2a2118; margin: 0 0 6px; font-weight: 600; }
.dn-qr__d { font-family: var(--font-body); font-size: 13px; color: #8a8073; margin: 0 0 12px; }
.dn-qr__dl { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 14px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ─── STEP 3: success ─── */
.dn-success { text-align: center; padding: 40px 24px 20px; max-width: 620px; margin: 0 auto; }
.dn-success__ic {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 24px;
  background: linear-gradient(150deg, #e9f7ec, #d6f0dc);
  display: flex; align-items: center; justify-content: center;
}
.dn-success__ic svg { width: 52px; height: 52px; color: #2e9e52; }
.dn-success__t { font-family: var(--font-display); font-size: 34px; color: #2a2118; margin: 0 0 12px; }
.dn-success__d { font-family: var(--font-body); font-size: 15px; color: #6a6157; line-height: 1.8; margin: 0 0 30px; }

.dn-step[hidden] { display: none; }

/* ─── ดอกไม้ก่อน footer ─── */
.dn-flowers {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 2000 / 380;   /* รูป 2000×510 → ตัดล่างออก ~25% */
  min-height: 180px;
  margin-top: 40px;
  overflow: hidden;
  pointer-events: none;
}
/* รูปดอกไม้ขาวก่อน footer (เฟดขาวด้านบนในตัวรูป) — ชิดบน ตัดส่วนล่าง */
.dn-flowers img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.dn-cards { position: relative; z-index: 1; }
/* หน้ารายการบริจาค: ดึงดอกไม้ขึ้นไปอยู่ใต้การ์ดแถวล่าง + เลขหน้า ตามดีไซน์ */
.dn-cards + .dn-flowers { margin-top: -255px; }

/* ป้ายสถานะบนการ์ดรายการบริจาค (ส่งมอบแล้ว / ยังไม่ส่งมอบ) */
.dn-card__status { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 1.3; backdrop-filter: blur(4px); }
.dn-card__status.is-delivered { color: #5f6d4c; }
.dn-card__status.is-pending { color: #a0661a; }

/* ── หน้าตรวจสอบ: ผลค้นหาจริง ── */
.dn-search__hint { margin: -6px 0 0; font-size: 14px; color: #8a7f6c; text-align: center; }
.dn-results__meta { font-weight: 500; color: #8a7f6c; }
.dn-results__msg { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #faf6ee; font-size: 15px; color: #6b5a3c; }
/* ค้นด้วยชื่อ: แจ้งว่ามีรายการผ่านเว็บ → ให้ค้นด้วยเบอร์โทร */
.dn-note { display: flex; align-items: center; gap: 20px; margin: 0 0 20px; padding: 22px 28px; border: 1px solid #e6d6ae; border-radius: 16px; background: linear-gradient(180deg, #fffdf8 0%, #fbf5e8 100%); }
.dn-note[hidden] { display: none; }
.dn-note__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #d9c28a; background: #fff; color: #a67c1e; }
.dn-note__icon svg { width: 24px; height: 24px; }
.dn-note__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dn-note__text strong { font-size: 18px; font-weight: 600; line-height: 1.4; color: #1f1f1f; }
.dn-note__text > span { font-size: 15px; line-height: 1.6; color: #7a6d57; }
.dn-note__n { white-space: nowrap; }
.dn-note__btn { flex: none; padding: 11px 26px; border: 1px solid #b8923a; border-radius: 100px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #94641e; cursor: pointer; transition: background 0.18s, color 0.18s; }
.dn-note__btn:hover, .dn-note__btn:focus-visible { background: #a67c1e; color: #fff; }
@media (max-width: 767px) {
  .dn-note { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .dn-note__text strong { font-size: 17px; }
  .dn-note__btn { width: 100%; }
}
.dn-table[hidden] { display: none; }
.dn-table .dn-ref { font-weight: 700; color: #94641e; white-space: nowrap; }
.dn-names { display: block; }
.dn-deliv { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #94641e; }
.dn-st { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dn-st.is-pending { background: #fbefd9; color: #a0661a; }
.dn-st.is-confirmed { background: #e6eff7; color: #2f6fa3; }
.dn-st.is-delivered { background: #eef1e8; color: #5f6d4c; }
.dn-st.is-rejected { background: #fbe9e9; color: #b32d2e; }
.dn-found { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dn-found[hidden] { display: none; }
.dn-found__item { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid #eee3cc; border-radius: 14px; background: #fffdf8; color: inherit; text-decoration: none; transition: box-shadow 0.18s, transform 0.18s; }
.dn-found__item:hover { box-shadow: 0 8px 22px rgba(166, 124, 30, 0.16); transform: translateY(-2px); }
.dn-found__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.dn-found__head strong { font-size: 17px; color: #1f1f1f; }
.dn-found__names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dn-found__names li { padding: 3px 12px; border-radius: 100px; background: #f5efe5; font-size: 14px; color: #5b2a1a; }
.dn-found__names li.is-more { background: none; color: #8a7f6c; }
.dn-found__go { margin-top: auto; font-size: 14px; font-weight: 600; color: #94641e; }
@media (max-width: 767px) {
  .dn-found { grid-template-columns: 1fr; }
}
