/* ===============================
   SHOP GRID - SUBSITES ONLY
================================ */
body.woocommerce-shop ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

/* Tablet */
@media (max-width: 1024px) {
  body.woocommerce-shop ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  body.woocommerce-shop ul.products {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   PRODUCT CARD
================================ */

.farmtab-product {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;

  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  height: 100%;
}

.farmtab-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.farmtab-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acf-location {
  font-size: 0.8rem;
  color: #64748b;
}

.woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #14532d;
}

.farmtab-cart-area {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Quantity buttons */
.qib-button-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qib-button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
}

/* Quantity input */
.quantity input {
  width: 56px;
  height: 36px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
}

.single_add_to_cart_button,
button.button {
  width: 100%;
  background: #2f6f3e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.single_add_to_cart_button:disabled,
button.disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.variations select {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  padding: 0 0.5rem;
  background: white;
  font-size: 0.9rem;
}

.variations label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.product-details {
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
}

.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.accordion-toggle::after {
  content: "+";
  float: right;
}

.accordion-toggle[aria-expanded="true"]::after {
  content: "–";
}

.accordion-content {
  font-size: 0.85rem;
  color: #334155;
}

/* ===============================
   FRONT PAGE HORIZONTAL SCROLL
================================ */
.available-products-section {
  overflow-x: hidden;
  width: 100%;
}

.available-products-home {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  position: relative;
}

.available-products-home .woocommerce {
  width: max-content;
  max-width: 100%;
}

#globl_products {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: max-content;
}

#globl_products .farmtab-product {
  flex: 0 0 auto;
  width: 220px;
  min-width: 0;
}

#globl_products .farmtab-cart-area {
  display:none;
}

.home #globl_products .price {
  display:none;
}

.available-products-home::-webkit-scrollbar {
  height: 6px;
}
.available-products-home::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* Mobile adjustment */
@media (max-width: 640px) {
  #globl_products .farmtab-product {
    width: 160px;
  }
}

/* ===============================
   SEARCH + CATEGORY FILTERS
================================ */

.custom-product-search {
  margin-bottom: 1rem;
}

.custom-product-search input {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 0.95rem;
}

/* Filter buttons row */
.custom-product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

/* Individual filter buttons */
.filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #e5f0e8;
  border-color: #2f6f3e;
}

.filter-btn.active {
  background: #2f6f3e;
  color: #ffffff;
  border-color: #2f6f3e;
}


/* ===============================
   SUBSITE SHOP WRAPPER
================================ */

.farmtab-subsite-shop {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  background: #f6f7f5;
}

.farmtab-subsite-shop-wrap {
  width: 100%;
  background: #f6f7f5;
}

/* Ensure grid stays aligned inside wrapper */
body.woocommerce-shop ul.products {
  margin-top: 0;
}

@media (max-width: 640px) {
  .farmtab-subsite-shop {
    padding: 1.25rem 1rem;
  }

  .custom-product-search input {
    max-width: 100%;
  }
}

.farmtab-subsite-shop form.woocommerce-ordering, .farmtab-subsite-shop p.woocommerce-result-count  {
  display:none;
}

/* ===============================
   CART PAGE WRAPPER
================================ */

.farmtab-cart-page {
  background: #f6f7f5;
  padding: 2rem 1rem 4rem;
}

.farmtab-cart-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0px 2px rgba(0,0,0,0.1);
}

/* ===============================
   CART TABLE
================================ */

.woocommerce-cart table.shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0 1rem;
  color: #1f2933;
}

.woocommerce-cart table.shop_table th {
  font-size: 0.85rem;
  color: #1f2933;
  text-transform: uppercase;
  border: none;
}

.woocommerce-cart table.shop_table td {
  background: #f8fafc;
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

/* Rounded rows */
.woocommerce-cart table.shop_table tr td:first-child {
  border-radius: 12px 0 0 12px;
}
.woocommerce-cart table.shop_table tr td:last-child {
  border-radius: 0 12px 12px 0;
}

/* ===============================
   CART TOTALS
================================ */

.cart-collaterals {
  margin-top: 2rem;
}

.cart_totals {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
}

.cart_totals h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#shipping_method li {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.woocommerce-shipping-destination {
  background-color:#fff;
  padding: 10px;
  border-radius: 5px;
}

