/* ==========================================================================
   Hoageez Fast Cart — JJ-style cart (sentence version)
   Path: /wp-content/themes/astra-child/css/hoageez-fast-cart.css
   ========================================================================== */

/* Tokens */
:root{
  --jj-row-gap: 26px;
  --jj-radius: 5px;
  --jj-border: 2px solid rgba(0,0,0,0.08);
  --jj-divider: #e5e7eb;
  --jj-grey: #6b7280;
  --jj-grey-light: #555;
  --jj-accent: #333;
}

/* Side panel spacing */
.wc-fast-cart.is-style-side{ padding:35px 30px; }

/* Table base */
.wfc .wfc-cart-table{ border-collapse:collapse; border-spacing:0; width:100%; }
.wfc .wfc-cart-table thead{ display:none; }

/* ==========================================================================
   MAIN ROW ("CARD")
   ========================================================================== */
.wfc .wfc-cart-form__cart-item{
  border-left:var(--jj-border);
  border-right:var(--jj-border);
  border-top:var(--jj-border);
  border-bottom:0;
  border-radius:var(--jj-radius) var(--jj-radius) 0 0;
  background:#fff;
  position:relative;
  padding:16px 16px 8px;
  margin:0 !important;
}
.wfc .wfc-cart-form__cart-item td{
  vertical-align:top;
  padding:12px 12px 0 12px;
}

/* Thumbnail */
.wfc .wfc-cart-form__cart-item .product-thumbnail{ width:72px; }
.wfc .wfc-cart-form__cart-item .product-thumbnail img{
  width:100%; height:auto; display:block; border-radius:6px;
}

/* Name bar + top-right subtotal */
.wfc .wfc-cart-form__cart-item .product-name .jj-namebar{
  display:flex; justify-content:flex-start; align-items:flex-start; gap:12px;
  margin-bottom:4px; padding-right:96px; color:#111;
}
.wfc .wfc-cart-form__cart-item .product-name .jj-subtop{
  position:absolute; top:16px; right:16px;
  font-size:15px !important; font-weight:700; color:var(--jj-grey-light); white-space:nowrap;
}

/* Hide unused Woo cells */
.wfc .wfc-cart-form__cart-item .product-price,
.wfc .wfc-cart-form__cart-item .product-quantity,
.wfc .wfc-cart-form__cart-item .product-remove,
.wfc .wfc-cart-table thead th.product-quantity,
.wfc .wfc-cart-table thead th.product-remove{ display:none !important; }
.wfc .wfc-cart-form__cart-item .product-subtotal{ display:none !important; }

/* ==========================================================================
   PRODUCT META AS A SENTENCE (variations / Gravity Forms)
   ========================================================================== */
/* Drop labels */
.wfc .product-name .variation dt,
.wfc .product-name .variation dt::after,
.wfc .product-name .wc-item-meta .wc-item-meta-label{ display:none !important; }

/* Keep lists normal; set sentence font size here */
.wfc .product-name .variation,
.wfc .product-name .wc-item-meta{
  display:block !important;
  margin:4px 0 0; padding:0;
  gap:0 !important;
  white-space:normal; word-break:normal;
  font-size:13px;
}

/* Items inline */
.wfc .product-name .variation dd,
.wfc .product-name .wc-item-meta li{
  display:inline !important; float:none !important; list-style:none;
  margin:0; padding:0; color:var(--jj-grey);
}
.wfc .product-name .variation dd > *,
.wfc .product-name .wc-item-meta li > *{ display:inline !important; margin:0; padding:0; }

/* Commas */
.wfc .product-name .variation dd::before,
.wfc .product-name .wc-item-meta li::before{ content:none !important; }

.wfc .product-name .variation dd::after{ content:", "; }
.wfc .product-name .variation dd:last-of-type::after{ content:""; }

.wfc .product-name .wc-item-meta li::after{ content:", "; }
.wfc .product-name .wc-item-meta li:last-of-type::after{ content:""; }

.wfc .product-name .variation + .wc-item-meta li:first-child::before{ content:", "; }

/* ==========================================================================
   ACTION ROW (Modify | Qty | Remove)
   ========================================================================== */
.wfc .wfc-cart-table .jj-action-row{ display:block; }
.wfc .wfc-cart-table .jj-action-row .jj-action-cell{
  display:block; width:100%; padding:0; box-sizing:border-box; background:#fff;
  border-left:var(--jj-border); border-right:var(--jj-border); border-bottom:var(--jj-border); border-top:0;
  border-radius:0 0 var(--jj-radius) var(--jj-radius);
}

.jj-actionbar-inner{
  display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center;
  padding:0; border-top:1px solid var(--jj-divider);
}
.jj-actionbar-inner > *{ border-right:1px solid var(--jj-divider); }
.jj-actionbar-inner > *:last-child{ border-right:0; }

