/**
 * Buy X Get Y
 *
 */
.merchant-bogo {
  margin-block: 20px;
}
.merchant-quick-view-content .merchant-bogo {
  max-width: 100%;
}
.merchant-bogo-title {
  margin: 0 0 10px;
  font-size: var(--merchant-font-size);
  font-weight: var(--merchant-font-weight);
  color: var(--merchant-text-color);
}
.merchant-bogo .added_to_cart,
.merchant-bogo .wc-forward {
  display: none !important;
}

.merchant-bogo-offer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  grid-gap: 20px;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.merchant-bogo-offer > div {
  position: relative;
}
.merchant-bogo-offer:not(:last-child) {
  margin-bottom: 20px;
}
.merchant-bogo-offer.hidden {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1024px) and (min-width: 769px) {
  .merchant-quick-view-content .merchant-bogo-offer .merchant-bogo-product-x {
    width: 45%;
  }
  .merchant-quick-view-content .merchant-bogo-offer .merchant-bogo-product-y {
    width: 55%;
  }
}

.merchant-bogo-product {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.merchant-bogo-product p {
  margin: 0 0 5px;
}
.merchant-bogo-product p,
.merchant-bogo-product span {
  font-size: 13px;
}
.merchant-bogo-product p del,
.merchant-bogo-product p bdi,
.merchant-bogo-product span del,
.merchant-bogo-product span bdi {
  font-size: inherit !important;
}
.merchant-bogo-product img {
  max-height: 80px !important;
  max-width: 80px !important;
}

.merchant-bogo-product-price .error {
  color: red;
  font-size: 12px;
}

.merchant-bogo-product-contents {
  padding-left: 10px;
}

.merchant-bogo-product-y {
  border: 1px solid;
  border-radius: 0;
  padding: 10px 10px 0;
}

.merchant-bogo-product-label {
  background: var(--merchant-bg-color);
  color: var(--merchant-text-color);
  padding: 4px 12px;
  font-weight: bold;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.merchant-bogo-arrow {
  background: var(--merchant-bg-color);
  color: var(--merchant-text-color);
  width: 30px;
  height: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 50%;
  text-align: center;
  position: absolute;
  right: -30px;
  top: 80px;
  z-index: 2;
}

button.button.merchant-bogo-add-to-cart {
  font-size: 12px;
  margin-top: 10px;
  padding: 7px 14px;
  width: 100%;
}

.merchant-bogo-offer-error {
  color: red;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.merchant-bogo-offer-error .error {
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.merchant-bogo-product-attributes {
  display: grid;
  grid-gap: 10px;
  margin-top: 10px;
}
.merchant-bogo-product-attributes select {
  min-height: inherit;
  height: inherit;
  padding: 7px;
  font-size: 12px;
}

@media (min-width: 470px) {
  .merchant-bogo-product-x {
    width: 50%;
  }
  .merchant-bogo-product-y {
    width: 50%;
  }
}
@media (max-width: 469px) {
  .merchant-bogo-offer {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .merchant-bogo-arrow {
    right: 0;
    left: 50%;
    bottom: -30px;
    top: inherit;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
  }
}
.select-error-tooltip {
  position: relative;
  color: #58151c;
}
.select-error-tooltip:after, .select-error-tooltip:before {
  position: absolute;
  z-index: 99;
}
.select-error-tooltip:before {
  font-weight: 400;
  text-transform: none;
  content: attr(data-error);
  background: #f8d7da;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  color: #58151c;
  padding: 5px 10px;
  border-radius: 5px;
  bottom: calc(100% + 10px);
  left: 0;
}
.select-error-tooltip:after {
  font-family: "dashicons";
  content: "\f140";
  font-size: 26px;
  color: #f8d7da;
  line-height: 1;
  bottom: calc(100% - 5px);
  left: 5px;
}