/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* =========================================================/* Product cards makeover moved to assets/css/product-cards.css */

/* ========== PRODUCT CARD FIX (Grid) ========== */

/* 1) Card đều chiều cao + bố cục cột */
.products .product-small .box,
.woocommerce .products .product-small .box{
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products .product-small .box-text,
.woocommerce .products .product-small .box-text{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 2) Title bớt đậm + clamp 3 dòng + ... */
.products .product-small .name.product-title a,
.woocommerce .products .product-small .name.product-title a{
  font-weight: 600;              /* bớt đậm */
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;         /* tối đa 3 dòng */
  overflow: hidden;
}

/* 3) Sao + giá căn giữa */
.products .product-small .star-rating,
.woocommerce .products .product-small .star-rating{
  margin: 8px auto 6px !important;   /* auto => center */
  float: none !important;
  display: block;
}

.products .product-small .price-wrapper,
.woocommerce .products .product-small .price-wrapper{
  text-align: center;
}

.products .product-small .price,
.woocommerce .products .product-small .price{
  display: inline-block;
  margin: 0 auto;
}

/* 4) Khu vực quantity (– 1 +) không vỡ, canh giữa */
.products .product-small form.cart,
.woocommerce .products .product-small form.cart{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;                 /* đẩy cụm dưới xuống đáy card => đều chiều cao */
}

.products .product-small .quantity,
.woocommerce .products .product-small .quantity,
.products .product-small .ux-quantity,
.woocommerce .products .product-small .ux-quantity{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto !important;
}

.products .product-small .quantity input.qty,
.woocommerce .products .product-small .quantity input.qty{
  width: 64px !important;
  min-width: 64px !important;
  text-align: center;
}

.products .product-small .quantity .minus,
.products .product-small .quantity .plus,
.woocommerce .products .product-small .quantity .minus,
.woocommerce .products .product-small .quantity .plus{
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* 5) Nút Add to cart đều nhau và nằm gọn */
.products .product-small a.button,
.products .product-small button.button,
.woocommerce .products .product-small a.button,
.woocommerce .products .product-small button.button{
  width: 100%;
  border-radius: 8px;
}

/* 6) Chống tràn layout do text dài / phần tử linh tinh */
.products .product-small .box-text,
.woocommerce .products .product-small .box-text{
  overflow: hidden;
}

/*Mới*/
/* =========================
   PRODUCT GRID – CARD FIX
   Equal height + aligned rows
   ========================= */

/* Make each product card equal height */
.woocommerce ul.products,
.products{
  display:flex;
  flex-wrap:wrap;
}

.woocommerce ul.products li.product,
.products .product-small{
  display:flex;
}

.woocommerce ul.products li.product .col-inner,
.products .product-small .col-inner{
  width:100%;
  display:flex;
}

.woocommerce ul.products li.product .box,
.products .product-small .box{
  width:100%;
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

/* Image area (force equal height, no distortion) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  padding:18px 18px 6px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display:block;
  width:100%;
  height:100%;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* If you prefer no crop, swap object-fit: cover -> contain */

/* Text area becomes a column so we can push controls to bottom */
.products .product-small .box-text{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px 16px;
  text-align:left;
  flex:1;
}

/* Title: lighter + clamp 3 lines with ellipsis */
.products .product-small .name,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  font-weight:600;
  line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height: calc(1.35em * 3); /* reserve 3 lines so titles align */
}

/* Rating + price centered and aligned */
.products .product-small .star-rating,
.products .product-small .price-wrapper,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .price{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

.products .product-small .price-wrapper{
  min-height: 28px; /* keep price row same height */
}

/* Push cart area to bottom so all buttons align */
.products .product-small .add-to-cart-button,
.woocommerce ul.products li.product .add-to-cart-button{
  margin-top:auto;
}

/* FORCE show Add to cart button if it exists but got hidden */
.products .product-small .add-to-cart-button,
.woocommerce ul.products li.product .add-to-cart-button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_grouped{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* =========================================================
   BUTTON COLOR – Add to cart
   Use #ffeb3b (yellow) as requested
   ========================================================= */

/* Loop cards (custom + default Woo buttons inside product grid) */
.products .product-small .takao-loop-cart .button,
.products .product-small .takao-loop-cart a.button,
.products .product-small .takao-loop-cart button,
.products .product-small a.button.add_to_cart_button,
.products .product-small a.button.product_type_simple,
.products .product-small a.button.product_type_variable,
.products .product-small a.button.product_type_grouped,
.products .product-small a.button.product_type_external,
.products .product-small button.single_add_to_cart_button,
.woocommerce ul.products li.product .takao-loop-cart .button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_grouped,
.woocommerce ul.products li.product a.button.product_type_external{
  background-color: #ffeb3b !important;
  border-color: #ffeb3b !important;
  color: #111 !important;
}

/* Hover */
.products .product-small .takao-loop-cart .button:hover,
.products .product-small a.button.add_to_cart_button:hover,
.products .product-small a.button.product_type_simple:hover,
.products .product-small button.single_add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.product_type_variable:hover,
.woocommerce ul.products li.product a.button.product_type_grouped:hover,
.woocommerce ul.products li.product a.button.product_type_external:hover{
  background-color: #ffeb3b !important;
  border-color: #ffeb3b !important;
  color: #111 !important;
  filter: brightness(0.97);
}

/* Button full width and never "break" */
.products .product-small .add-to-cart-button a.button,
.woocommerce ul.products li.product a.button{
  width:100%;
  display:block;
  box-sizing:border-box;
  border-radius:10px;
  padding:12px 14px;
  font-weight:700;
  text-transform:none;
}

/* If Flatsome wraps quantity+button in form.cart, align nicely */
.woocommerce ul.products li.product form.cart{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Quantity group: keep minus/qty/plus as ONE bar */
.woocommerce ul.products li.product .quantity,
.products .product-small .quantity{
  display:inline-flex !important;
  align-items:stretch !important;
  gap:0 !important;
  white-space:nowrap;
}

.woocommerce ul.products li.product .quantity .minus,
.woocommerce ul.products li.product .quantity .plus,
.products .product-small .quantity .minus,
.products .product-small .quantity .plus{
  float:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  line-height:42px !important;
  margin:0 !important;
  border-radius:0 !important;
}

.woocommerce ul.products li.product .quantity .minus,
.products .product-small .quantity .minus{
  border-radius:10px 0 0 10px !important;
}

.woocommerce ul.products li.product .quantity .plus,
.products .product-small .quantity .plus{
  border-radius:0 10px 10px 0 !important;
}

.woocommerce ul.products li.product .quantity input.qty,
.products .product-small .quantity input.qty{
  float:none !important;
  display:inline-block !important;
  width:70px !important;
  min-width:70px !important;
  height:42px !important;
  line-height:42px !important;
  margin:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  text-align:center !important;
  border-radius:0 !important;
  box-sizing:border-box;
}

/* Make sure quantity doesn't wrap and looks centered */
.products .product-small .quantity,
.woocommerce ul.products li.product .quantity{
  margin-left:auto;
  margin-right:auto;
}

/* Small screens */
@media (max-width: 849px){
  .products .product-small .box-text{
    padding:12px 12px 14px;
  }
}


/* =========================
   SECTION TITLE (Category heading)
   Yellow full-width pill + remove Flatsome default frame
   ========================= */

/* Target Flatsome section title blocks like: <div class="container section-title-container"><h3 class="section-title ...">... */
.container.section-title-container{
  width: 100%;
}

.container.section-title-container .section-title{
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  background: #ffeb3b;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: none !important;
}

/* Remove default lines/frame generated by Flatsome */
.container.section-title-container .section-title:before,
.container.section-title-container .section-title:after,
.container.section-title-container .section-title b{
  display: none !important;
}

/* Ensure the main text sits nicely */
.container.section-title-container .section-title .section-title-main{
  display: inline-block;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Optional: keep arrow aligned */
.container.section-title-container .section-title i{
  margin-left: 6px;
}

/* =========================
   PRODUCT GRID – PERFECT ALIGN (Fix8)
   - Ảnh cùng chiều cao (không méo)
   - Title/giá/qty/button thẳng hàng
   - Card cùng chiều cao
   ========================= */

/* Ensure each card stretches full height inside columns/slider */
.products .product-small,
.woocommerce ul.products li.product{
  height: 100%;
}

.products .product-small .col-inner,
.woocommerce ul.products li.product .col-inner{
  height: 100%;
  display: flex;
}

.products .product-small .box,
.woocommerce ul.products li.product .box{
  height: 100%;
}

/* 1) Equal-height image area (no distortion) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 8px;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px;
  }
}

/* 2) Hide rating in grid to keep price aligned (optional but needed for perfect alignment) */
.products .product-small .star-rating,
.woocommerce ul.products li.product .star-rating{
  display: none !important;
}

/* 3) Reserve consistent space for title + price */
.products .product-small .name.product-title,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  min-height: calc(1.35em * 3);
}

.products .product-small .price-wrapper,
.woocommerce ul.products li.product .price{
  min-height: 32px;
}

/* 4) Push cart block to bottom so qty/button align */
.products .product-small .box-text,
.woocommerce ul.products li.product .box-text{
  flex: 1;
}

.products .product-small .takao-loop-cart,
.products .product-small form.cart,
.woocommerce ul.products li.product .takao-loop-cart,
.woocommerce ul.products li.product form.cart{
  margin-top: auto !important;
}

/* 5) Normalize qty + button heights */
.products .product-small .takao-loop-cart,
.woocommerce ul.products li.product .takao-loop-cart{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.products .product-small .takao-qty,
.products .product-small .takao-qtywrap,
.woocommerce ul.products li.product .takao-qty,
.woocommerce ul.products li.product .takao-qtywrap{
  height: 40px;
}

.products .product-small .takao-qty-btn,
.woocommerce ul.products li.product .takao-qty-btn{
  width: 40px !important;
  height: 40px !important;
  line-height: 38px !important;
}

.products .product-small .takao-qty-input,
.woocommerce ul.products li.product .takao-qty-input{
  height: 40px !important;
}

.products .product-small .takao-loop-cart .button,
.products .product-small .takao-loop-cart a.button,
.products .product-small .takao-loop-cart button,
.woocommerce ul.products li.product .takao-loop-cart .button,
.woocommerce ul.products li.product .takao-loop-cart a.button,
.woocommerce ul.products li.product .takao-loop-cart button{
  height: 44px;
  line-height: 44px;
  padding: 0 14px;
}

/* =========================
   FIX11 – Image equal height (no distortion, width auto)
   - Khung ảnh cố định chiều cao
   - Ảnh luôn cao bằng nhau, không méo
   - Ảnh rộng theo tỉ lệ; nếu quá rộng sẽ bị cắt 2 bên (không phá layout)
   ========================= */

.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  overflow: hidden !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
  max-height: 100% !important;
  object-fit: unset !important;
  object-position: center !important;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
  }
}

/* =========================
   FIX13 – Image frame fixed + title always aligned
   ========================= */

/* 1) Hard lock image frame (override earlier rules) */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  padding: 18px 18px 8px !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Neo TOP: ảnh bám theo đỉnh, không được kéo cao khung */
.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: unset !important;
  object-position: unset !important;
}

@media (max-width: 768px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
  }
}

/* 2) Ensure text block starts at same position on every card */
.products .product-small .box-text,
.woocommerce ul.products li.product .box-text{
  padding-top: 14px !important;
}

/* 3) Reserve the same space for title + price so rows align */
.products .product-small .name.product-title,
.products .product-small .woocommerce-loop-product__title,
.woocommerce ul.products li.product .name{
  min-height: calc(1.35em * 3) !important;
}

.products .product-small .price-wrapper,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price-wrapper{
  min-height: 32px !important;
}



/* =========================================================
   FIX14: Force equal image frame height (top-anchored, no distortion)
   - Landscape images will not push title up (frame stays fixed)
   - Tall images are cropped at bottom (overflow hidden)
   ========================================================= */
.products .product-small .box-image,
.woocommerce ul.products li.product .box-image{
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden !important;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
}

.products .product-small .box-image a,
.woocommerce ul.products li.product .box-image a{
  display:block !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
}

.products .product-small .box-image img,
.woocommerce ul.products li.product .box-image img{
  display:block !important;
  width:100% !important;
  height:auto !important;          /* keep ratio, no distortion */
  max-height:none !important;
  object-fit: unset !important;
  object-position: top center !important;
  margin:0 !important;
}

@media (max-width: 849px){
  .products .product-small .box-image,
  .woocommerce ul.products li.product .box-image{
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }
}

/* === IMAGE FRAME FIX: tối ưu cho ảnh ngang + dọc, không lệch, không méo === */
.products .product-small.box,
.product-small.box{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
}

.products .product-small.box .box-image,
.product-small.box .box-image{
  height:220px !important;
  min-height:220px !important;
  max-height:220px !important;
  overflow:hidden !important;
}

/* Treo ảnh vào khung: TOP + center ngang */
.products .product-small.box .box-image > a,
.product-small.box .box-image > a{
  display:flex !important;
  height:100% !important;
  justify-content:flex-start !important; /* neo TOP */
  align-items:center !important;         /* căn giữa ngang */
}

/* Ảnh không méo, không cắt, không lệch */
.products .product-small.box .box-image img,
.product-small.box .box-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;          /* không méo */
  object-position:top center !important;  /* neo TOP, giữa ngang */
  margin:0 !important;
  max-width:100% !important;
}