.jj-actionbar-inner .jj-modify,
.jj-actionbar-inner .jj-remove{
  text-align:center; padding:12px 8px; font-weight:400; font-size:14px;
  text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:1.5px;
}
.jj-actionbar-inner .jj-modify.jj-hidden{ visibility:hidden; }

.jj-actionbar-inner .jj-qty{ display:flex; align-items:center; justify-content:center; gap:11px; padding:8px 0; }
.jj-actionbar-inner .jj-qty-btn{
  appearance:none; border:0; background:transparent; cursor:pointer;
  line-height:1; padding:6px 10px; font-size:22px; transition:transform .08s ease;
}
.jj-actionbar-inner .jj-qty-btn:active{ transform:scale(0.95); }
.jj-actionbar-inner .jj-qty-minus{ color:var(--jj-grey-light); }
.jj-actionbar-inner .jj-qty-plus{ color:var(--jj-accent); }
.jj-actionbar-inner .jj-qty-display{ min-width:16px; text-align:center; font-weight:800; font-size:16px; color:#111; }
.jj-actionbar-inner .jj-qty-btn.is-disabled,
.jj-actionbar-inner .jj-qty-btn[disabled]{ opacity:.45; cursor:default; pointer-events:none; }

/* ==========================================================================
   SPACER ROW
   ========================================================================== */
.jj-spacer-row{ display:block; }
.jj-spacer-row td{ display:block; height:var(--jj-row-gap); padding:0; border:0; background:transparent; line-height:0; }

/* ==========================================================================
   COLLATERALS / BUTTONS (side-by-side; not sticky)
   ========================================================================== */
.wfc .wfc-cart-collaterals{ display:block !important; visibility:visible !important; }

.wfc-cart-collaterals .wfc-proceed-to-checkout .wfc-checkout-button {
	background-color: #fe5500 !important;
}

.wc-fast-cart.is-style-side .wfc-checkout-buttons{
  margin:0; padding:0 0 15px; background:#fff;
  display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:stretch;
}
.wc-fast-cart.is-style-side .wfc-checkout-buttons .button,
.wc-fast-cart.is-style-side .wfc-checkout-buttons a.button,
.wc-fast-cart.is-style-side .wfc-checkout-buttons button.button,
.wc-fast-cart.is-style-side .wfc-checkout-buttons input.button{
  display:flex !important; align-items:center; justify-content:center;
  width:auto; margin:0 !important; box-sizing:border-box;
  height:48px; line-height:1 !important; padding:0 16px !important;
  vertical-align:middle; transform:none !important; top:auto !important; align-self:stretch;
  min-width:0;
}
.wc-fast-cart.is-style-side .wfc-checkout-buttons > *{ margin:0 !important; }

@media (max-width:640px){
  .wc-fast-cart.is-style-side .wfc-checkout-buttons .button,
  .wc-fast-cart.is-style-side .wfc-checkout-buttons a.button{ font-size:13px; }
}

/* ==========================================================================
   PANEL BACKGROUND / MOBILE
   ========================================================================== */
.wc-fast-cart.is-style-side{
  background:#fff;
  min-height:100svh;
  min-height:100vh;
  overscroll-behavior:contain;
}
.wc-fast-cart.is-style-side .wfc-cart,
.wc-fast-cart.is-style-side .wfc-cart-form,
.wc-fast-cart.is-style-side .wfc-cart-table{ background:#fff; }

@media (max-width:640px){
  .wfc .wfc-cart-form__cart-item .product-thumbnail{ width:64px; }
}

/* Cross-sell heading handled in PHP; keep hidden if rendered */
.wc-fast-cart .wfc-cart-collaterals h2{ display:none !important; }

/* Totals box polish */
.wfc-cart-totals__table{
  background:#f5f5f5 !important;
  padding:20px 25px !important;
}
.wc-fast-cart>h2{ padding-bottom:8px !important; }

/* ==========================================================================
   FAST CART — MAY WE SUGGEST / STATIC GRID
   ========================================================================== */
.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
  align-items:start !important;
  white-space:normal !important;
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2 > li{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  flex:none !important;
  float:none !important;
  grid-column:auto !important;
  list-style:none;
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:12px;
  padding:10px;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  box-sizing:border-box;
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-media{
  position:relative;
  display:block;
  margin-bottom:6px;
  aspect-ratio:3/2;
  overflow:hidden;
  border-radius:8px;
  background:#fff;
}
.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-media img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  border-radius:8px;
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-media .jj-plus{
  position:absolute;
  right:8px;
  bottom:8px;
  top:auto;
  transform:none;
  width:34px;
  height:34px;
  background:#fff;
  border:1px solid #e6e8eb;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:600;
  line-height:1;
  color:var(--jj-accent);
  pointer-events:none;
  border-radius:999px;
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .woocommerce-loop-product__title{
  display:block !important;
  margin:0;
  font-weight:800;
  font-size:17px;
  line-height:1.2;
  color:#111;
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .products,
.wc-fast-cart .wfc-cross-sells.jj-using-static .wfc-carousel,
.wc-fast-cart .wfc-cross-sells.jj-using-static .slick-list,
.wc-fast-cart .wfc-cross-sells.jj-using-static .slick-track,
.wc-fast-cart .wfc-cross-sells.jj-using-static .slick-dots,
.wc-fast-cart .wfc-cross-sells.jj-using-static .slick-arrow,
.wc-fast-cart .wfc-cross-sells.jj-using-static .tns-outer,
.wc-fast-cart .wfc-cross-sells.jj-using-static .tns-controls,
.wc-fast-cart .wfc-cross-sells.jj-using-static .wfc-slider-controls{
  display:none !important;
}

.wc-fast-cart .wfc-cross-sells .wfc-carousel-navigation,
.wc-fast-cart .wfc-cross-sells .wfc-carousel-navigation button,
.wc-fast-cart .wfc-cross-sells .wfc-carousel-navigation svg,
.wc-fast-cart .wfc-cross-sells .wfc-slider-controls,
.wc-fast-cart .wfc-cross-sells .slick-arrow,
.wc-fast-cart .wfc-cross-sells .tns-controls {
  display:none !important;
}

.wc-fast-cart h2 {
  font-size:22px !important;
  margin: 13px 0 13px !important;
}

@media (max-width:420px){
  .wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2{
    grid-template-columns:1fr !important;
  }
}
@media (max-width:640px){
  .wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2{
    grid-template-columns:1fr 1fr !important;
  }
}

.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2.columns-1,
.wc-fast-cart .wfc-cross-sells.jj-using-static .jj-grid-2x2.products.columns-1{
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
}

/* Top CTA under "My Cart" */
.wc-fast-cart .hgz-sides-cta-wrap{
  margin:6px 0 14px !important;
}

.wc-fast-cart .hgz-sides-cta{
  display:block !important;
  width:100% !important;
  text-align:center !important;
  padding:12px 16px !important;
  margin-top:22px !important;
  border:1px solid #333 !important;
  background:#fff !important;
  color:#111 !important;
  border-radius:10px !important;
  font-weight:800 !important;
  font-size:16px !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  box-shadow:0 1px 0 rgba(0,0,0,.02) !important;
}

.wc-fast-cart .hgz-sides-cta:hover{
  border-color:#d9dfe6 !important;
}

.wc-fast-cart .hgz-sides-cta:focus-visible{
  outline:2px solid #111 !important;
  outline-offset:2px !important;
}

/* Force side-by-side checkout buttons */
.wc-fast-cart.is-style-side .wfc-checkout-buttons{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  grid-gap:12px !important;
  align-items:stretch !important;
}

.wc-fast-cart.is-style-side .wfc-checkout-buttons > a.wfc-button,
.wc-fast-cart.is-style-side .wfc-checkout-buttons > a.wfc-checkout-button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:48px !important;
  margin:0 !important;
  text-decoration:none !important;
}

.wc-fast-cart.is-style-side .wfc-checkout-buttons{
  flex-direction:initial !important;
}

.wc-fast-cart.is-style-side .wfc-checkout-buttons .button{
  margin:0 !important;
}

/* ==========================================================================
   GIFT CARD FIELD — inline layout inside Payment section
   ========================================================================== */
.ywgc_enter_code {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.ywgc_enter_code > p:not(.form-row) {
  flex: 0 0 100% !important;
  order: -1 !important;
  font-size: 12px !important;
  color: #8a8a8a !important;
  margin: 0 0 6px !important;
}

.ywgc_enter_code p.form-row {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin: 0 8px 0 0 !important;
  padding: 0px 0px 0px 13px !important;
  width: auto !important;
}

.ywgc_enter_code input#giftcard_code {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.ywgc_enter_code .ywgc_apply_gift_card_button {
  flex: 0 0 auto !important;
  background: transparent !important;
  color: #D85A30 !important;
  border: 1px solid #D85A30 !important;
  border-radius: 6px !important;
  padding: 0 14px !important;
  height: 42px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

@media (max-width: 480px) {
  .ywgc_enter_code input#giftcard_code {
    width: 200px !important;
    max-width: 200px !important;
  }
}

.hgz-section-sublabel {
  font-size: 13px;
  color: #666;
  margin: -16px 0 12px;
}