form .shipping-calculator-button {
  text-decoration:underline;
  font-size:.8rem;
}

input#coupon_code {
  width:100%;
  padding:10px;
  margin-bottom:1rem;
  border-radius:5px;
  border: solid 2px rgba(0,0,0,.5);
}

div.coupon button {
  margin-bottom:1rem;
}

.woocommerce-cart .woocommerce-shipping-totals.shipping td {
  padding-right: 0px;
  padding-left: 1rem;
}

.wcdd-pickup-location-select + p {
  font-size:.8rem;
}

ul#shipping_method {
  list-style: none;
  padding: 0px;
}


/* ===============================
   BUTTONS
================================ */

.woocommerce-cart .button,
.woocommerce-cart .checkout-button {
  background: #2f6f3e;
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.woocommerce-cart .checkout-button {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .farmtab-cart-container {
    padding: 1.25rem;
  }

  .woocommerce-cart table.shop_table {
    display: block;
  }

  .woocommerce-cart table.shop_table tr {
    display: block;
    margin-bottom: 1rem;
  }

  .woocommerce-cart table.shop_table td {
    display: flex;
    justify-content: space-between;
  }

  .woocommerce-cart .cart_totals table.shop_table td {
    display: block;
  }

}

/* ===============================
   CHECKOUT PAGE WRAPPER
================================ */

.farmtab-checkout-page {
  background: #f6f7f5;
  padding: 2rem 1rem 4rem;
}

.farmtab-checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0px 2px rgba(0,0,0,0.1);
}

/* ===============================
   FORM ELEMENTS - TWO COLUMN LAYOUT
================================ */

/* Remove flex from overall form */
.woocommerce-checkout form.checkout {
  display: block;
  gap: 0;
}

/* Two-column layout for desktop */
.woocommerce-checkout form.checkout .col2-set,
.woocommerce-checkout form.checkout #order_review {
  display: inline-block;
  vertical-align: top;
  width: 48%;
}

.woocommerce-checkout form.checkout .col2-set {
  margin-right: 3%;
}

/* Stripe full-width button wrapper */
.stripe-fullwidth-wrapper {
  width: 100%;
  display: block;
  margin-bottom: 2rem;
}

/* Headings */
.woocommerce-checkout h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Billing & Shipping Fields */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.woocommerce-checkout .woocommerce-additional-fields {
  margin-bottom: 0;
}

/* Payment Section */
.woocommerce-checkout .woocommerce-checkout-payment {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

/* Buttons */
.woocommerce-checkout .button,
.woocommerce-checkout .checkout-button {
  background: #2f6f3e;
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.woocommerce-checkout .checkout-button {
  width: 100%;
  margin-top: 1rem;
}

/* ===============================
   CHECKOUT REVIEW TABLE (RIGHT COLUMN)
================================ */

#order_review {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0px 2px rgba(0,0,0,0.1);
}

#order_review .shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1rem;
  color: #1f2933;
  margin-bottom: 2rem;
}

#order_review .shop_table th {
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #1f2933;
  border: none;
  padding: 0.75rem 1rem;
}

#order_review .shop_table td {
  background: #f8fafc;
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

#order_review .shop_table tr td:first-child {
  border-radius: 12px 0 0 12px;
}
#order_review .shop_table tr td:last-child {
  border-radius: 0 12px 12px 0;
}

#order_review .shop_table .product-quantity {
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Subtotal, shipping, fees, total */
#order_review .shop_table tfoot th,
#order_review .shop_table tfoot td {
  background: #f8fafc;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

#order_review .shop_table tfoot tr.order-total th,
#order_review .shop_table tfoot tr.order-total td {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Shipping method list */
#order_review .shop_table tfoot ul#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
}