/* Mobile */
@media (max-width: 849px){
  .products .product-small.box .box-image,
  .product-small.box .box-image{
    height:180px !important;
    min-height:180px !important;
    max-height:180px !important;
  }
}


/* === Tighten spacing: ảnh -> title -> price === */

/* 1) Giảm chiều cao khung ảnh để title không bị “rớt” quá xa */
.products .product-small.box .box-image,
.product-small.box .box-image{
  height:190px !important;
  min-height:190px !important;
  max-height:190px !important;
}

/* 2) Giảm padding vùng text */
.products .product-small.box .box-text,
.product-small.box .box-text{
  padding-top:10px !important;
  padding-bottom:10px !important;
}

/* 3) Title sát ảnh hơn */
.products .product-small.box .title-wrapper,
.product-small.box .title-wrapper{
  margin-top:0 !important;
}
.products .product-small.box .name.product-title,
.product-small.box .name.product-title{
  margin:0 0 6px 0 !important;   /* giảm khoảng cách dưới title */
  line-height:1.25 !important;
}

/* 4) Price sát title hơn */
.products .product-small.box .price-wrapper,
.product-small.box .price-wrapper{
  margin-top:0 !important;
  margin-bottom:8px !important;  /* giảm khoảng cách xuống qty */
}
.products .product-small.box .price,
.product-small.box .price{
  margin:0 !important;
}

