/* Stable purchase controls after the local theme recovery. */
#product-category .pr-module-item-price-box,
#product-search .pr-module-item-price-box,
#product-special .pr-module-item-price-box,
#common-home .pr-module-item-price-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#product-category .pr-module-item-price,
#product-search .pr-module-item-price,
#product-special .pr-module-item-price,
#common-home .pr-module-item-price {
  width: 100% !important;
  min-width: 0 !important;
}

.pr-module-item .button-cart {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.pr-module-item .button-cart .button-quantity {
  flex: 0 0 96px !important;
  width: 96px !important;
  min-width: 96px !important;
}

.pr-module-item .button-cart > .button-text {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  justify-content: center !important;
  min-width: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

#product-product .pr-product-buttons > div {
  display: grid !important;
  grid-template-columns: 116px minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#product-product .pr-product-buttons-quantity {
  grid-template-columns: 36px 44px 36px !important;
  width: 116px !important;
  min-width: 116px !important;
  flex-basis: 116px !important;
}

#product-product .pr-product-buttons-quantity .minus,
#product-product .pr-product-buttons-quantity .plus {
  width: 36px !important;
  min-width: 36px !important;
}

#product-product .pr-product-buttons-quantity .number {
  width: 44px !important;
}

#product-product #button-cart {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  overflow: hidden !important;
}

#product-product #button-cart .button-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c365-product-badge svg {
  display: block;
  width: 19px;
  height: 19px;
}

@media (max-width: 575.98px) {
  .pr-module-item .button-cart .button-quantity {
    flex-basis: 88px !important;
    width: 88px !important;
    min-width: 88px !important;
  }

  #product-product .pr-product-buttons > div {
    grid-template-columns: 106px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  #product-product .pr-product-buttons-quantity {
    grid-template-columns: 33px 40px 33px !important;
    width: 106px !important;
    min-width: 106px !important;
    flex-basis: 106px !important;
  }

  #product-product .pr-product-buttons-quantity .minus,
  #product-product .pr-product-buttons-quantity .plus {
    width: 33px !important;
    min-width: 33px !important;
  }

  #product-product .pr-product-buttons-quantity .number {
    width: 40px !important;
  }
}
