<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* =========================
   TITLE
========================= */
.wp-block-post-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 0px !important;
}

/* =========================
   PRICE
========================= */
.wp-block-woocommerce-product-price {
    margin-bottom: 0px !important;
	margin-block-start: 0px !important;
}

.woocommerce-variation-price {
	font-weight: 900;
}

.wc-block-components-product-price {
    font-size: 16px !important;
    font-weight: 600;
}

/* =========================
   HIGHLIGHT TEXT (✔ list)
========================= */
.wp-block-post-excerpt {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 0px !important;
	margin-block-start: 0px !important;
}

.woocommerce .single_variation_wrap .woocommerce-variation {
    margin-bottom: 0px !important;
}

/* =========================
   PLAN (RADIOS)
========================= */
.m28-plan-radios label {
    font-size: 14px;
    padding: 8px 14px;
}

/* Reduce gap below plan */
.variations {
    margin-bottom: 0px !important;
}

/* Hide "Clear" link (not needed UX-wise) */
.reset_variations {
    display: none !important;
}

/* =========================
   WAPF FIELD HEADERS
========================= */
.wapf-field-label label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px !important;
}

/* =========================
   WAPF PILLS (Delivery + Packaging)
========================= */
.wapf-input-label {
    font-size: 14px;
    padding: 8px 14px;
}

.wapf-field-container {
    padding: 0 0px 0px 5px !important;
    box-sizing: border-box;
}

/* Price hint smaller */
.wapf-pricing-hint {
    font-size: 12px;
}

/* =========================
   TOTALS (OPTIONAL — CLEAN)
========================= */
.wapf-product-totals {
    margin-top: 0px !important;
/*     padding: 10px 12px; */
    border-radius: 8px;
}

.wapf-product-totals span {
    font-size: 13px;
}

.wapf-label-text {
    padding-left: 0px !important;
}

/* =========================
   QUANTITY + BUTTON
========================= */
.quantity {
    margin-top: 0px !important;
}

.single_add_to_cart_button {
    margin-top: 0px !important;
    padding: 12px 18px;
    font-size: 15px;
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 768px) {
    .wp-block-post-title {
        font-size: 20px;
    }

    .wc-block-components-product-price {
        font-size: 15px;
    }

    .wapf-input-label,
    .m28-plan-radios label {
        font-size: 13px;
        padding: 7px 12px;
    }
}


.wp-block-woocommerce-product-meta {
    display: none;
}

.wapf-product-totals .wapf--inner {
    padding: 0px 0;
}

.wapf-product-totals .wapf--inner>div {
    padding-bottom: 0px;
}














/* =========================
   WAPF BLOCK CARDS
========================= */
.wapf-field-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

/* Slight highlight for selected radios */
.wapf-checkable.wapf-checked {
/*     background: #eef6ff; */
    border-radius: 6px;
}

/* Header spacing */
.wapf-field-label {
    margin-bottom: 8px;
}

/* Radio layout tightening */
.wapf-radios {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Radio pill style */
.wapf-input-label {
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    background: #fff;
}

/* Active radio */
.wapf-checkable.wapf-checked .wapf-input-label {
    border-color: #2563eb;
    background: #e0ebff;
}

/* Description text */
.wapf-field-description {
    font-size: 13px;
    color: #555;
    margin-top: 0px !important;
}


/* Desktop: 5 products per row */
/* FORCE 5 products per row on desktop for Woo blocks */
@media (min-width: 1024px) {

  .wc-block-grid__products,
  .wp-block-woocommerce-product-collection ul {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
  }

  .wc-block-grid__product,
  .wp-block-woocommerce-product-collection li {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ================================
   5 PRODUCTS PER ROW (DESKTOP)
================================ */
@media (min-width: 1024px) {

  .wp-block-woocommerce-product-collection ul {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important; /* tighter gap */
  }

  .wp-block-woocommerce-product-collection li.wc-block-product {
    padding: 10px 8px !important;
  }
}

/* ================================
   IMAGE — SMALLER & CLEAN
================================ */
.wc-block-components-product-image img {
  max-width: 100%;
  height: auto;
}

/* ================================
   TITLE — SMALLER & TIGHT
================================ */
.wc-block-product h2 {
  font-size: 14px !important;
  line-height: 1.3 !important;
  margin: 6px 0 4px !important;
}

/* ================================
   PRICE — COMPACT
================================ */
.wc-block-components-product-price {
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

/* ================================
   BUTTON — SMALL & FLAT
================================ */
.wc-block-components-product-button__button {
  padding: 6px 10px !important;
  font-size: 12px !important;
  min-height: unset !important;
}

/* ================================
   REMOVE EXTRA BLOCK SPACING
================================ */
.wc-block-product > * {
  margin-bottom: 6px !important;
}

/* ================================
   TABLET & MOBILE (OPTIONAL)
================================ */
@media (max-width: 1023px) and (min-width: 768px) {
  .wp-block-woocommerce-product-collection ul {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .wp-block-woocommerce-product-collection ul {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wc-block-product h2 {
    font-size: 13px !important;
  }
}








.wc-block-components-product-button {
/*   display: none !important; */
}

.wc-block-components-product-image {
  position: relative !important;
}



details.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow {
    max-width: 100% !important;
}










/* -------------------------------
   MAKE MY THALI – UI STYLING
-------------------------------- */

#thali-builder {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Field wrapper */
#thali-builder p {
    margin-bottom: 14px;
}

/* Label */
#thali-builder label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

/* Dropdown */
#thali-builder select.thali-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover & focus */
#thali-builder select.thali-select:hover {
    background-color: #ffffff;
    border-color: #9ca3af;
}

#thali-builder select.thali-select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    background-color: #ffffff;
}

/* LIVE PRICE BOX */
#thali-live-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
/*     color: #ffffff; */
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

/* Price number */
#thali-live-total span {
    font-size: 22px;
    font-weight: 800;
}

/* Add spacing before Add to Cart */
.single-product form.cart {
    margin-top: 15px;
}

/* Responsive polish */
@media (max-width: 768px) {
    #thali-builder {
        padding: 14px;
    }

    #thali-live-total {
        font-size: 16px;
    }

    #thali-live-total span {
        font-size: 20px;
    }
}
</style>
<!-- end Simple Custom CSS and JS -->
