/* Hide WooCommerce default Add to Cart button */

.yith-quick-view .single_add_to_cart_button,
.yith-quick-view form.cart button.single_add_to_cart_button {
  display: none !important;
}

/* Layout for quantity + Add to quote button in Quick View popup */

.yith-quick-view form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 15px 0 !important;
}

/* Style & force visible the single custom quantity input */

.yith-quick-view .quantity input,
.yith-quick-view .custom-quickview-qty {
  height: 42px !important;
  width: 60px !important;
  text-align: center !important;
  font-size: 16px !important;
  padding: 0 4px !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* Match Add to quote button height & center text vertically */

.yith-quick-view .yith-ywraq-add-button,
.yith-quick-view .yith-ywraq-add-button a,
.yith-quick-view .single_add_to_quote_button {
  height: 42px !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border-radius: 4px !important;
}

/* Cover duplicate quantity box with meta data (your overlay hack) */

.yith-quick-view-content.woocommerce div.summary .product_meta {
    position: relative !important;
    top:0 !important;
    background:#fff !important;
    border:4px solid #fff !important;
    z-index:10 !important;
}

/* Hide Add to Quote button on main shop grid */

.woocommerce ul.products li.product .yith-ywraq-add-button {
  display: none !important;
}

/* Full-width & centered Preview → Quote / Login to See Price buttons on shop grid */

.woocommerce ul.products li.product .yith-wcqv-button,
.woocommerce ul.products li.product .yith-ywraq-add-button a,
.woocommerce ul.products li.product a.single_add_to_cart_button.button.alt[href*="/my-account/"] {
  width: 100% !important;
  height: 65px !important;
  min-height: 65px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.4 !important;
  padding: 0 15px !important;
  margin: 10px 0 0 !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Clean, compact success/notice message in Quick View popup */

.yith-quick-view .ywraq-message,
.yith-quick-view .yith-wcraq-notice,
.yith-quick-view .woocommerce-message,
.yith-quick-view .woocommerce-info {
  margin: 12px auto 0 !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  background-color: #f0f9f0 !important;
  color: #1b5e20 !important;
  border: 1px solid #c8e6c9 !important;
  border-radius: 20px !important;
  text-align: center !important;
  max-width: 320px !important;
  width: fit-content !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
  animation: fadeInUp 0.5s forwards !important;
}

/* Fade-in animation for message */

@keyframes fadeInUp {
  to {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* General Quick View styling */

.yith-quick-view .summary {
  padding: 10px 5px;
}

.yith-quick-view .price {
  color: #6b7280;
}

.woocommerce .yith-quick-view .single-product div.product .summary.entry-summary .price {
  color: #000000;
  font-size: 36px;
  line-height: 42px;
  font-weight: 600;
  font-family: Roboto Condensed;
}

.woocommerce .yith-quick-view .single-product div.product .summary.entry-summary .product_title {
  line-height: 36px;
  font-family: Roboto Condensed;
  margin-top: 30px;
  font-size: 30px;
}

#yith-quick-view-content div.images img {
  padding: 13px;
}

.yith-ywraq-add-button.show {
  margin-bottom: 21px;
}

.yith-quick-view-content.woocommerce div.summary .product_meta {
  font-size: 16px;
  font-family: Roboto Condensed;
  font-weight: 400;
  padding-top: 12px;
}

#yith-ywraq-form .product-quantity {
  text-align: center;
  width: 200px;
}

#yith-ywraq-form table.cart .product-thumbnail {
  width: 300px;
}

.woocommerce .quantity .qty {
  width: 80px;
}

table thead:first-child tr:first-child th {
  padding-top: 30px;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 30px;
}

#yith-ywrq-table-list.shop_table.cart.ywraq_responsive {
  border-width: 4px;
  border-color: #bababa;
  border-style: solid;
  border-radius: 15px;
  padding: -1px;
}

.woocommerce-MyAccount-navigation-link--orders,
.woocommerce-MyAccount-navigation-link--downloads {
  display: none !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .shop_table {
  padding: 20px;
}

/* Hide duplicate SKU in YITH Quick View popup */

.yith-quick-view .product_meta .sku_wrapper:nth-of-type(2),
.yith-quick-view .product_meta .sku:nth-of-type(2),
.yith-quick-view .product_meta .sku + .sku {
  display: none !important;
}

/* Hide duplicate SKU on single product pages (if it also appears there) */

.single-product .product_meta .sku_wrapper:nth-of-type(2),
.single-product .product_meta .sku:nth-of-type(2),
.single-product .product_meta .sku + .sku {
  display: none !important;
}

/* Center SKU between Login to See Price and Preview → Quote buttons */

.woocommerce ul.products li.product .sku_wrapper,
.woocommerce ul.products li.product .product_meta {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 5px 0 !important;
  box-sizing: border-box !important;
}

/* QPharmRX Bulk Order — keep YITH quantity + Add to Quote together */

.yith-ywraq-add-to-quote {
    white-space: nowrap !important;
}

.yith-ywraq-add-to-quote .quantity {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 8px 0 0 !important;
}

.yith-ywraq-add-to-quote .yith-ywraq-add-button {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

.yith-ywraq-add-to-quote .add-request-quote-button {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* QPharmRX Bulk Order — Category checkbox */

.wcf-filter-categories .wcf-checkbox-item > button.rt-BaseCheckboxRoot {
    all: unset !important;

    display: inline-flex !important;
    flex: 0 0 18px !important;

    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;

    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;

    box-sizing: border-box !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #ffffff !important;
    border: 2px solid #1479b8 !important;
    border-radius: 3px !important;

    outline: none !important;
    box-shadow: none !important;

    overflow: hidden !important;

    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Remove any internal Radix checkbox artwork */

.wcf-filter-categories .wcf-checkbox-item > button.rt-BaseCheckboxRoot::before,
.wcf-filter-categories .wcf-checkbox-item > button.rt-BaseCheckboxRoot::after {
    content: none !important;
    display: none !important;
}

/* Checked state */

.wcf-filter-categories .wcf-checkbox-item > button.rt-BaseCheckboxRoot[data-state="checked"] {
    background: #1479b8 !important;
    border-color: #1479b8 !important;
}

/* Category label */

.wcf-filter-categories .wcf-option-label {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #666 !important;
    line-height: 1.3 !important;
}

/* Product count */

.wcf-filter-categories .wcf-option-count {
    color: #888 !important;
    margin-left: 4px !important;
}

/* QPharmRX Bulk Order — Sort By selected text */

.wcf-filter .rt-SelectTrigger,
.wcf-filter .rt-SelectTrigger * {
    color: #ffffff !important;
}

/* QPharmRX Bulk Order — Sort By hover state */

.wcf-filter .rt-SelectTrigger:hover,
.wcf-filter .rt-SelectTrigger:hover * {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* QPharmRX Bulk Order — widen product search field */

.wc-product-table-controls .dataTables_filter input[type="search"] {
    width: 350px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}