/* Mobile */
@media (max-width: 849px){
  .products .product-small.box .box-image,
  .product-small.box .box-image{
    height:165px !important;
    min-height:165px !important;
    max-height:165px !important;
  }
}

/* === Tighter: title -> price, and button -> card bottom === */

/* 1) Title sát price hơn */
.products .product-small.box .name.product-title,
.product-small.box .name.product-title{
  margin-bottom: 2px !important;
  line-height: 1.22 !important;
}

.products .product-small.box .price-wrapper,
.product-small.box .price-wrapper{
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.products .product-small.box .price,
.product-small.box .price{
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* 2) Giảm “đệm đáy” của card để nút sát chân khung hơn */
.products .product-small.box .box-text,
.product-small.box .box-text{
  padding-bottom: 6px !important;
}

/* 3) Giảm khoảng cách dưới nút Add to cart */
.products .product-small.box .button,
.product-small.box .button,
.products .product-small.box .takao-loop-cart .button,
.product-small.box .takao-loop-cart .button{
  margin-bottom: 0 !important;
}

/* 4) Nếu Flatsome đang set gap lớn giữa các block trong box-text */
.products .product-small.box .box-text > *,
.product-small.box .box-text > *{
  margin-bottom: 6px !important;
}
.products .product-small.box .box-text > *:last-child,
.product-small.box .box-text > *:last-child{
  margin-bottom: 0 !important;
}

/* =========================
 * Checkout UI (mẫu 2)
 * ========================= */

body.fch-checkout .woocommerce-notices-wrapper,
body.fch-checkout .woocommerce-form-coupon-toggle{
  display:none !important;
}

/* Keep site container width (DO NOT force 100vw) */

body.fch-checkout .fch-checkout-header{
  margin:0 0 20px;
  padding:12px 0 0;
  text-align:center;
}

body.fch-checkout .fch-checkout-lang{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:42px;
  border:1px solid #eee;
  background:#fff;
  margin:0 auto 8px;
  font-weight:600;
}

body.fch-checkout .fch-checkout-title{
  margin:0 0 10px;
}

body.fch-checkout .fch-checkout-steps{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 8px;
}

body.fch-checkout .fch-step{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #e7e7e7;
  background:#fff;
  font-size:14px;
}

body.fch-checkout .fch-step.is-active{
  background:#f3c300;
  border-color:#f3c300;
  color:#fff;
}

body.fch-checkout .fch-checkout-sub{
  margin:0;
  color:#6b6b6b;
}

/* Section blocks */
body.fch-checkout .fch-section{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:6px;
  padding:16px;
  margin:0 0 18px;
}

body.fch-checkout .fch-section-title{
  margin:0 0 14px;
  font-size:18px;
  font-weight:700;
}

/* 1) Payment & Shipping: form + map (within same section) */
body.fch-checkout .fch-ship-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:18px;
  align-items:start;
}

@media (max-width: 849px){
  body.fch-checkout .fch-ship-grid{
    grid-template-columns:1fr;
  }
}

body.fch-checkout .fch-ship-side{
  align-self:start;
}

body.fch-checkout .fch-checkout-note{
  font-size:12px;
  line-height:1.45;
  color:#c10000;
  margin-bottom:12px;
}

body.fch-checkout .fch-checkout-map img{
  width:100%;
  height:auto;
  display:block;
}

