.yaydp-cart-item-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.yaydp-notice {
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto,
    helvetica neue, Arial, noto sans, sans-serif, apple color emoji,
    segoe ui emoji, segoe ui symbol, noto color emoji;
  position: relative;
  display: flex;
  align-items: center;
  word-wrap: break-word;
  border-radius: 8px;
}

.yaydp-notice-info {
  background-color: #e6f4ff;
  border: 1px solid #91caff;
}

.yaydp-notice-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
}

.yaydp-notice .yaydp-notice-icon {
  display: flex;
}
.yaydp-notice-info .yaydp-notice-icon {
  color: #1677ff;
}
.yaydp-notice-warning .yaydp-notice-icon {
  color: #faad14;
}

.yaydp-free-item-badge,
.yaydp-free-item-change {
  padding: 2px 10px;
  background: #2271b1;
  border-radius: 3px;
  color: #fff;
}
.variation_gzd_modified + .price.yaydp-discounted-price {
  display: none;
}

/** support blocksy */
.quantity:has(input[readonly="readonly"]) .ct-increase {
  display: none;
}
.quantity:has(input[readonly="readonly"]) .ct-decrease {
  display: none;
}

.yaydp-offer-description {
  margin-bottom: 1rem;
}

/* Sale tag */
.yaydp-sale-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-backface-visibility: hidden;
  z-index: 99;
  pointer-events: none;
  border-style: solid;
  line-height: 1.2;
  border-radius: 5px;
  padding: 3.5px 9px;
  font-weight: 600;
  min-height: 30px;
}

.yaydp-sale-tag:not(.yaydp-custom-sale-tag) {
  position: absolute;
  top: var(--wc-sale-badge-distance, 0.875rem);
  right: var(--wc-sale-badge-distance, 0.875rem);
  left: auto;
}

.woocommerce-product-gallery:has(.woocommerce-product-gallery__trigger)
  .yaydp-sale-tag {
  left: var(--wc-sale-badge-distance, 0.875rem) !important;
  right: auto !important;
}

/* Tooltip */
.yaydp-tooltip-icon::before {
  content: "\f223";
}

.yaydp-tooltip-icon {
  position: relative;
  cursor: help;
  font-family: dashicons;
  display: inline-block;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 20px;
  height: 20px;
  font-size: 20px;
  vertical-align: sub;
  text-align: center;
  transition: color 0.1s ease-in;
  color: #363636;
}

.yaydp-tooltip-icon:hover .yaydp-tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -0.6em);
}
.yaydp-tooltip-icon:hover::after {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -9px);
}

.yaydp-tooltip-content {
  visibility: hidden;
  opacity: 0;
  max-width: 250px;
  width: max-content;
  font-weight: normal;
  background-color: #363636;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 0.5rem 0.5rem;
  font-weight: 400;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  font-size: 0.8rem;
  font-family: "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  transform: translateX(-50%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.yaydp-tooltip-icon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #363636;
  border-radius: 2px;
  transform-origin: center;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.yaydp-tooltip-content > div {
  padding: 10px 0;
  border-bottom: 1px solid white;
}

.yaydp-tooltip-content > div:last-child {
  border: none;
  padding-bottom: 0;
}
.yaydp-tooltip-content > div:first-child {
  padding-top: 0;
}

/* Matching products */
.yaydp-matching-products {
  text-decoration: none;
}
.yaydp-matching-products > li {
  list-style: none;
}

.yaydp-matching-products > li > div {
  display: flex;
  padding: 5px 0;
  align-items: center;
}

.yaydp-matching-products .yaydp-matching-product-image {
  margin: 0;
  width: auto;
  height: auto;
  max-width: 40px;
  max-height: 40px;
  vertical-align: middle;
  padding-right: 5px;
}

.wc-block-product-template .wc-block-product,
.wp-block-post-template .wp-block-post {
  position: relative;
}
