/* 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 button on shop grid */

.woocommerce ul.products li.product .yith-wcqv-button,
.woocommerce ul.products li.product .yith-ywraq-add-button a {
  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;
}