/* Mobile: Your order (no horizontal scroll, keep headings 1-4, compact + align right) */
@media (max-width: 849px){

  /* Break the table layout into block layout (reliable on mobile) */
  body.fch-checkout .fch-review{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    table-layout:auto !important;
  }
  body.fch-checkout .fch-review thead{display:none !important;}
  body.fch-checkout .fch-review tbody,
  body.fch-checkout .fch-review tfoot{
    display:block !important;
    width:100% !important;
  }
  body.fch-checkout .fch-review tr{
    display:block !important;
    width:100% !important;
  }
  body.fch-checkout .fch-review td,
  body.fch-checkout .fch-review th{
    display:block !important;
    width:100% !important;
    border:0 !important;
  }

  /* Section headings (1-4) — gold bar full width */
  body.fch-checkout .fch-review tr.fch-section-title{ margin:14px 0 8px !important; }
  body.fch-checkout .fch-review tr.fch-section-title th{
    background:#b08b00 !important;
    color:#fff !important;
    padding:12px 14px !important;
    border-radius:0 !important;
    font-weight:800 !important;
    font-size:16px !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:normal !important;
    word-break:break-word !important;
  }

  /* Product rows (grid: prevents qty/price overflow and keeps right edge aligned) */
  body.fch-checkout .fch-review tr.cart_item{
    display:grid !important;
    grid-template-columns: 44px 1fr !important;
    column-gap:12px !important;
    row-gap:6px !important;
    padding:12px 10px !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
    align-items:start !important;
  }
  /* Override the generic td width:100% for product rows */
  body.fch-checkout .fch-review tr.cart_item > td{
    width:auto !important;
  }

  body.fch-checkout .fch-review td.fch-td-img{
    grid-column:1 !important;
    grid-row:1 / span 4 !important;
    padding:0 !important;
  }
  body.fch-checkout .fch-review td.fch-td-img img{
    width:44px !important;
    height:44px !important;
    object-fit:cover !important;
    display:block !important;
    border-radius:6px !important;
  }

  /* Content cells stack in column 2 */
  body.fch-checkout .fch-review td.fch-td-name,
  body.fch-checkout .fch-review td.fch-td-price,
  body.fch-checkout .fch-review td.fch-td-qty,
  body.fch-checkout .fch-review td.fch-td-sub{
    grid-column:2 !important;
    padding:0 !important;
    margin:0 !important;
  }
  body.fch-checkout .fch-review td.fch-td-name{ grid-row:1 !important; }
  body.fch-checkout .fch-review td.fch-td-price{ grid-row:2 !important; text-align:right !important; }
  body.fch-checkout .fch-review td.fch-td-qty{ grid-row:3 !important; justify-self:end !important; }
  body.fch-checkout .fch-review td.fch-td-sub{ grid-row:4 !important; justify-self:end !important; text-align:right !important; }

  body.fch-checkout .fch-review .fch-product-name{
    display:block !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    margin:0 0 4px !important;
    text-align:left !important;
  }

  /* Compact qty control and stick it to the right */
  body.fch-checkout .fch-review .fch-qty{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    margin-left:auto !important;
    max-width:100% !important;
  }
  body.fch-checkout .fch-review .fch-qty-btn{
    width:34px !important;
    height:34px !important;
    line-height:34px !important;
  }
  body.fch-checkout .fch-review .fch-qty-input{
    width:52px !important;
    height:34px !important;
  }

  /* Block rows (Shipping / Services / Support) */
  body.fch-checkout .fch-review td.fch-td-block{
    padding:10px 10px 12px !important;
  }

  /* Shipping methods */
  body.fch-checkout .fch-review .shipping ul#shipping_method{
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
  }
  body.fch-checkout .fch-review .shipping ul#shipping_method li{
    display:flex !important;
    align-items:flex-start !important;
    gap:10px !important;
    padding:8px 0 !important;
    margin:0 !important;
  }
  body.fch-checkout .fch-review .shipping ul#shipping_method li input{
    margin-top:3px !important;
    flex:0 0 auto !important;
  }
  body.fch-checkout .fch-review .shipping ul#shipping_method li label{
    flex:1 1 auto !important;
    display:flex !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin:0 !important;
  }
  body.fch-checkout .fch-review .shipping ul#shipping_method li label .amount{
    margin-left:auto !important;
    white-space:nowrap !important;
    font-weight:700 !important;
  }

  /* Add-on + Support (custom fields): generic align */
  body.fch-checkout .fch-review .fch-td-block .fch-option,
  body.fch-checkout .fch-review .fch-td-block .woocommerce-input-wrapper,
  body.fch-checkout .fch-review .fch-td-block .form-row{
    width:100% !important;
  }
  body.fch-checkout .fch-review .fch-td-block label{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin:0 !important;
    width:100% !important;
  }
  body.fch-checkout .fch-review .fch-td-block label input{
    margin-right:10px !important;
  }
  body.fch-checkout .fch-review .fch-td-block .fch-price,
  body.fch-checkout .fch-review .fch-td-block .amount{
    margin-left:auto !important;
    white-space:nowrap !important;
    font-weight:700 !important;
    text-align:right !important;
  }

  /* Totals rows: label left, amount right */
  body.fch-checkout .fch-review tr.cart-subtotal,
  body.fch-checkout .fch-review tr.fee,
  body.fch-checkout .fch-review tr.tax-total,
  body.fch-checkout .fch-review tr.order-total{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:10px 10px !important;
    border-top:1px solid rgba(0,0,0,.08) !important;
  }
  body.fch-checkout .fch-review tr.cart-subtotal th,
  body.fch-checkout .fch-review tr.fee th,
  body.fch-checkout .fch-review tr.tax-total th,
  body.fch-checkout .fch-review tr.order-total th{
    flex:1 1 auto !important;
    width:auto !important;
    padding:0 !important;
  }
  body.fch-checkout .fch-review tr.cart-subtotal td,
  body.fch-checkout .fch-review tr.fee td,
  body.fch-checkout .fch-review tr.tax-total td,
  body.fch-checkout .fch-review tr.order-total td{
    flex:0 0 auto !important;
    width:auto !important;
    padding:0 !important;
    text-align:right !important;
    white-space:nowrap !important;
  }
}