#order_review .shop_table tfoot ul#shipping_method li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Shipping method radio buttons */
#order_review .shop_table tfoot ul#shipping_method input[type="radio"] {
  margin-right: 0.5rem;
}

/* Powered by DoorDash section */
#order_review .shop_table tfoot .wcdd-delivery-options-powered {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#order_review .shop_table tfoot .wcdd-delivery-options-powered img {
  height: 24px;
  display: block;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

/* Tablet: stack columns */
@media (max-width: 1024px) {
  .woocommerce-checkout form.checkout .col2-set,
  .woocommerce-checkout form.checkout #order_review {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .farmtab-checkout-container {
    padding: 1.25rem;
  }

  #order_review .shop_table {
    display: block;
  }

  #order_review .shop_table thead {
    display: none;
  }

  #order_review .shop_table tbody tr,
  #order_review .shop_table tfoot tr {
    display: block;
    margin-bottom: 1rem;
  }

  #order_review .shop_table td,
  #order_review .shop_table th {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
  }

  .stripe-fullwidth-wrapper {
    margin-bottom: 1.5rem;
  }
}



#customer_details input.input-text,
#customer_details textarea.input-text,
.woocommerce-input-wrapper input.input-text,
.woocommerce-input-wrapper textarea.input-text {
  padding: 10px !important;
  border-radius: 3px !important;
  margin-top: 1rem !important;
  border: solid 1px rgba(0,0,0,.1) !important;
  display: block;
  width: 100%;
}


.select2-selection.select2-selection--single, .select2-selection__arrow {
  margin-top: 1rem;
}

h3#order_review_heading {
  display:none;
}

.woocommerce-form-coupon-toggle a, woocommerce-form-login-toggle a {
  text-decoration:underline;
  color: #2f6f3e
}

.woocommerce-form-coupon-toggle, woocommerce-form-login-toggle {
  margin-bottom: 1rem;
}


.stripe-fullwidth-wrapper {
  width: 100%;
  display: block;
  margin-bottom: 2rem;
}

.stripe-fullwidth-wrapper > * {
  width: 100% !important;
  display: block !important;
}

#wc-stripe-express-checkout-element-link {
  width: 100% !important;
  display: block !important;
}


p#wc-stripe-express-checkout-button-separator {
  display: none!important;
}

ul.wc_payment_methods.payment_methods methods {
  list-style:none;
  padding:0px;
}

fieldset#wc-stripe-upe-form input {
  border: solid 1px rgba(0,0,0,.1) !important;
  padding: 10px !important;
  border-radius: 3px !important;
}

fieldset#wc-stripe-upe-form label, .p-FieldLabel {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #1f2933 !important;
}

.wc_payment_method.payment_method_stripe label {
  border-radius: 3px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  margin-bottom: 1rem;
}

ul.wc_payment_methods.payment_methods.methods {
  list-style: none;
  padding: 0px;
}

/* ===============================
   MY ACCOUNT PAGE WRAPPER
================================ */

.farmtab-myaccount-page {
  background: #f6f7f5;
  padding: 2rem 1rem 4rem;
}

.farmtab-myaccount-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 0 2px rgba(0,0,0,.1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===============================
   MY ACCOUNT NAVIGATION
================================ */

.woocommerce-MyAccount-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 1rem;
}

.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-MyAccount-navigation a {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background: #f8fafc;
  color: #1f2933;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation .is-active a {
  background: #2f6f3e;
  color: #fff;
}

/* ===============================
   MY ACCOUNT CONTENT SECTIONS
================================ */

.woocommerce-MyAccount-content {
  margin-top: 1rem;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.woocommerce-MyAccount-content p {
  margin-bottom: 1rem;
  color: #4b5563;
}

.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,.1);
}

.woocommerce-MyAccount-content table th {
  background: #f8fafc;
  text-align: left;
}

.woocommerce-MyAccount-content table td {
  background: #ffffff;
}

/* ===============================
   DASHBOARD QUICK LINKS
================================ */

.farmtab-dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.farmtab-dashboard-link {
  flex: 1 1 calc(50% - 1rem);
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  color: #1f2933;
  transition: all 0.2s ease;
}

