/*
Theme Name: Xmedcar Child
Theme URI: https://xmedcar.presslayouts.com/landing
Author: PressLayouts Team
Description: This is a child theme for Xmedcar
Version: 1.0.0
Author URI: https://presslayouts.com/
Template: xmedcar
Text Domain: xmedcar-child
*/

.widget_shopping_cart .mini-cart-item-content span.quantity {
  width: max-content;
}

.products .pls-product-image {
  aspect-ratio: 210 / 297;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.products .pls-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pls-products-header-right,
.woocommerce-ordering {
  display: none !important;
}

/* ให้ทั้งสองช่องและสัญลักษณ์เรียงอยู่แถวเดียวกัน */
.pls-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ให้กลุ่มห่อของแต่ละช่อง "หายไป" เพื่อให้ลูกข้างในเรียงในแถวเดียว */
.pls-price-input-group {
  display: contents;
}

.pls-price-input-group .pls-price-input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding-left: 0.75rem;
}

/* ลำดับ: [Min] - [Max] US $ */
.pls-price-input-group:nth-child(1) .pls-price-input {
  order: 1;
}
.pls-price-input-group:nth-child(2) .pls-price-input {
  order: 3;
}

/* ขีดคั่นกลาง */
.pls-price-inputs::before {
  content: "-";
  order: 2;
}

/* สัญลักษณ์สกุลเงิน: เหลือไว้ตัวเดียวหลังช่อง Max */
.pls-price-input-group .currency-symbol {
  position: static;
  white-space: nowrap;
  margin-top: 25px;
}
.pls-price-input-group:nth-child(1) .currency-symbol {
  display: none;
}
.pls-price-input-group:nth-child(2) .currency-symbol {
  order: 4;
}

h2.wc-bacs-bank-details-heading {
  font-size: large;
}

/* กล่องข้อมูลบัญชีธนาคาร */
.wc-bacs-bank-details {
  display: block !important;
  list-style: none;
  margin: 12px 0 0;
  padding: 8px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

/* แต่ละแถว: ชื่อรายการซ้าย / ค่าอยู่ขวา */
.wc-bacs-bank-details li {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 14px;
  color: #64748b;
}

.wc-bacs-bank-details li:last-child {
  border-bottom: 0 !important;
}

.wc-bacs-bank-details li strong {
  color: #0f2a5c;
  font-weight: 600;
  text-align: right;
}

/* เน้นเลขบัญชี */
.wc-bacs-bank-details .account_number strong {
  font-size: 18px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