@media (min-width: 850px){
/* Shipping row layout */
body.fch-checkout .fch-review tr.shipping,
body.fch-checkout .fch-review tr.cart-subtotal,
body.fch-checkout .fch-review tr.fee,
body.fch-checkout .fch-review tr.order-total,
body.fch-checkout .fch-review tr.tax-total,
body.fch-checkout .fch-review tr.tax-rate{
  display:block;
  padding:10px 6px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
body.fch-checkout .fch-review tr.cart-subtotal th,
body.fch-checkout .fch-review tr.fee th,
body.fch-checkout .fch-review tr.order-total th,
body.fch-checkout .fch-review tr.tax-total th,
body.fch-checkout .fch-review tr.tax-rate th{
  display:block;
  padding:0 0 6px 0;
  border:0;
  font-weight:600;
}
body.fch-checkout .fch-review tr.cart-subtotal td,
body.fch-checkout .fch-review tr.fee td,
body.fch-checkout .fch-review tr.order-total td,
body.fch-checkout .fch-review tr.tax-total td,
body.fch-checkout .fch-review tr.tax-rate td{
  display:block;
  padding:0;
  border:0;
  text-align:right;
  font-weight:700;
}

/* Shipping methods: checkbox left, text+price right */
body.fch-checkout .fch-review .woocommerce-shipping-methods,
body.fch-checkout .fch-review #shipping_method{
  margin:0;
  padding:0;
  list-style:none;
}
body.fch-checkout .fch-review #shipping_method li,
body.fch-checkout .fch-review .woocommerce-shipping-methods li{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
body.fch-checkout .fch-review #shipping_method li:last-child,
body.fch-checkout .fch-review .woocommerce-shipping-methods li:last-child{
  border-bottom:0;
}
body.fch-checkout .fch-review #shipping_method input,
body.fch-checkout .fch-review .woocommerce-shipping-methods input{
  margin:0;
  flex:0 0 auto;
}
body.fch-checkout .fch-review #shipping_method label,
body.fch-checkout .fch-review .woocommerce-shipping-methods label{
  margin:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body.fch-checkout .fch-review #shipping_method label .amount,
body.fch-checkout .fch-review .woocommerce-shipping-methods label .amount{
  white-space:nowrap;
  font-weight:700;
}

/* Add-on services & Support: tick/radio left, label+price right */
body.fch-checkout .fch-services-box .fch-check,
body.fch-checkout .fch-support-box .fch-radio{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  margin:0;
}
body.fch-checkout .fch-services-box .fch-check:last-child,
body.fch-checkout .fch-support-box .fch-radio:last-child{
  border-bottom:0;
}
body.fch-checkout .fch-services-box .fch-check input,
body.fch-checkout .fch-support-box .fch-radio input{
  margin:0;
  flex:0 0 auto;
}
body.fch-checkout .fch-check__label,
body.fch-checkout .fch-radio__label{
  flex:1 1 auto;
  text-align:right;
  line-height:1.25;
}
body.fch-checkout .fch-check__price,
body.fch-checkout .fch-radio__price{
  white-space:nowrap;
  font-weight:700;
  text-align:right;
}

/* Total row: amount to the right */
body.fch-checkout .fch-review tr.order-total td{
  font-size:18px;
}
}



/* Make order review full width and similar section spacing */
body.fch-checkout #order_review_heading{
  text-align:left;
  max-width:none;
  margin:0 auto 10px;
  padding:0 24px;
}

body.fch-checkout form.checkout{
  max-width:100%;
  width:100%;
  margin:0;
  padding:0 0 24px;
}

/* Hide Flatsome sidebars + make checkout full width */
body.fch-checkout #secondary,
body.fch-checkout .sidebar,
body.fch-checkout .shop-sidebar{
  display:none !important;
}
body.fch-checkout .large-9,
body.fch-checkout .medium-9,
body.fch-checkout .small-12{
  width:100% !important;
  max-width:100% !important;
  flex-basis:100% !important;
}

/* Order review table (mẫu) */
body.fch-checkout .fch-review{
  width:100%;
  border:1px solid #e7e7e7;
  border-collapse:collapse;
}
body.fch-checkout .fch-review th,
body.fch-checkout .fch-review td{
  border:1px solid #e7e7e7;
  padding:10px 12px;
  vertical-align:middle;
}
body.fch-checkout .fch-review thead th{
  background:#fafafa;
  font-weight:700;
}
body.fch-checkout .fch-section-title th{
  background:#b08b00;
  color:#fff;
  font-weight:700;
  padding:8px 12px;
}
body.fch-checkout .fch-td-block{
  background:#fff;
}

body.fch-checkout .fch-col-img{ width:80px; }
body.fch-checkout .fch-col-price{ width:120px; }
body.fch-checkout .fch-col-qty{ width:140px; }
body.fch-checkout .fch-col-sub{ width:140px; }
body.fch-checkout .fch-td-img img{ max-width:46px; height:auto; display:block; }
body.fch-checkout .fch-product-name{ font-weight:600; }

/* Qty control */
body.fch-checkout .fch-qty{
  display:inline-flex;
  align-items:center;
  border:1px solid #dcdcdc;
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
body.fch-checkout .fch-qty-btn{
  width:34px;
  height:34px;
  border:0;
  background:#f3f3f3;
  font-size:16px;
  line-height:34px;
}
body.fch-checkout .fch-qty-input{
  width:52px;
  height:34px;
  border:0;
  text-align:center;
  padding:0;
}

/* Services + support */
body.fch-checkout .fch-services-box,
body.fch-checkout .fch-support-box{
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.fch-checkout .fch-check,
body.fch-checkout .fch-radio{
  display:flex;
  align-items:center;
  gap:10px;
}
body.fch-checkout .fch-check input,
body.fch-checkout .fch-radio input{
  margin:0;
}
body.fch-checkout .fch-check__label,
body.fch-checkout .fch-radio__label{
  flex:1;
}
body.fch-checkout .fch-check__price,
body.fch-checkout .fch-radio__price{
  white-space:nowrap;
}

/* Payment block like mẫu */
body.fch-checkout #payment.fch-payment{
  background:#efefef;
  padding:14px 16px;
  border:1px solid #e7e7e7;
  border-top:0;
}
body.fch-checkout #payment.fch-payment .wc_payment_methods{
  margin:0 0 10px;
}
body.fch-checkout #payment.fch-payment #place_order{
  background:#f3c300;
  border-color:#f3c300;
  color:#000;
  font-weight:700;
  padding:12px 18px;
  border-radius:4px;
}
body.fch-checkout #payment.fch-payment .woocommerce-terms-and-conditions-wrapper{
  margin:10px 0;
}


/* =========================
 * Thank You UI (mẫu 3)
 * ========================= */

body.fch-thankyou .woocommerce-order{
  max-width:none;
  width:100%;
  margin:0 auto;
  padding:0 24px;
}

body.fch-thankyou .fch-thankyou-hero{
  position:relative;
  padding:60px 0 30px;
  text-align:center;
}

body.fch-thankyou .fch-thankyou-hero__bg{
  position:absolute;
  inset:0;
  background: #0a8f2a;
  background-image: none !important;
  z-index:0;
}

body.fch-thankyou .fch-thankyou-title{
  position:relative;
  z-index:1;
  color:#fff;
  margin:0 0 30px;
  letter-spacing:1px;
}

body.fch-thankyou .fch-thankyou-panel{
  position:relative;
  z-index:1;
  max-width:none;
  width:100%;
  margin:0 auto;
  background:#fff;
  border-radius:10px;
  padding:18px 18px 6px;
  box-shadow:0 2px 18px rgba(0,0,0,0.06);
}

body.fch-thankyou .fch-thankyou-panel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-38px;
  height:60px;
  background:#fff;
  clip-path:polygon(0 100%, 50% 0, 100% 100%);
}

body.fch-thankyou .fch-thankyou-panel__cap{
  color:#b08b00;
  font-weight:700;
  margin-bottom:12px;
}