.farmtab-dashboard-link:hover {
  background: #2f6f3e;
  color: #fff;
}

@media (max-width: 640px) {
  .farmtab-dashboard-link {
    flex: 1 1 100%;
  }
}

/* ===============================
   MY ACCOUNT NAV – HORIZONTAL
================================ */

.farmtab-myaccount-nav {
  margin-bottom: 2rem;
}

/* Remove default Woo styles */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Nav items */
.woocommerce-MyAccount-navigation li {
  margin: 0;
}

/* Nav links */
.woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2933;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
  background: #e2e8f0;
}

/* Active state */
.woocommerce-MyAccount-navigation .is-active a {
  background: #2f6f3e;
  color: #ffffff;
}


@media (max-width: 768px) {
  .farmtab-myaccount-layout {
    flex-direction: column;
  }

  .farmtab-myaccount-nav {
    flex: none;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .woocommerce-MyAccount-navigation li {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

/* ===============================
   MY ACCOUNT LAYOUT – TOP NAV
================================ */

/* Kill sidebar layout */
.farmtab-myaccount-layout {
  display: block;
}

/* Nav should be full width */
.farmtab-myaccount-nav {
  width: 100%;
  margin-bottom: 2rem;
}

/* Content below nav */
.farmtab-myaccount-content {
  width: 100%;
}

/* ===============================
   MY ACCOUNT NAV – HORIZONTAL
================================ */

.woocommerce-MyAccount-navigation {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Nav items */
.woocommerce-MyAccount-navigation li {
  margin: 0;
}

/* Nav links */
.woocommerce-MyAccount-navigation a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2933;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
  background: #e2e8f0;
}

/* Active tab */
.woocommerce-MyAccount-navigation .is-active a {
  background: #2f6f3e;
  color: #ffffff;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation ul {
    gap: 0.5rem;
  }

  .woocommerce-MyAccount-navigation li {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

/* ==================================================
   FARM TAB – MY ACCOUNT GLOBAL STYLES
================================================== */

.farmtab-myaccount-page {
  --ft-green: #2f6f3e;
  --ft-gray-50: #f8fafc;
  --ft-gray-100: #f1f5f9;
  --ft-gray-300: #d1d5db;
  --ft-gray-600: #4b5563;
  --ft-gray-800: #1f2933;
}

/* ==================================================
   TABLES (Orders, Subscriptions, Downloads, etc.)
================================================== */

.farmtab-myaccount-page table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.farmtab-myaccount-page table thead {
  background: var(--ft-gray-50);
}

.farmtab-myaccount-page table th,
.farmtab-myaccount-page table td {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  vertical-align: middle;
}

.farmtab-myaccount-page table th {
  font-weight: 600;
  color: var(--ft-gray-800);
  white-space: nowrap;
}

.farmtab-myaccount-page table td {
  color: var(--ft-gray-600);
  background: #fff;
}

.farmtab-myaccount-page table tr:nth-child(even) td {
  background: #fcfcfc;
}

/* Responsive table scroll */
@media (max-width: 768px) {
  .farmtab-myaccount-page table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==================================================
   TABLE ACTION LINKS (View, Pay, Cancel, etc.)
================================================== */

.farmtab-myaccount-page table a {
  color: var(--ft-green);
  font-weight: 600;
  text-decoration: none;
}

.farmtab-myaccount-page table a:hover {
  text-decoration: underline;
}

/* ==================================================
   ORDER / SUBSCRIPTION STATUS BADGES
================================================== */

.farmtab-myaccount-page .woocommerce-order-status,
.farmtab-myaccount-page .subscription-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ft-gray-100);
  color: var(--ft-gray-800);
}

/* ==================================================
   FORMS – INPUTS, TEXTAREA, SELECT
================================================== */

.farmtab-myaccount-page label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ft-gray-800);
}

.farmtab-myaccount-page input[type="text"],
.farmtab-myaccount-page input[type="email"],
.farmtab-myaccount-page input[type="password"],
.farmtab-myaccount-page input[type="tel"],
.farmtab-myaccount-page textarea,
.farmtab-myaccount-page select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--ft-gray-300);
  background: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.farmtab-myaccount-page textarea {
  min-height: 120px;
  resize: vertical;
}

