/* กล่องสั่งซื้อ / ติดต่อ (inc/order-cta.php) v2 */
.lt-order {
  padding: 36px 0 44px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #fbe3e0 0%, #f2bbb6 100%);
  font-family: "Kanit", "Sarabun", sans-serif;
}
.lt-order-card {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 32px 26px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(140, 61, 58, 0.18);
  position: relative;
  overflow: hidden;
}
.lt-order-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(90deg, #d9726d, #f2bbb6 55%, #06c755);
}
.lt-order-main { flex: 1 1 auto; min-width: 0; }

/* หัวกล่อง: ป้ายจำลอง + หัวข้อ */
.lt-order-head { display: flex; align-items: center; gap: 16px; }
.lt-order-plate {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 58px;
  padding: 0 12px;
  border: 3px solid #2b1d1c;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f6f1ea 100%);
  box-shadow: inset 0 0 0 3px #fff, 0 6px 14px rgba(43, 29, 28, .15);
  transform: rotate(-4deg);
}
.lt-order-plate span {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #2b1d1c;
  white-space: nowrap;
  letter-spacing: .5px;
}
/* ป้ายจำลองที่ใช้พื้นหลังจริงของป้าย (ภาพ 600x355 ชื่อจังหวัดอยู่ด้านล่างในภาพ) */
.lt-order-plate--img {
  width: 132px;
  min-width: 0;
  height: 78px;
  padding: 0;
  position: relative;
  border: 0;
  border-radius: 8px;
  background-color: #fff;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 6px 14px rgba(43, 29, 28, .2);
}
.lt-order-plate--img span { /* ตัวเลขอยู่ช่วงบนของป้าย เหนือชื่อจังหวัด */
  position: absolute;
  left: 0;
  right: 0;
  top: 37%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 23px;
  letter-spacing: 0;
  text-shadow: 0 0 3px rgba(255, 255, 255, .9), 0 0 1px #fff;
}
.lt-order-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  background: #e8f9ef;
  color: #067a37;
  font-size: 17px;
  font-weight: 500;
}
.lt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06c755;
  animation: lt-blink 1.2s ease-in-out infinite;
}
.lt-order-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: #2b1d1c;
}
.lt-order-note {
  margin: 14px 0 18px;
  padding: 10px 14px;
  border-left: 4px solid #d9726d;
  border-radius: 0 12px 12px 0;
  background: #fdf1f0;
  color: #6b3a37;
  font-size: 15px;
  line-height: 1.5;
}

/* ปุ่ม */
.lt-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 18px 10px 16px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.lt-btn:hover,
.lt-btn:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.lt-btn:focus-visible { outline: 3px solid #2b1d1c; outline-offset: 3px; }
.lt-btn-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}
.lt-btn-text strong { font-size: 20px; font-weight: 600; }
.lt-btn-text small { margin-top: 2px; font-size: 13.5px; opacity: .95; }
.lt-btn-arrow { font-size: 34px; line-height: 1; }