/* Order information lines: one item per line (label + value) */
body.fch-thankyou .fch-ty-lines{
  max-width: 520px;
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

body.fch-thankyou .fch-ty-line{
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  font-size: 16px;
}

body.fch-thankyou .fch-ty-k{
  color: #111;
  font-weight: 500;
}

body.fch-thankyou .fch-ty-v{
  color: #111;
  font-weight: 800;
}

body.fch-thankyou .fch-thankyou-meta{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  text-align:left;
}

@media (max-width: 849px){
  body.fch-thankyou .fch-thankyou-meta{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 549px){
  body.fch-thankyou .fch-thankyou-meta{
    grid-template-columns:1fr;
  }
}

body.fch-thankyou .fch-label{
  display:block;
  color:#6b6b6b;
  font-size:12px;
  margin-bottom:4px;
}

/* Hide default thankyou blocks to match mẫu (optional) */
body.fch-thankyou .woocommerce-order-details,
body.fch-thankyou .woocommerce-customer-details{
  display:none;
}


/* Checkout steps: anchor + link reset */
body.fch-checkout .fch-step-anchor{
  position:relative;
  top:-120px;
  height:1px;
}
body.fch-checkout a.fch-step{
  text-decoration:none;
  color:inherit;
}
body.fch-checkout a.fch-step:hover{
  text-decoration:none;
}



/* Thank you subtitle + bank box */
.fch-thankyou-subtitle{
  margin: 10px auto 0;
  max-width: 980px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
}

.fch-thankyou-bank{
  margin-top: 16px;
  text-align: left;
}

.fch-thankyou-bank__title{
  font-weight: 700;
  margin-bottom: 10px;
}

.fch-thankyou-bank__box{
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}

.fch-bank-row{
  display:flex;
  gap:14px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.fch-bank-row:last-child{ border-bottom: 0; }

.fch-bank-k{
  width: 160px;
  color: #666;
  font-weight: 600;
}

.fch-bank-v{
  flex: 1;
  font-weight: 700;
  color: #111;
}


/* ===== Top1: Split category strip desktop/mobile (mobile grid 4+4+3) ===== */
@media (max-width: 849px){
  .fs-cat-strip.takao-desktop-only{ display:none !important; }

  .fs-cat-strip-mobile.takao-mobile-only{ display:block !important; margin: 14px 0; }
  .fs-cat-strip-mobile-inner{
    display:grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .fs-cat-m-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-decoration:none !important;
  }
  /* Fixed icon box so every tile aligns perfectly */
  .fs-cat-m-img{
    width: 72px;
    height: 72px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:2px solid #0a8f2a;
    border-radius: 14px;
    box-sizing:border-box;
  }
  .fs-cat-m-img img{
    max-width: 56px;
    max-height: 56px;
    width:auto;
    height:auto;
    object-fit: contain;
    display:block;
  }
  /* Show full-ish titles without ellipsis, but keep every tile same height */
  .fs-cat-m-title{
    margin-top: 6px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.15;
    text-align:center;
    color:#000;
    text-transform: uppercase;

    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: block;

    /* Reserve space for up to ~5 lines so all cards stay equal height */
    min-height: calc(1.15em * 5);
  }

  /* Hard override: kill any theme clamping/ellipsis on mobile titles */
  .fs-cat-strip-mobile .fs-cat-m-title{
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }
}

@media (min-width: 850px){
  .fs-cat-strip-mobile{ display:none !important; }

  /* Desktop: make titles readable (less bold), show full text, Roboto */
  .fs-cat-strip,
  .fs-cat-strip *{
    font-family: Roboto, sans-serif;
  }

  /* Common title wrappers (builder may use <p> or .fs-cat-title) */
  .fs-cat-strip .fs-cat-title,
  .fs-cat-strip p{
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    margin: 6px 0 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* If any ellipsis/clamp rules exist elsewhere, neutralize them */
  .fs-cat-strip .fs-cat-title,
  .fs-cat-strip p{
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    display: block;
  }
}

/* ============================
   Split mega menu (2-pane like image #2)
   Apply to top menu items with class: fs-split-mega-parent
   ============================ */

@media (min-width: 850px) {
  li.fs-split-mega-parent > .nav-dropdown,
  li.fs-split-mega-parent > ul.sub-menu {
    padding: 0;
  }

  li.fs-split-mega-parent .fs-split-wrap-li {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  li.fs-split-mega-parent .fs-split-mega {
    display: inline-flex;
    width: max-content;
    max-width: calc(100vw - 40px);
    background: #fff;
  
  }

  li.fs-split-mega-parent .fs-split-left {
    width: 270px;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    border-right: 1px solid rgba(0,0,0,0.08);
  }

  li.fs-split-mega-parent .fs-split-left > li {
    margin: 0;
  }

  li.fs-split-mega-parent .fs-split-left > li > a {
    display: block;
    padding: 10px 18px;
    line-height: 1.25;
    color: #111;
    font-weight: 500;
  }

  
  /* Arrow on left items that have children */
  li.fs-split-mega-parent .fs-split-left > li.fs-has-children > a{
    position: relative;
    padding-right: 34px;
  }
  li.fs-split-mega-parent .fs-split-left > li.fs-has-children > a:after{
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.75;
  }

li.fs-split-mega-parent .fs-split-left > li:hover > a,
  li.fs-split-mega-parent .fs-split-left > li.is-active > a {
    background: #f6d44a; /* yellow highlight */
  }

  li.fs-split-mega-parent .fs-split-right {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    padding: 14px 18px;
  
  }

  li.fs-split-mega-parent .fs-split-right.is-empty {
    display: none;
  }

  li.fs-split-mega-parent .fs-split-panel {
    display: none;
  }
  li.fs-split-mega-parent .fs-split-panel.is-active {
    display: block;
  }

  /* Level-3 list styling */
  li.fs-split-mega-parent .fs-split-panel ul.sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: max-content;
  
  }

  li.fs-split-mega-parent .fs-split-panel ul.sub-menu > li {
    margin: 0;
  }

  li.fs-split-mega-parent .fs-split-panel ul.sub-menu > li > a {
    display: block;
    padding: 8px 10px;
    color: #111;
    font-weight: 500;
    white-space: nowrap;
  
  }

  li.fs-split-mega-parent .fs-split-panel ul.sub-menu > li > a:hover {
    text-decoration: underline;
  }
}


/* Hide Reviews tab + panel on single product (Flatsome/WooCommerce) */
.single-product .woocommerce-tabs .tabs li.reviews_tab,
.single-product .woocommerce-tabs #tab-reviews,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--reviews,
.single-product #reviews,
.single-product #review_form_wrapper {
  display: none !important;
}

/* (Optional) remove border/spacing left by tabs */
.single-product .woocommerce-tabs .tabs {
  margin-bottom: 0 !important;
}

/* Hide breadcrumb on single product */
.single-product .woocommerce-breadcrumb,
.single-product .breadcrumbs {
  display: none !important;
}


/* Mobile only: hide FILTER button + sorting dropdown on category/archive pages */
@media (max-width: 849px){
  /* nút FILTER (Flatsome off-canvas filter) */
  .archive .category-filtering .filter-button,
  .archive .category-filtering,
  .archive .filter-button{
    display:none !important;
  }

  /* dropdown Default sorting */
  .archive .woocommerce-ordering,
  .archive form.woocommerce-ordering{
    display:none !important;
  }

  /* gọn lại khoảng trống khu vực title */
  .archive .page-title{
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
  }
}



/* =========================================================
   TOP1 CHECKOUT 2026 - Auckland 5 areas / 3 delivery zones
   Scoped to checkout only; all other theme sections stay unchanged.
   ========================================================= */
body.fch-checkout{
  background:#fff;
}
body.fch-checkout #main,
body.fch-checkout .page-wrapper,
body.fch-checkout .woocommerce{
  background:#fff;
}
body.fch-checkout .top1-checkout-form{
  width:100% !important;
  max-width:1240px !important;
  margin:0 auto !important;
  padding:0 20px 48px !important;
}
body.fch-checkout .top1-checkout-shell{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(390px, .92fr);
  min-height:720px;
  border-top:1px solid #e7e7e7;
}
body.fch-checkout .top1-checkout-main{
  padding:28px 38px 42px 0;
}
body.fch-checkout .top1-checkout-summary-wrap{
  background:#f7f7f7;
  border-left:1px solid #e2e2e2;
  padding:38px 0 42px 38px;
}
body.fch-checkout .top1-checkout-summary{
  position:sticky;
  top:28px;
  max-width:470px;
}
body.fch-checkout .top1-checkout-brandline h1{
  margin:0 0 26px;
  font-size:28px;
  line-height:1.2;
  font-weight:700;
  color:#111;
}
body.fch-checkout .top1-checkout-section{
  margin:0 0 28px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.fch-checkout .top1-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 12px;
}
body.fch-checkout .top1-section-heading h2{
  margin:0;
  font-size:19px;
  line-height:1.3;
  font-weight:700;
  color:#151515;
}
body.fch-checkout .top1-payment-heading p{
  margin:4px 0 0;
  font-size:13px;
  color:#737373;
}
body.fch-checkout .top1-delivery-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#f3f3f3;
  border-radius:14px;
  padding:3px;
  margin:0 0 20px;
}
body.fch-checkout .top1-delivery-option{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 !important;
  border:1px solid transparent;
  border-radius:12px;
  color:#161616;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}
body.fch-checkout .top1-delivery-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
body.fch-checkout .top1-delivery-option.is-active{
  background:#fff;
  border-color:#dedede;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
body.fch-checkout .top1-delivery-option__icon{
  font-size:18px;
  line-height:1;
}
body.fch-checkout .top1-billing-fields{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
body.fch-checkout .top1-billing-fields .form-row,
body.fch-checkout .top1-contact-section .form-row,
body.fch-checkout .top1-notes-section .form-row{
  float:none !important;
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
}
body.fch-checkout .top1-billing-fields .form-row-first,
body.fch-checkout .top1-billing-fields .form-row-last{
  width:calc(50% - 5px) !important;
}
body.fch-checkout .top1-billing-fields .form-row-wide{
  width:100% !important;
}
body.fch-checkout .top1-checkout-section .form-row label:not(.checkbox):not(.woocommerce-form__label){
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
body.fch-checkout .top1-checkout-section .woocommerce-input-wrapper{
  display:block;
  width:100%;
}
body.fch-checkout .top1-checkout-section input.input-text,
body.fch-checkout .top1-checkout-section input[type="email"],
body.fch-checkout .top1-checkout-section input[type="tel"],
body.fch-checkout .top1-checkout-section textarea,
body.fch-checkout .top1-checkout-section select,
body.fch-checkout .top1-checkout-section .select2-container .select2-selection--single{
  width:100% !important;
  min-height:48px !important;
  border:1px solid #d9d9d9 !important;
  border-radius:11px !important;
  background:#fff !important;
  box-shadow:none !important;
  color:#222 !important;
  font-size:14px !important;
}
body.fch-checkout .top1-checkout-section input.input-text,
body.fch-checkout .top1-checkout-section input[type="email"],
body.fch-checkout .top1-checkout-section input[type="tel"]{
  padding:0 13px !important;
}
body.fch-checkout .top1-checkout-section textarea{
  min-height:95px !important;
  padding:12px 13px !important;
}
body.fch-checkout .top1-checkout-section select{
  padding:0 38px 0 13px !important;
}
body.fch-checkout .top1-checkout-section .select2-container{
  width:100% !important;
}
body.fch-checkout .top1-checkout-section .select2-container .select2-selection--single{
  height:48px !important;
}
body.fch-checkout .top1-checkout-section .select2-container .select2-selection__rendered{
  line-height:46px !important;
  padding-left:13px !important;
  padding-right:36px !important;
  color:#222 !important;
}
body.fch-checkout .top1-checkout-section .select2-container .select2-selection__arrow{
  height:46px !important;
  right:7px !important;
}
body.fch-checkout .top1-checkout-section input:focus,
body.fch-checkout .top1-checkout-section textarea:focus,
body.fch-checkout .top1-checkout-section select:focus,
body.fch-checkout .top1-checkout-section .select2-container--focus .select2-selection--single{
  border-color:#1f5c34 !important;
  box-shadow:0 0 0 1px #1f5c34 !important;
  outline:none !important;
}
body.fch-checkout .top1-shipping-method-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:18px;
  padding:15px 16px;
  background:#f6f6f6;
  border-radius:11px;
}
body.fch-checkout .top1-shipping-method-card strong{
  display:block;
  color:#171717;
  font-size:14px;
}
body.fch-checkout .top1-shipping-help{
  display:block;
  margin-top:3px;
  color:#707070;
  font-size:12px;
  line-height:1.4;
}
body.fch-checkout .top1-shipping-badge{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:#e9f2ec;
  color:#1f5c34;
  font-size:11px;
  font-weight:700;
}
body.fch-checkout .top1-zone-legend{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:8px;
}
body.fch-checkout .top1-zone-legend span{
  padding:9px 8px;
  border:1px solid #e5e5e5;
  border-radius:9px;
  background:#fff;
  color:#555;
  font-size:11px;
  text-align:center;
}
body.fch-checkout .top1-zone-legend b{ color:#1f5c34; }
body.fch-checkout .top1-pickup-panel{
  display:none;
  padding:16px;
  border:1px solid #d9e7dd;
  border-radius:11px;
  background:#f4faf6;
  color:#2d4e38;
}
body.fch-checkout .top1-pickup-panel strong,
body.fch-checkout .top1-pickup-panel span{
  display:block;
}
body.fch-checkout .top1-pickup-panel span{
  margin-top:3px;
  font-size:13px;
  color:#587061;
}
body.fch-checkout .top1-summary-title{
  margin:0 0 18px;
  font-size:18px;
  font-weight:700;
  color:#171717;
}
body.fch-checkout .top1-summary-products{
  display:flex;
  flex-direction:column;
  gap:15px;
  padding-bottom:20px;
  border-bottom:1px solid #dfdfdf;
}
body.fch-checkout .top1-summary-product{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:13px;
  align-items:start;
}
body.fch-checkout .top1-summary-product__image{
  position:relative;
  width:64px;
  height:64px;
  border:1px solid #dedede;
  border-radius:10px;
  background:#fff;
}
body.fch-checkout .top1-summary-product__image img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:9px;
}
body.fch-checkout .top1-summary-product__qty{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:21px;
  height:21px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#242424;
  color:#fff;
  font-size:11px;
  font-weight:700;
}
body.fch-checkout .top1-summary-product__info{
  min-width:0;
  padding-top:4px;
}
body.fch-checkout .top1-summary-product__info strong{
  display:block;
  color:#222;
  font-size:13px;
  line-height:1.35;
}
body.fch-checkout .top1-summary-product__info .variation{
  margin:3px 0 0;
  font-size:11px;
  color:#777;
}
body.fch-checkout .top1-summary-product__price{
  padding-top:5px;
  color:#1d1d1d;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
body.fch-checkout .top1-summary-qty{
  display:inline-flex;
  align-items:center;
  margin-top:7px;
  border:1px solid #ddd;
  border-radius:7px;
  overflow:hidden;
  background:#fff;
}
body.fch-checkout .top1-summary-qty .fch-qty-btn{
  width:25px !important;
  min-width:25px !important;
  height:25px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:#fff !important;
  color:#333 !important;
  box-shadow:none !important;
  line-height:25px !important;
}
body.fch-checkout .top1-summary-qty .fch-qty-input{
  width:31px !important;
  min-width:31px !important;
  height:25px !important;
  min-height:25px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-left:1px solid #eee !important;
  border-right:1px solid #eee !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  font-size:11px !important;
  text-align:center !important;
}
body.fch-checkout .top1-summary-totals{
  padding-top:17px;
}
body.fch-checkout .top1-summary-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:5px 0;
  color:#222;
  font-size:13px;
}
body.fch-checkout .top1-summary-row strong{
  font-weight:500;
  text-align:right;
}
body.fch-checkout .top1-summary-muted{
  color:#777;
  font-weight:400;
}
body.fch-checkout .top1-free-shipping{
  color:#1f5c34;
  font-weight:700;
}
body.fch-checkout .top1-summary-total{
  align-items:baseline;
  margin-top:10px;
  padding-top:13px;
  border-top:1px solid #dfdfdf;
  font-size:18px;
  font-weight:700;
}
body.fch-checkout .top1-summary-total strong,
body.fch-checkout .top1-summary-total .woocommerce-Price-amount{
  font-size:21px;
  font-weight:700;
}
body.fch-checkout .top1-payment-box{
  background:transparent !important;
  border:0 !important;
}
body.fch-checkout .top1-payment-box ul.payment_methods{
  margin:0 !important;
  padding:0 !important;
  border:1px solid #dcdcdc !important;
  border-radius:11px !important;
  overflow:hidden;
  background:#fff !important;
}
body.fch-checkout .top1-payment-box ul.payment_methods > li{
  margin:0 !important;
  padding:15px 16px !important;
  border-bottom:1px solid #e3e3e3 !important;
  list-style:none !important;
}
body.fch-checkout .top1-payment-box ul.payment_methods > li:last-child{
  border-bottom:0 !important;
}
body.fch-checkout .top1-payment-box .payment_box{
  margin:12px -16px -15px !important;
  padding:13px 16px !important;
  background:#f6f6f6 !important;
  color:#666 !important;
  font-size:12px !important;
}
body.fch-checkout .top1-payment-box .payment_box:before{
  display:none !important;
}
body.fch-checkout .top1-payment-box .place-order{
  margin:16px 0 0 !important;
  padding:0 !important;
}
body.fch-checkout .top1-place-order,
body.fch-checkout #place_order{
  width:100% !important;
  min-height:50px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:10px !important;
  background:#1f5c34 !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:700 !important;
  letter-spacing:.02em !important;
  box-shadow:none !important;
}
body.fch-checkout .top1-place-order:hover,
body.fch-checkout #place_order:hover{
  background:#184b2a !important;
}
body.fch-checkout .woocommerce-privacy-policy-text,
body.fch-checkout .woocommerce-terms-and-conditions-wrapper{
  font-size:12px;
  color:#777;
}
body.fch-checkout .woocommerce-invalid input,
body.fch-checkout .woocommerce-invalid select,
body.fch-checkout .woocommerce-invalid .select2-selection{
  border-color:#d84646 !important;
}

@media (max-width: 900px){
  body.fch-checkout .top1-checkout-form{
    padding:0 15px 30px !important;
  }
  body.fch-checkout .top1-checkout-shell{
    grid-template-columns:1fr;
  }
  body.fch-checkout .top1-checkout-main{
    padding:22px 0 28px;
  }
  body.fch-checkout .top1-checkout-summary-wrap{
    order:-1;
    margin:0 -15px;
    padding:20px 15px;
    border-left:0;
    border-bottom:1px solid #e1e1e1;
  }
  body.fch-checkout .top1-checkout-summary{
    position:static;
    max-width:none;
  }
}

@media (max-width: 540px){
  body.fch-checkout .top1-billing-fields .form-row-first,
  body.fch-checkout .top1-billing-fields .form-row-last{
    width:100% !important;
  }
  body.fch-checkout .top1-zone-legend{
    grid-template-columns:1fr;
  }
  body.fch-checkout .top1-shipping-method-card{
    align-items:flex-start;
    flex-direction:column;
  }
  body.fch-checkout .top1-summary-product{
    grid-template-columns:58px minmax(0,1fr) auto;
  }
  body.fch-checkout .top1-summary-product__image{
    width:58px;
    height:58px;
  }
}

/* TOP1 checkout: enhanced pickup address + map */
body.fch-checkout .top1-pickup-panel{
  align-items:flex-start;
  gap:12px;
}
body.fch-checkout .top1-pickup-panel__icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e2f2e7;
  color:#1f5c34;
  font-size:20px;
  line-height:1;
}
body.fch-checkout .top1-pickup-panel__content{
  min-width:0;
  flex:1;
}
body.fch-checkout .top1-pickup-panel__content strong{
  font-size:15px;
  color:#1f3f2b;
}
body.fch-checkout .top1-pickup-panel .top1-pickup-free{
  margin-top:7px;
  font-weight:700;
  color:#1f6b39;
}
body.fch-checkout .top1-pickup-map-link{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  padding:9px 13px;
  border:1px solid #cfe4d5;
  border-radius:9px;
  background:#fff;
  color:#1f5c34 !important;
  font-size:13px;
  font-weight:700;
  text-decoration:none !important;
}
body.fch-checkout .top1-pickup-map-link:hover{
  border-color:#1f5c34;
  background:#f7fbf8;
}
body.fch-checkout.top1-pickup-selected .top1-pickup-panel,
body.top1-pickup-selected.fch-checkout .top1-pickup-panel{
  display:flex;
}


/* TOP1 checkout final: Pickup shows only store information (contact email stays above). */
body.fch-checkout.top1-pickup-selected .top1-person-field,
body.top1-pickup-selected.fch-checkout .top1-person-field,
body.fch-checkout.top1-pickup-selected .top1-delivery-address-field,
body.top1-pickup-selected.fch-checkout .top1-delivery-address-field{
  display:none !important;
}

/* Payment choices: clean card-style rows similar to the requested reference checkout. */
body.fch-checkout .top1-payment-box .wc_payment_methods{
  border:1px solid #dedede;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
body.fch-checkout .top1-payment-box .wc_payment_method{
  margin:0 !important;
  padding:15px 14px !important;
  border-bottom:1px solid #e5e5e5;
}
body.fch-checkout .top1-payment-box .wc_payment_method:last-child{
  border-bottom:0;
}
body.fch-checkout .top1-payment-box .payment_box{
  margin:12px -14px -15px !important;
  padding:14px !important;
  background:#f7f7f7 !important;
  border-top:1px solid #e5e5e5;
}
body.fch-checkout .top1-payment-box .payment_box:before{
  display:none !important;
}

/* TOP1 instant zone fee refresh */
.top1-summary-shipping-row.top1-is-updating strong,
.top1-summary-total.top1-is-updating strong{
  opacity:.55;
}