.farmtab-myaccount-page input:focus,
.farmtab-myaccount-page textarea:focus,
.farmtab-myaccount-page select:focus {
  outline: none;
  border-color: var(--ft-green);
  box-shadow: 0 0 0 2px rgba(47,111,62,0.15);
}

/* ==================================================
   BUTTONS
================================================== */

.farmtab-myaccount-page button,
.farmtab-myaccount-page .button {
  background: var(--ft-green);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.farmtab-myaccount-page button:hover,
.farmtab-myaccount-page .button:hover {
  background: #255a32;
}

/* Secondary buttons (Cancel, Back, etc.) */
.farmtab-myaccount-page .button.secondary {
  background: var(--ft-gray-100);
  color: var(--ft-gray-800);
}

.farmtab-myaccount-page .button.secondary:hover {
  background: var(--ft-gray-300);
}

/* ==================================================
   LINKS
================================================== */

.farmtab-myaccount-page a {
  color: var(--ft-green);
  text-decoration: none;
  font-weight: 600;
}

.farmtab-myaccount-page a:hover {
  text-decoration: underline;
}

/* ==================================================
   NOTICES & MESSAGES
================================================== */

.farmtab-myaccount-page .woocommerce-message,
.farmtab-myaccount-page .woocommerce-info {
  background: #ecfdf5;
  border-left: 4px solid var(--ft-green);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.farmtab-myaccount-page .woocommerce-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

/* ===============================
   FARMER PORTAL DASHBOARD NOTICE
================================ */

.farmtab-farmer-portal-notice {
  width: 100%;
  display: block;

  background: #e7f4ec;
  border: 1px solid #2f6f3e;
  border-left: 6px solid #2f6f3e;

  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;

  border-radius: 6px;

  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2933;
}

.farmtab-farmer-portal-notice a {
  color: #2f6f3e;
  font-weight: 700;
  text-decoration: underline;
}

.farmtab-farmer-portal-notice a:hover {
  text-decoration: none;
}

.woocommerce-account h1 {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--submissions {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
  display: none;
}

/* ===============================
   MY ACCOUNT – LOGIN & REGISTER
================================ */

.woocommerce-account:not(.logged-in) {
  background: #f6f7f5;
}

.woocommerce-account:not(.logged-in) .woocommerce {
  max-width: 900px;
  margin: 2rem auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(0,0,0,.1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button.show-password-input {
  display: none;
}

/* Form columns */
.woocommerce-account:not(.logged-in) .u-columns {
  display: flex;
  gap: 2rem;
}

.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 {
  flex: 1;
}

/* Headings */
.woocommerce-account:not(.logged-in) h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Labels */
.woocommerce-account:not(.logged-in) label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* Inputs */
.woocommerce-account:not(.logged-in) input.input-text {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Buttons */
.woocommerce-account:not(.logged-in) button.button {
  width: 100%;
  background: #2f6f3e;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 700;
  border: none;
}

.woocommerce-account:not(.logged-in) button.button:hover {
  opacity: 0.9;
}

/* Lost password */
.woocommerce-account:not(.logged-in) .lost_password a {
  color: #2f6f3e;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .woocommerce-account:not(.logged-in) .u-columns {
    flex-direction: column;
  }
}

/* ===============================
   SINGLE PRODUCT PAGE
================================ */

/* Main wrapper */

.single-product main {
  background: #f6f7f5;
}

.single-product main div.product {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
}

/* Product title */
.woocommerce div.product .product_title {
  font-weight: 700;
  color: #1f2933;
}

/* Product price */
.woocommerce div.product .price {
  font-weight: 600;
  color: #2f6f3e;
}

/* Product images */
.woocommerce div.product div.images img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Product summary (description, short description) */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 2rem;
}

/* Add to cart button */
.woocommerce div.product form.cart button.single_add_to_cart_button {
  background: #2f6f3e;
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: #1f4b28;
}

/* Quantity input */
.woocommerce div.product form.cart .quantity input.qty {
  border: 1px solid rgba(0,0,0,.1);
  padding: 0.5rem;
  border-radius: 4px;
  width: 70px;
  text-align: center;
  margin-right: 1rem;
}

/* Labels and inputs in product forms */
.woocommerce div.product form.cart label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.woocommerce div.product form.cart input,
.woocommerce div.product form.cart select,
.woocommerce div.product form.cart textarea {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.1);
  width: 100%;
  margin-bottom: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Tabs (Description, Additional info, Reviews) */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.6rem 1rem;
  display: inline-block;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2933;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  background: #2f6f3e;
  color: #fff;
}

.woocommerce div.product .woocommerce-Tabs-panel {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
  padding: 1.5rem 0;
  background-color: #f1f5f9;
  border-radius: 5px;
  padding: 1rem;
}

.single-product .product_meta .sku_wrapper {
  display: none;
}

body .qib-button-wrapper {
  margin-bottom: .5rem;
}


/* Related Products Section */
.related.products,
.upsells.products,
.cross-sells.products {
  margin-top: 4rem;
}

.related.products h2,
.upsells.products h2,
.cross-sells.products h2 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1f2933;
}

/* Related product grid */
.related.products ul.products,
.upsells.products ul.products,
.cross-sells.products ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Flex items: 4 per row on desktop */
.related.products ul.products li.product,
.upsells.products ul.products li.product,
.cross-sells.products ul.products li.product {
  flex: 0 0 calc(25% - 1.125rem); /* Adjusted to account for gap */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(0,0,0,.1);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

/* Hover shadow */
.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover,
.cross-sells.products ul.products li.product:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Product image */
.related.products ul.products li.product img,
.upsells.products ul.products li.product img,
.cross-sells.products ul.products li.product img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Product title and price */
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title,
.cross-sells.products ul.products li.product .woocommerce-loop-product__title {
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 0.5rem;
}

.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price,
.cross-sells.products ul.products li.product .price {
  color: #2f6f3e;
  font-weight: 600;
}

/* ===============================
   RESPONSIVE: 2 PRODUCTS PER ROW ON MOBILE
================================ */
@media (max-width: 768px) {
  .related.products ul.products li.product,
  .upsells.products ul.products li.product,
  .cross-sells.products ul.products li.product {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .related.products ul.products li.product,
  .upsells.products ul.products li.product,
  .cross-sells.products ul.products li.product {
    flex: 0 0 100%;
  }
}

/* ===============================
   ORDER CONFIRMATION PAGE
================================ */
.farmtab-checkout-container {
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Thank you message */
.woocommerce-thankyou-order-received {
  background: #2f6f3e;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Order overview list */
.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  list-style: none;
}

.woocommerce-order-overview li {
  flex: 1 1 calc(50% - 0.75rem);
  font-size: 1rem;
  color: #374151;
}

.woocommerce-order-overview li strong {
  font-weight: 600;
  color: #1f2933;
}

/* Order details table */
.woocommerce-order-details {
  margin-top: 2rem;
}

.woocommerce-order-details__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2933;
  margin-bottom: 1rem;
}

/* Order table */
.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  text-align: left;
}

.woocommerce-table--order-details th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1f2933;
}

.woocommerce-table--order-details td {
  background: #ffffff;
  color: #374151;
}

/* Product links in order table */
.woocommerce-table--order-details .woocommerce-table__product-name a {
  color: #2f6f3e;
  font-weight: 600;
  text-decoration: underline;
}

.woocommerce-table--order-details .woocommerce-table__product-name a:hover {
  text-decoration: none;
}

/* Customer details */
.woocommerce-customer-details {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.woocommerce-customer-details h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2933;
}

.woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.6;
  color: #374151;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-order-overview li {
    flex: 1 1 100%;
  }

  .woocommerce-table--order-details th,
  .woocommerce-table--order-details td {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .woocommerce-customer-details {
    padding: 1rem;
  }
}



