/* =====================================================
   DIGITALENT – WOO PURCHASE BUTTON (v2.2)
   - hides Enfold/Woo default price output inside av-woo-purchase-button
   - renders one price (H4) above button, right-aligned
   - button orange bg, cream text
   ===================================================== */

/* Align whole element to the right */
#top .av-woo-purchase-button{
  display:flex !important;
  justify-content:flex-end !important;
}

/* Kill the extra price that Enfold outputs in the element wrapper */
#top .av-woo-purchase-button > .price,
#top .av-woo-purchase-button .price{
  display:none !important;
}

/* Our custom block alignment */
#top .av-woo-purchase-button .dlt-purchase-block{
  display:flex !important;
  flex-direction:column;
  align-items:flex-end;      /* right */
  justify-content:flex-start;
  margin-left:auto;          /* push to the right */
  text-align:right;
  gap: 10px;
}

/* Price typography – H4 spec */
#top .av-woo-purchase-button .dlt-purchase-price.dlt-h4{
  margin: 0 !important;
  padding: 0 !important;

  font-family: "Neuf", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 1 !important;          /* 100% */
  letter-spacing: 0.40em !important;  /* 40% */
  text-transform: uppercase !important;
  color: #5C1F00 !important;

  white-space: nowrap;
}

#top .av-woo-purchase-button .dlt-purchase-price *{
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}

/* Button styling */
#top .av-woo-purchase-button a.dlt-buy-course-button{
  background: #FF5107 !important;
  border: 2px solid #FF5107 !important;
  color: #FFF5D9 !important;

  text-decoration:none !important;
  box-shadow:none !important;
  border-radius: 0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  min-height: 40px;
  padding: 0 26px !important;

  font-family: "Neuf", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
}

#top .av-woo-purchase-button a.dlt-buy-course-button:hover,
#top .av-woo-purchase-button a.dlt-buy-course-button:focus{
  filter: brightness(0.95);
  outline: none !important;
}


/* Mobile only: hide SKU / categories near the custom buy button */
@media only screen and (max-width: 767px){
  #top.single-product .product_meta,
  #top.single-product .sku_wrapper,
  #top.single-product .posted_in,
  #top.single-product .tagged_as{
    display:none !important;
  }
}