/* ปุ่มหลัก LINE: กระพริบ + คลื่นวง + แสงวิ่ง */
.lt-btn-line {
  min-height: 74px;
  background: linear-gradient(180deg, #19d46a 0%, #06c755 55%, #05b04b 100%);
  box-shadow: 0 12px 26px rgba(6, 160, 70, .35);
  overflow: visible;
  isolation: isolate;
  animation: lt-pulse-btn 1.6s ease-in-out infinite;
}
.lt-btn-line::before { /* แสงวิ่งผ่านปุ่ม */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  animation: lt-shine 2.4s ease-in-out infinite;
  pointer-events: none;
}
.lt-btn-line::after { /* คลื่นวงกระจายรอบปุ่ม */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(6, 199, 85, .6);
  animation: lt-ring 1.6s ease-out infinite;
  pointer-events: none;
}
.lt-btn-line .lt-btn-arrow { animation: lt-nudge 1.6s ease-in-out infinite; }
.lt-btn-line .lt-btn-text strong { font-size: 22px; }
.lt-order-micro {
  margin: 8px 0 14px;
  text-align: center;
  color: #067a37;
  font-size: 13.5px;
}
.lt-btn-call {
  min-height: 56px;
  background: #fff;
  color: #0a5bd3;
  border: 2px solid #cfe0fb;
}
.lt-btn-call:hover,
.lt-btn-call:focus-visible { color: #0a5bd3; border-color: #0a5bd3; }
.lt-btn-call .lt-ico { background: #0a5bd3; }
.lt-btn-call .lt-btn-text strong { font-size: 18px; }
.lt-btn-call .lt-btn-text small { color: #5b6b86; }

@keyframes lt-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .25; transform: scale(.7); }
}
@keyframes lt-pulse-btn {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.025); filter: brightness(1.1); }
}
@keyframes lt-ring {
  0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .6); }
  80%, 100% { box-shadow: 0 0 0 16px rgba(6, 199, 85, 0); }
}
@keyframes lt-shine {
  0% { background-position: 130% 0; }
  60%, 100% { background-position: -30% 0; }
}
@keyframes lt-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ไอคอน */
.lt-ico {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: #fff;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.lt-ico-line { -webkit-mask-image: url("../images/icon-line.svg"); mask-image: url("../images/icon-line.svg"); }
.lt-ico-tel  { -webkit-mask-image: url("../images/icon-phone.svg"); mask-image: url("../images/icon-phone.svg"); width: 24px; height: 24px; flex-basis: 24px; }
.lt-ico-fb   { -webkit-mask-image: url("../images/icon-fb.svg"); mask-image: url("../images/icon-fb.svg"); }
.lt-ico-ig   { -webkit-mask-image: url("../images/icon-ig.svg"); mask-image: url("../images/icon-ig.svg"); }

/* 3 ขั้นตอน */
.lt-order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.lt-order-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #faf6f5;
  color: #5c3330;
  font-size: 13.5px;
  line-height: 1.3;
}
.lt-order-steps b {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d9726d;
  color: #fff;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

/* โซเชียล */
.lt-order-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: #8a6a67;
}
.lt-order-social > span { margin-right: 4px; }
.lt-order-chips { display: inline-flex; flex-wrap: nowrap; gap: 8px; }
.lt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lt-chip:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.lt-chip .lt-ico { width: 18px; height: 18px; flex-basis: 18px; }
.lt-chip-fb { background: #1877f2; }
.lt-chip-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }

/* QR (คอมพิวเตอร์) */
.lt-order-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  border: 1px dashed #e7b2ae;
  border-radius: 18px;
  background: #fffafa;
  color: #8c3d3a;
  font-size: 14px;
  text-decoration: none;
}
.lt-order-qr:hover { color: #8c3d3a; text-decoration: none; }
.lt-order-qr img { display: block; width: 194px; max-width: 100%; height: auto; }

@media only screen and (max-width: 767px) {
  .lt-order { padding: 22px 0 28px; }
  .lt-order-card { display: block; padding: 24px 16px 20px; border-radius: 20px; }
  .lt-order-head { gap: 12px; }
  .lt-order-plate { min-width: 78px; height: 48px; padding: 0 8px; }
  .lt-order-plate span { font-size: 18px; }
  .lt-order-plate--img { width: 108px; height: 64px; }
  .lt-order-plate--img span { font-size: 19px; }
  .lt-order-kicker { font-size: 16px; }
  .lt-order-title { font-size: 21px; }
  .lt-order-note { font-size: 14px; }
  .lt-btn-line .lt-btn-text strong { font-size: 20px; }
  .lt-order-steps li { flex-direction: column; text-align: center; padding: 10px 6px; font-size: 12.5px; }
  /* บนมือถือกดปุ่มได้เลย QR ไม่จำเป็น */
  .lt-order-qr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-dot, .lt-btn-line, .lt-btn-line::before, .lt-btn-line::after, .lt-btn-line .lt-btn-arrow { animation: none; }
  .lt-btn { transition: none; }
}
