/* ===========================
   CogniFleet — Frontend Styles
   Variation Description Layout
   =========================== */

/* Variation description container box */
.woocommerce-variation-description {
    margin-top: 12px !important;
    margin-bottom: 18px !important;
    padding: 25px 15px 12px 15px;
/* top | right | bottom | left */
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

/* Arrange lists in two columns (auto wraps if long) */
.woocommerce-variation-description ul {
    columns: 2;
    column-gap: 25px;
    margin: 0;
    padding-left: 18px;
}

/* Compact list spacing */
.woocommerce-variation-description li {
    margin-bottom: 6px;
}

/* ==============================
   Variation Description Toggle Button Styling
   (Linked to variation-desc-handler.js)
   ============================== */

#cf-toggle-desc {
  display: inline-block;
  width: 48%;
  background: #f7f7f7;
  border: 1px solid #ccc;
  color: #333;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  margin-left: 2%; /* small gap from Add to Basket */
  vertical-align: middle;
}

/* Hover + active states */
#cf-toggle-desc:hover {
  background: #efefef;
}

#cf-toggle-desc:active {
  background: #e0e0e0;
}

/* Responsive: stack buttons on mobile */
@media (max-width: 600px) {
  #cf-toggle-desc {
    display: block;
    width: 100%;
    margin-top: 8px;
    margin-left: 0;
  }
}

/* =============================================
/* CSS of Continue Shopping Button on Cart Page
/* ============================================ */

a.continue-shopping {
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
}

a.continue-shopping:hover {
    background: #efefef;
}


/* =========================================================================
   HIDE DEFAULT WOOCOMMERCE PRICE - ADDED FOR SUBSCRIPTION PRODUCTS
   added this code to remove Hide WooCommerce's default price display 
   (bcz duplicated while the same is dipalying subscription total 
   caluclation display box)
   ====================================================================== */
   
.single-product div.price,
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-price .price,
.single-product p.price {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure our custom price breakdown is visible */
#custom-price-breakdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide the "Original price was..." text */
del .woocommerce-Price-amount,
.woocommerce-price-suffix {
    display: none !important;
}

