/**
 * Astra Hook Theme — shovaas.com Exact Master Checkout v8.0.0 (Zero-Gap, Red Button in Middle, Bengali Thank You)
 */

/* ─── ডিফল্ট পেজ টাইটেল ও অপ্রয়োজনীয় হেডিংস সম্পূর্ণ হাইড ───────────── */
.woocommerce-checkout .entry-title,
.woocommerce-checkout > h1:first-child,
.woocommerce-checkout h1,
.ah-woocommerce-wrapper h1.entry-title,
.ah-woocommerce-wrapper > h1,
.entry-header,
.woocommerce-billing-fields > h3,
#order_review_heading,
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle,
.woocommerce-additional-fields,
.woocommerce-shipping-fields {
  display: none !important;
}

/* ─── চেকআউট কন্টেইনার (সার্চ বক্সের ঠিক নিচেই — জিরো গ্যাপ) ────────── */
.ah-woocommerce-wrapper.ah-checkout-wrapper {
  max-width: 580px !important;
  margin: 0 auto 20px !important;
  padding: 0 8px !important;
}

.woocommerce-checkout {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 10px 14px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
}

/* ─── টপ নির্দেশিকা টেক্সট ───────────────────────────────────────────── */
.ah-shovaas-checkout-instruction {
  background: #f8fafc !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  border: 1px dashed #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #334155 !important;
  text-align: center !important;
  margin: 0 0 6px !important;
}

.ah-shovaas-checkout-instruction strong {
  color: #dc2626 !important;
}

/* ─── ইনপুট ফিল্ডস ও কন্টেইনার (জিরো গ্যাপ) ──────────────────────────── */
#customer_details,
#customer_details .col-1,
#customer_details .col-2,
.woocommerce-billing-fields,
.woocommerce form .form-row,
.woocommerce-page form .form-row {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-billing-fields .form-row {
  margin-bottom: 5px !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-billing-fields .form-row:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-billing-fields label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 3px !important;
  line-height: 1.2 !important;
}

.woocommerce-billing-fields .input-text {
  width: 100% !important;
  padding: 9px 11px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
  box-sizing: border-box !important;
}

.woocommerce-billing-fields .input-text:focus {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.15) !important;
}

/* ─── অর্ডার রিভিউ এরিয়া (ফ্লেক্সবক্স কন্টেইনার) ───────────────────────── */
#order_review {
  background: transparent !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* টেবিল আর্কিটেকচার */
table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

table.woocommerce-checkout-review-order-table thead {
  display: none !important;
}

table.woocommerce-checkout-review-order-table tbody {
  display: block !important;
  order: 3 !important; /* প্রোডাক্ট রো লাল বাটনের নিচে */
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px 6px 0 0 !important;
  margin-top: 6px !important;
}

table.woocommerce-checkout-review-order-table tfoot {
  display: contents !important;
}

/* ─── ১. কুরিয়ার চার্জ পিলস সবার উপরে (জিরো গ্যাপ) ──────────────────── */
table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
  display: block !important;
  order: 1 !important;
  margin: 2px 0 4px !important;
  padding: 0 !important;
  border: none !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  padding: 2px 0 4px 0 !important;
  border: none !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
}

/* শিপিং পিলস */
ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 100% !important;
}

ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 13px !important;
  border-radius: 6px !important;
  background: #d0d3d8 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

ul#shipping_method li.ah-active-pill,
ul#shipping_method li:has(input[type="radio"]:checked) {
  background: #008822 !important;
  color: #ffffff !important;
}

ul#shipping_method li input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #ffffff !important;
}

ul#shipping_method li label {
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: space-between !important;
}

/* ─── ২. লাল 'অর্ডার কনফার্ম করুন' বাটন (কুরিয়ার চার্জের ঠিক নিচেই - Order: 2) ─── */
#payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  order: 2 !important;
  display: block !important;
  width: 100% !important;
}

