/* ---------- Request Quote Button: Modern style ---------- */
.woocommerce-cart .cart_totals .wgc-cart-actions {
  display: flex;                 /* ใส่ flex */
  justify-content: center;       /* จัดให้อยู่กึ่งกลาง */
  margin-top: 16px;              /* เว้นห่างจากปุ่ม checkout */
}

.woocommerce-cart .cart_totals .wgc-cart-actions a.wgc-btn-request-quote.button.alt {
  display: block !important;
  width: 84% !important;         /* กว้าง 75% ตามที่ต้องการ */
  margin: 12px auto 0 !important;/* ← จัดกลางด้วย auto ซ้าย/ขวา */
  text-align: center !important;

  background: #2b2b2b !important;
  color: #fff !important;

  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 6px !important;
  line-height: 2.4 !important;

  font-size: 16px !important;
  font-weight: 400 !important;
  font-family: 'Sarabun','Kanit',sans-serif !important;

  text-decoration: none !important;
  box-shadow: 0 3px 6px rgba(0,0,0,.12) !important;
  transition: background .25s ease, transform .08s ease, box-shadow .25s ease !important;
  cursor: pointer !important;
}

.woocommerce-cart .cart_totals .wgc-cart-actions a.wgc-btn-request-quote.button.alt:hover {
  background: #3a3a3a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.15) !important;
}

.woocommerce-cart .cart_totals .wgc-cart-actions a.wgc-btn-request-quote.button.alt:active {
  background: #1f1f1f !important;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.2) !important;
}

/* มือถือให้เต็มความกว้างดูสวย */
@media (max-width: 768px) {
  .woocommerce-cart .cart_totals .wgc-cart-actions a.wgc-btn-request-quote.button.alt {
    width: 100% !important;
  }
}


/* ====== WGC Table Modernization (remove shipping column) ====== */
.wgc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--wgc-border, #e6ecf7);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
}
.wgc-table th, .wgc-table td{
  padding:12px 14px;
  border-bottom:1px solid var(--wgc-border, #eef2f7);
  vertical-align:top;
  font-size:14px;
}
.wgc-table thead th{
  background:linear-gradient(180deg,#f8fafc, #eef2f7);
  font-weight:600;
  color:#0f172a;
}
.wgc-table tbody tr:nth-child(even){ background:#fafbff; }
.wgc-table tbody tr:hover{ background:#f2f6ff; }
.wgc-table td:nth-child(3), .wgc-table td:nth-child(4), .wgc-table td:nth-child(5),
.wgc-table th:nth-child(3), .wgc-table th:nth-child(4), .wgc-table th:nth-child(5){
  text-align:right;
}
.wgc-table td:first-child{ width:52%; }
.wgc-table td:nth-child(2){ width:10%; }
.wgc-table td:nth-child(3){ width:14%; }
.wgc-table td:nth-child(4){ width:10%; }
.wgc-table td:nth-child(5){ width:14%; }


/* Highlight shipping/packing summary row */




/* ===== Formal overrides (print-friendly, clean) ===== */
:root{
  --wgc-primary: #123a7a;
  --wgc-border:  #e5e7eb;
  --wgc-soft:    #f7f9fc;
  --wgc-text:    #0f172a;
}
.wgc-table{
  border-collapse: collapse;
  border:1px solid var(--wgc-border);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}
.wgc-table th, .wgc-table td{
  border-bottom:1px solid var(--wgc-border);
  padding: 10px 12px;
  font-size: 14px;
}
.wgc-table thead th{
  background:#f5f7fb;
  font-weight:600;
  color:#0f172a;
}
.wgc-table tbody tr:hover{ background:#f9fbff; }
.wgc-table td:nth-child(3),
.wgc-table td:nth-child(4),
.wgc-table td:nth-child(5),
.wgc-table th:nth-child(3),
.wgc-table th:nth-child(4),
.wgc-table th:nth-child(5){ text-align:right; }

/* Cards minimal */
.wgc-card{
  border:1px solid var(--wgc-border) !important;
  box-shadow:none !important;
  border-radius:10px !important;
}

/* Totals block refined */
.wgc-totals{
  background:#fff !important;
  border:1px solid var(--wgc-border);
  border-radius:10px;
  box-shadow:none !important;
}
.wgc-totals .row{ padding:10px 12px; border-bottom:1px dashed var(--wgc-border); }
.wgc-totals .row:last-child{ border-bottom:0; }
.wgc-totals .grand{
  background:#123a7a; color:#fff; font-weight:700; border-radius:0 0 10px 10px;
}

/* Remove shipping-row highlight (row no longer used) */
.wgc-table .wgc-shipping-row td{ background:transparent; font-weight:inherit; }

@media print{
  .no-print{ display:none !important; }
  body{ background:#fff !important; }
  .wgc-card, .wgc-totals{ box-shadow:none !important; }
}



/* --- Totals color fix: ensure visible on light background --- */
.wgc-totals{ 
  background:#fff !important; 
  color:#0f172a !important; 
}
.wgc-totals .row span:last-child{ 
  color:#0f172a !important; 
  font-weight:600; 
}



/* ===== Grand Total readability upgrade ===== */
.wgc-totals{ background:#fff !important; border:1px solid var(--wgc-border,#e5e7eb); border-radius:12px; }
.wgc-totals .row{ display:flex; justify-content:space-between; align-items:center; padding:12px 18px; }
.wgc-totals .row span:first-child{ color:#334155; font-weight:600; }
.wgc-totals .row span:last-child{ font-variant-numeric: tabular-nums; letter-spacing:.2px; }

/* Grand row: high contrast + large number */
.wgc-totals .grand{ 
  background:#0f172a !important; 
  color:#ffffff !important; 
  padding:16px 22px !important; 
  border-radius:0 0 12px 12px !important; 
}
.wgc-totals .grand span:first-child{ font-size:18px; font-weight:700; opacity:.95; }
.wgc-totals .grand span:last-child{ font-size:24px; font-weight:800; }

@media print{
  .wgc-totals .grand span:last-child{ font-size:22px; }
}



/* ===== Theme fix: readable "ยอดสุทธิ" and brand blues ===== */
:root{
  --wgc-primary:#1971e6;
  --wgc-primary-600:#125bbb;
  --wgc-navy:#123a7a;
  --wgc-white:#ffffff;
  --wgc-text:#0f172a;
}
/* Base totals */
.wgc-totals{ background:#fff !important; color:var(--wgc-text) !important; border:1px solid #e5e7eb; border-radius:12px; }
.wgc-totals .row{ display:flex; justify-content:space-between; align-items:center; padding:12px 18px; }
.wgc-totals .row span:first-child{ color:#334155; font-weight:600; }
.wgc-totals .row span:last-child{ color:var(--wgc-text); font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:.2px; }
/* Grand total: navy gradient with white text */
.wgc-totals .grand{
  background: linear-gradient(180deg,var(--wgc-primary-600), var(--wgc-navy)) !important;
  color: var(--wgc-white) !important;
  padding:16px 22px !important;
  border-radius:0 0 12px 12px !important;
}
.wgc-totals .grand span:first-child,
.wgc-totals .grand span:last-child{ color:var(--wgc-white) !important; }
.wgc-totals .grand span:first-child{ font-size:18px; font-weight:700; opacity:.98; }
.wgc-totals .grand span:last-child{ font-size:24px; font-weight:800; }


/* WGC Totals rows */
.wgc-totals .row.wgc-discount span:last-child{ color:#0b61be; font-weight:700; }
.wgc-totals .row.wgc-ship span:last-child{ color:#0f172a; font-weight:600; }
