.off-canvas .mfp-content.off-canvas-cart {
  --drawer-width: 400px !important;
}

.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
  /* overflow-x: unset !important;
  overflow-y: unset !important; */
}

.button.primary.wc-backward {
  text-transform: capitalize;
  border-radius: 4px;
  background-color: #e0b583 !important;
}
.cart-popup-inner--sticky {
  background: #ffff !important;
}

ul.product_list_widget li img {
  height: 66px !important;
  width: 66px !important;
  border-radius: 4px;
  object-fit: cover;
}
ul.product_list_widget li a:not(.remove) {
  color: #1c1c1c;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 177px;
  white-space: nowrap;
}

ul.product_list_widget li .quantity.buttons_added {
  align-items: end;
}

.woocommerce-mini-cart-item.mini_cart_item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quantity input[type="number"] {
  background: #f6f6f6 !important;
  border-color: #e0e0e0 !important;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  max-width: 60px;
  line-height: 20px;
  max-height: 32px;
  box-shadow: none !important;
  color: #1c1c1c;
}
.quantity .button.minus,
.quantity .button.plus {
  width: 32px;
  height: 32px;
  border-right-width: 1px;
  border-radius: 8px;
  background: #ffff;
}

.qty-unit {
  font-size: 16px;
  margin-left: 6px;
}

.shopping-cart-popup {
  text-align: left;
  display: inline-flex !important;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 14px !important;
  align-items: center;
  line-height: 20px;
  color: #1c1c1c;
  gap: 8px;
}

.shopping-cart-popup img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.custom-cart-count {
  font-weight: 400;
  font-size: 14px !important;
  color: #181c32a6;
  line-height: 20px;
}

span.product-subtotal.price-wrapper {
  position: absolute;
  top: 9px;
  right: 0;
  font-weight: 700;
  font-size: 14px !important;
  line-height: 20px;
  color: #1c1c1c;
  opacity: 1 !important;
}

ul.product_list_widget li a.remove {
  position: absolute;
  right: 15%;
  bottom: 3px;
  border: none !important;
  color: #f04438 !important;
  font-weight: 500;
  font-size: 14px !important;
  line-height: 20px !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.woocommerce-mini-cart__subtotal.subtotal,
.woocommerce-mini-cart__tax.tax,
.woocommerce-mini-cart__total.total,
.woocommerce-mini-cart__coupon-discount.discount {
  display: flex;
  justify-content: space-between;
  color: #4d4d4d;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
}
.woocommerce-mini-cart__subtotal.subtotal strong,
.woocommerce-mini-cart__tax.tax strong,
.woocommerce-mini-cart__total.total strong,
.woocommerce-mini-cart__coupon-discount.discount strong {
  font-weight: unset !important;
}

.woocommerce-mini-cart__coupon {
  display: flex;
  justify-content: space-between;
  background: #fdf2eb;
  align-items: self-start;
  padding: 16px;
  margin-bottom: 10px !important;
  border-radius: 4px;
}

/* .woocommerce-mini-cart__coupon .input-text {
  max-width: 178px;
  width: 100%;
  height: 52px;
  background: #ffffff;
  margin-bottom: 0px !important;
  padding: 0.6rem;
  color: #4d4d4d;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
} */

/* .woocommerce-mini-cart__coupon .apply_coupon {
  background-color: white !important;
  max-width: 178px;
  width: 100%;
  height: 48px;
  margin-bottom: 0px !important;
  border: 1px solid #d49954;
  border-radius: 4px;
  text-transform: math-auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #121212;
  text-align: center;
} */

.cart-popup-inner .woocommerce-mini-cart {
  padding: 0 16px 16px 16px;
  /* overflow-y: auto !important; */
  max-height: 100%;
  width: 100%;
  margin-bottom: 0px !important;
}

.off-canvas-cart .ux-mini-cart-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 10px 16px 16px !important;
}

.ux-mini-cart-footer
  .woocommerce-mini-cart__total.total
  .woocommerce-Price-amount.amount
  bdi:last-child {
  color: #09893a !important;
  font-weight: 700;
}

.widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.checkout.wc-forward,
.wcss-share-cart-btn-shortcode,
.widget_shopping_cart .woocommerce-mini-cart__buttons .button.wc-forward,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-components-totals-coupon__form button {
  height: 48px;
  border-radius: 4px;
  padding: 13px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #121212;
  text-align: center;
  text-transform: inherit;
  text-wrap: nowrap;
}
#ywpar_apply_discounts {
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #121212;
  text-align: center;
  text-transform: inherit;
  text-wrap: nowrap;
}

.widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.checkout.wc-forward,
.wcss-share-cart-btn-shortcode,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-components-totals-coupon__form button,
#ywpar_apply_discounts {
  background-color: #e0b583 !important;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button.wc-forward {
  color: white;
}
/*  */

.cart-popup-title {
  padding: 16px;
  border-bottom: 1px solid #181c3233;
}

.nav-dropdown-has-border .nav-dropdown {
  border: none !important;
  border-radius: 4px;
}
.widget_shopping_cart p.total {
  background-color: white;
  margin-bottom: 0px !important;
  padding: 10px 5px !important;
  border-radius: 4px;
}

.woocommerce-mini-cart-item .ux-mini-cart-qty {
  margin-left: 8px;
}
/* .nav-dropdown.nav-dropdown-bold li.html, */
.nav-dropdown.nav-dropdown-simple li.html {
  padding: 5px !important;
}
.widget_shopping_cart p.total span.amount bdi {
  color: black !important;
  font-weight: 700;
}