#place_order,
.woocommerce-checkout #place_order.button {
  background: #e00000 !important;
  color: #ffffff !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(224, 0, 0, 0.25) !important;
  transition: background 0.15s ease !important;
  margin: 2px 0 6px !important;
  text-align: center !important;
  display: block !important;
}

#place_order:hover,
.woocommerce-checkout #place_order.button:hover {
  background: #c00000 !important;
}

/* ─── ৩. প্রোডাক্ট ও প্রাইস সামারি কার্ড (বাটনের নিচে - Order: 4) ───────── */
table.woocommerce-checkout-review-order-table tr.cart_item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

table.woocommerce-checkout-review-order-table tr.cart-subtotal,
table.woocommerce-checkout-review-order-table tr.ah-delivery-charge-row,
table.woocommerce-checkout-review-order-table tr.order-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  order: 4 !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
}

table.woocommerce-checkout-review-order-table .product-name {
  color: #1e293b !important;
  font-weight: 600 !important;
}

table.woocommerce-checkout-review-order-table .product-total,
table.woocommerce-checkout-review-order-table .order-total td {
  text-align: right !important;
  font-weight: 800 !important;
}

/* কোয়ান্টিটি (+ / -) ও ডিলিট বাটন */
.ah-checkout-item-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.ah-qty-group {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.ah-qty-btn {
  background: #0070f3 !important;
  color: #ffffff !important;
  border: none !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.ah-qty-btn:hover {
  background: #0051b3 !important;
}

.ah-qty-num {
  padding: 0 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
}

.ah-remove-item-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 15px !important;
  padding: 2px 4px !important;
  line-height: 1 !important;
}

.ah-remove-item-btn:hover {
  transform: scale(1.15);
}

/* ডেলিভারি চার্জ স্পষ্ট রো */
tr.ah-delivery-charge-row th {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

tr.ah-delivery-charge-row td {
  text-align: right !important;
  font-weight: 800 !important;
  color: #1e293b !important;
}

/* টোটাল রো (বোল্ড লাল) */
table.woocommerce-checkout-review-order-table tr.order-total {
  font-size: 15px !important;
  border-top: 1.5px solid #cbd5e1 !important;
  border-radius: 0 0 6px 6px !important;
}

table.woocommerce-checkout-review-order-table tr.order-total th {
  color: #e00000 !important;
  font-weight: 800 !important;
}

table.woocommerce-checkout-review-order-table tr.order-total td {
  color: #e00000 !important;
  font-size: 16.5px !important;
  font-weight: 900 !important;
}

/* পেমেন্ট ও অতিরিক্ত টেক্সট হাইড */
#payment ul.payment_methods,
.woocommerce-privacy-policy-text {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   🎉 থ্যাঙ্ক ইউ পেজ বাংলা ডিজাইন ও একই ডেলিভারি চার্জে অফার সেকশন
   ═══════════════════════════════════════════════════════════════════════ */
.ah-thankyou-bengali-wrap {
  max-width: 650px;
  margin: 10px auto 40px;
  padding: 0 10px;
}

.ah-thankyou-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 25px;
}

.ah-ty-success-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.ah-ty-title {
  color: #16a34a !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
}

.ah-ty-subtitle {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.ah-ty-order-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-ty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #334155;
}

.ah-ty-row strong {
  color: #0f172a;
}

.ah-ty-total {
  color: #dc2626 !important;
  font-size: 16px !important;
}

.ah-ty-hotline-btn {
  display: inline-block;
  background: #0070f3;
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ah-ty-hotline-btn:hover {
  background: #0051b3;
}

/* একই ডেলিভারি চার্জে অফার সেকশন */
.ah-thankyou-upsell-box {
  background: #ffffff;
  border: 2px solid #ffedd5;
  border-radius: 12px;
  padding: 20px 14px;
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.08);
}

.ah-upsell-header {
  text-align: center;
  margin-bottom: 18px;
}

.ah-upsell-badge {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.ah-upsell-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 4px;
}

.ah-upsell-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.ah-upsell-products-grid ul.products {
  margin: 0 !important;
}
