.tprice {
  max-width: 720px;
  margin: 0 auto 40px auto;
  color: #ffffff !important;
}

#tprice {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  background: #ffffff;
}

#tprice thead th,
#tprice tbody td {
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.35;
}

#tprice tbody tr:last-child td {
  border-bottom: none;
}

#tprice img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* text */

.tprice .model {
  font-weight: 700 !important;
}

.tprice .price {
  font-weight: 700 !important;
  text-align: right;
}

/* reset */

.tprice * {
  box-sizing: border-box;
}

/* ========== 1) X-SERIES ========== */

.tprice-xseries #tprice {
  background: #ffffff;
  border: 3px solid #d11f2c;
}

.tprice-xseries thead th {
  padding: 0;
  border-bottom: none;
}

.tprice-xseries .head-row {
  height: 90px;
}

.tprice-xseries .head-left {
  width: 65%;
  background: #2a0505 !important;
}

.tprice-xseries .head-right {
  width: 35%;
  background: #7c111c !important;
}

.tprice-xseries .logo-main {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.tprice-xseries .logo-main img {
  max-height: 64px;
}

.tprice-xseries .logo-engine {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.tprice-xseries .logo-engine img {
  max-height: 40px;
}

/* body */

.tprice-xseries tbody td {
  border-bottom: 1px solid #e6e6e6;
}

.tprice-xseries tbody td:first-child {
  background: #ffffff !important;
  color: #111111 !important;
}

.tprice-xseries tbody td:last-child {
  background: linear-gradient(to right, #b01822, #6d050a) !important;
  color: #ffffff !important;
}

.tprice-xseries .model {
  position: relative;
}

.tprice-xseries .model::after {
  content: "";
  position: absolute;
  left: 0;
  right: -18px;
  bottom: -6px;
  border-bottom: 1px solid #dddddd;
}

.tprice-xseries tbody tr:last-child .model::after {
  display: none;
}

/* ========== 2) 4 ประตู (Cab4 + Hi-Lander) ========== */

.tprice-4door #tprice {
  border: 3px solid #b51c2d;
  background: #f5f5f5;
}

.tprice-4door thead th {
  padding: 0;
  border-bottom: none;
}

/* แถวหัว 4 ประตู + 22 / 30 */

.tprice-4door .head-main-row th {
  height: 90px;
}

.tprice-4door .fourdoor-title {
  background: #3b3b3d !important;
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 700;
  text-align: left;
  padding-left: 32px;
  vertical-align: middle;
}

.tprice-4door .engine-head {
  text-align: center;
}

.tprice-4door .engine-head.head22 {
  background: #55555d !important;
}

.tprice-4door .engine-head.head30 {
  background: #7b1d27 !important;
}

.tprice-4door .engine-head img {
  max-height: 32px;
  margin: 0 auto 6px;
}

/* label แถบดำ cab4 / hi-lander */

.tprice-4door .section-label-row td {
  padding: 0;
  border-bottom: none;
}

.tprice-4door .section-label {
  background: #111111 !important;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.tprice-4door .section-label img {
  max-height: 22px;
}

/* body rows */

.tprice-4door tbody tr.data-row td {
  border-bottom: 1px solid #dedede;
}

.tprice-4door tbody tr.data-row td:first-child {
  background: #ffffff !important;
  color: #111111 !important;
}

/* คอลัมน์ราคา – แยกตามเครื่องยนต์ */

.tprice-4door td.price22 {
  background: #55555d !important;
  color: #ffffff !important;
  text-align: right;
  font-weight: 700 !important;
}

.tprice-4door td.price30 {
  background: #7b1d27 !important;
  color: #ffffff !important;
  text-align: right;
  font-weight: 700 !important;
}

/* ADAS inline */

.tprice-4door .adas {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.tprice-4door .adas img {
  display: inline-block;
  max-height: 14px;
}

/* ========== 3) V-CROSS ========== */

.tprice-vcross #tprice {
  border: 3px solid #d12027;
  background: #2a2a2a;
}

.tprice-vcross thead th {
  padding: 0;
  border-bottom: none;
}

.tprice-vcross .head-left {
  background: #202020 !important;
}

.tprice-vcross .head-right {
  background: #b01822 !important;
}

.tprice-vcross .vc-logo-cell {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.tprice-vcross .vc-logo-cell img {
  max-height: 60px;
}

.tprice-vcross .vc-engine-cell {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tprice-vcross .vc-engine-cell img {
  max-height: 38px;
}

/* body */

.tprice-vcross tbody td {
  border-bottom: 1px solid #444444;
}

.tprice-vcross tbody td:first-child {
  background: #262626 !important;
  color: #ffffff !important;
}

.tprice-vcross tbody td:last-child {
  background: linear-gradient(to right, #b01822, #5b050a) !important;
  color: #ffffff !important;
}

/* ADAS inline */

.tprice-vcross .adas {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.tprice-vcross .adas img {
  display: inline-block;
  max-height: 14px;
}

/* ========== 4) MU-X ========== */

.tprice-mux #tprice {
  border: 3px solid #d0d0d0;
  background: #f0f0f0;
}

.tprice-mux thead th {
  border-bottom: none;
  padding: 0;
}

/* แถวโลโก้ MU-X (สีน้ำเงิน) */

.tprice-mux .mux-logo-row th {
  background: #10427b !important;
}

.tprice-mux .mux-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tprice-mux .mux-logo img {
  max-height: 50px;
}

/* แถวหัวเครื่องยนต์ – แยกสีตามคอลัมน์ */

.tprice-mux .engine-head-row th:first-child {
  padding: 14px 18px;
  text-align: left;
  color: #333333 !important;
  font-weight: 600 !important;
  background: #f4f4f4 !important;
}

.tprice-mux .engine-head-row .head22 {
  background: #4a4a52 !important;           /* เทาเข้ม */
}

.tprice-mux .engine-head-row .head30 {
  background: #003f86 !important;           /* น้ำเงินเข้ม */
}

.tprice-mux .head-eng {
  padding: 8px 10px;
  text-align: center;
}

.tprice-mux .head-eng img {
  max-height: 32px;
  margin: 0 auto;
}

/* ตัวเลขคอลัมน์ราคา – ล็อกสีตามคอลัมน์ (ทุกแถว) */

.tprice-mux td.price22 {
  background: #4a4a52 !important;
  color: #ffffff !important;
  text-align: right;
  font-weight: 700 !important;
}

.tprice-mux td.price30 {
  background: #003f86 !important;
  color: #ffffff !important;
  text-align: right;
  font-weight: 700 !important;
}

/* แถวปกติ – ฝั่งชื่อรุ่น */

.tprice-mux tbody tr.normal td {
  border-bottom: 1px solid #d8d8d8;
}

.tprice-mux tbody tr.normal td:first-child {
  background: #f4f4f4 !important;
  color: #111111 !important;
}

/* ADAS icon inline */

.tprice-mux .adas {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.tprice-mux .adas img {
  display: inline-block;
  max-height: 14px;
}

/* label RS */

.tprice-mux .rs-label-row td {
  padding: 0;
  border-bottom: none;
}

.tprice-mux .rs-label {
  background: #111111 !important;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.tprice-mux .rs-label img {
  max-height: 24px;
  margin-left: 12px;
}

/* แถว RS – ชื่อรุ่น */

.tprice-mux tbody tr.rs td:first-child {
  background: linear-gradient(to right, #f0f0f0, #dcdcdc) !important;
  color: #111111 !important;
  border-bottom: 1px solid #d8d8d8;
}

/* แถว RS – เปลี่ยนเฉพาะสีตัวเลขเป็นเขียวมะนาว */

.tprice-mux tbody tr.rs td.price22,
.tprice-mux tbody tr.rs td.price30 {
  color: #d8ff3b !important;   /* เขียวมะนาว */
}

/* ========== 5) 2 ประตู / SPACE CAB ========== */

.tprice-2door #tprice {
  background: #f5f5f5;
  border: 3px solid #cfd0d0;
}

.tprice-2door thead th {
  padding: 0;
  border-bottom: none;
}

.tprice-2door .head-main {
  background: #3a3a3d !important;
  color: #ffffff !important;
}

.tprice-2door .head-main-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.tprice-2door .head-main-inner span {
  font-size: 30px;
  font-weight: 700 !important;
}

.tprice-2door .head-main-inner img {
  max-height: 36px;
}

/* section label Spacecab / Hi-Lander */

.tprice-2door .section-label-row td {
  padding: 0;
  border-bottom: none;
}

.tprice-2door .section-label {
  background: #111111 !important;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.tprice-2door .section-label img {
  max-height: 18px;
}

/* body rows */

.tprice-2door tbody tr.data-row td {
  border-bottom: 1px solid #dedede;
}

.tprice-2door tbody tr.data-row td:first-child {
  background: #ffffff !important;
  color: #111111 !important;
}

.tprice-2door tbody tr.data-row td.price {
  background: #e0e0e0 !important;
  color: #111111 !important;
}

/* ADAS inline */

.tprice-2door .adas {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.tprice-2door .adas img {
  display: inline-block;
  max-height: 14px;
}

/* ========== Responsive เบา ๆ ========== */

@media (max-width: 600px) {
  #tprice thead th,
  #tprice tbody td {
    padding: 8px 12px;
    font-size: 13px;
  }

  .tprice-2door .head-main-inner span {
    font-size: 24px;
  }
}