.nav-dark span.amount bdi {
  color: #e0b583 !important;
}

#custom_coupon_message.coupon-success,
#custom_coupon_message_checkout.coupon-success {
  color: #155724 !important;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 5px;
}

#custom_coupon_message,
#custom_coupon_message_checkout,
#custom_coupon_message_checkout bdi,
#custom_coupon_message bdi {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
}

.cart-popup-inner .widget_shopping_cart_content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .cart-popup-inner--sticky {
    height: 100vh;
  }

  .off-canvas .mfp-content.off-canvas-cart {
    --drawer-width: 100% !important;
  }
  .off-canvas-right .mfp-content {
    /* top: 65px !important; */
  }

  .mfp-close {
    top: 0px !important;
  }

  .swal2-custom-confirm,
  .swal2-custom-cancel {
    max-width: 126px;
  }

  .ux-mini-cart-footer .product_checkout_coupon_wrapper .input-text,
  .apply_coupon {
    font-weight: 500;
    font-size: 14px !important;
    line-height: 20px;
  }

  .widget_shopping_cart
    .woocommerce-mini-cart__buttons
    .button.checkout.wc-forward {
    text-transform: inherit !important;
    font-size: 14px !important;
  }

  a.wcss-share-cart-btn-shortcode {
    height: auto;
    padding: 6px !important;
    margin-right: -1px !important;
    background-color: black !important;
    border: 1px solid white;
  }

  .stuck .header-main .nav > li > a.wcss-share-cart-btn-shortcode {
    line-height: unset !important;
  }
}

.ux-mini-cart-footer .product_checkout_coupon_wrapper {
  background: #fdf2eb;
  border-radius: 4px;
}

.ux-mini-cart-footer .product_checkout_coupon_wrapper .input-text {
  height: 52px;
  border: 1px solid #c6c6c6;
  width: 100%;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
  padding: 20px 8px 4px 12px;
  background: white;
  margin-bottom: 0px !important;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

div.product_text_coupon.cart-add-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 0px 16px;
}
.product_checkout_coupon {
  display: flex;
}

span.code_coupon {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #967d58;
  border: 1px solid;
  border-image-source: linear-gradient(
    268.62deg,
    #7f7362 -0.27%,
    #ad8f67 14.92%,
    #cdc1ab 52.85%
  );
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: start;
}

span.code_coupon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

span.text_coupon {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
  text-wrap: nowrap;
  text-align: start;
}

.apply_coupon {
  border: none;
  max-width: 143px;
  height: 52px;
  width: 100%;
  cursor: pointer;
  border: 1px solid #d49954;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  padding: 12px;
  text-transform: inherit !important;
  margin-bottom: 0px !important;
  background: #e0b583;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.swal2-custom-popup {
  position: relative;
  background-color: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(2px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 32px 40px;
}

.swal2-custom-confirm,
.swal2-custom-cancel {
  max-width: 205px;
  padding: 8px 20px;
  border-radius: 4px;
  text-transform: capitalize;
  width: 100%;
  margin-bottom: 0px !important;
  /* height: 48px; */
}
.swal2-custom-confirm {
  background-color: #ffffff !important;
  color: #121212 !important;
}

.swal2-custom-cancel {
  background-color: #f04438 !important;
  color: #fff !important;
}

.swal2-custom-confirm:hover,
.swal2-custom-cancel:hover {
  opacity: 0.7;
}

.apply_coupon:hover {
  transition: 0.5s ease;
  background-color: #d49954;
  color: white;
}

.ux-mini-cart-footer .floating-label-input {
  position: relative;
  width: 100%;
}

.ux-mini-cart-footer .floating-label-input label {
  position: absolute;
  top: 16px;
  left: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
  pointer-events: none;
  transition: 0.2s ease all;
  padding: 0 4px;
}

.ux-mini-cart-footer .floating-label-input select {
  cursor: pointer;
}

.ux-mini-cart-footer .floating-label-input input:focus + label,
.ux-mini-cart-footer
  .floating-label-input
  input:not(:placeholder-shown):valid
  + label,
.ux-mini-cart-footer .floating-label-input select:focus + label,
.ux-mini-cart-footer .floating-label-input select:valid + label {
  top: 7px;
  left: 8px;
  font-size: 12px;
  color: #868686;
  font-weight: 500;
  line-height: 16px;
  font-family: "HarmonyOS Sans", Arial, sans-serif !important;
}

#swal2-html-container {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: white;
}

#swal2-title {
  font-family: "Athelas", Georgia, "Times New Roman", serif !important;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
}
.swal2-actions {
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}
.woocommerce-mini-cart-item.loading,
.woocommerce-mini-cart__coupon.loading,
.product_checkout_coupon.loading {
  position: relative;
  opacity: 0.6;
  /* Mờ đi  */
  pointer-events: none;
}

.woocommerce-mini-cart-item.loading::after,
.woocommerce-mini-cart__coupon.loading::after,
.product_checkout_coupon.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  z-index: 10;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.ux-mini-cart-qty .woocommerce-Price-amount bdi {
  color: black !important;
}

.flex-col.flex-grow.medium-text-center {
  /* display: none !important; */
}

button.wc-block-cart-item__remove-link {
  color: red !important;
  font-size: 14px !important;
}

.wc-block-components-product-metadata {
  font-size: 13px !important;
}

.wc-block-components-product-name {
  font-weight: 700 !important;
}
