.combo_product_sticker {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #55acee;
  height: 29px;
  line-height: 29px;
  border-radius: 6px;
  text-align: center;
  padding: 0 7.5px;
  z-index: 10;
  color: #fff;
}

.combo_products {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
}
.combo_products a.added_to_cart {
  margin-top: 20px;
}
.woocommerce-mini-cart__total {
  display: none !important;
}
li.html.widget_shopping_cart {
  padding: 0 10px;
  margin-top: -10px;
}
.checkout_coupon .flex-row.medium-flex-wrap {
  align-items: flex-start !important;
}
.mini-cart-totals-custom {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.mini-cart-totals-custom .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  margin: 0 !important;
  &:after {
    display: none;
  }
}
.mini-cart-totals-custom .fee-wrapper {
  border-top: 1px dashed #ddd;
  padding-top: 8px;
  margin: 8px 0;
}
.fee span.amount {
  color: #ee3643 !important;
}
.mini-cart-totals-custom .row.total {
  font-size: 16px;
  color: #111;
  border-top: 1px dashed #ddd;
  padding-top: 8px;
}

.combo_products .combo_products_title {
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
}
.combo_products .combo_prod_imgs {
  margin-top: 17px;
}
.combo_products .combo_prod_imgs ul {
  list-style: none;
  display: flex;
  padding: 0;
}
.combo_products .combo_prod_imgs ul > li {
  position: relative;
  margin: 0;
  padding-right: 40px;
}
.combo_products .combo_prod_imgs ul > li:after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translate(0, -50%);
  font-size: 22px;
}
.combo_products .combo_prod_imgs ul > li:last-child:after {
  display: none;
}
.combo_products .combo_prod_imgs ul > li img {
  width: 81px;
  /* display: block; */
}
.combo_products .combo_prod_details,
.combo_products .combo_prod_foot {
  max-width: 600px;
}
.combo_products .combo_prod_details #list_combo_prod {
  padding: 0;
  list-style: none;
  padding-top: 14px;
  margin: 0;
  display: none;
  line-height: normal;
}
.combo_products .combo_prod_details ul > li {
  display: flex;
  margin-bottom: 10px;
  margin-left: 0;
}
.cart-discount {
  font-size: inherit !important;
  th {
    padding-left: 0 !important;
  }
}
.combo_products .combo_prod_price_value * {
  font-weight: 400;
}
.combo_products .combo_prod_details ul > li input[type="checkbox"] {
  /* width: 17px;
  height: 17px;
  margin-right: 7px;
  margin-top: 0; */
}
.combo_products .combo_prod_name {
  padding-left: 25px;
}
.combo_products .combo_prod_name a:hover {
  color: var(--primary-color);
}
.combo_products .combo_prod_details ul > li .combo_prod_name .combo_current_view {
  display: none;
}
.combo_products .combo_prod_details ul > li .combo_prod_price {
  text-align: right;
  margin-left: auto;
  padding-left: 10px;
}
.combo_products .combo_prod_foot {
  display: flex;
  padding-top: 30px;
  justify-content: space-between;
}
.combo_products .combo_prod_foot .combo_prod_action {
  height: fit-content;
  position: relative;
}
.combo_products .combo_prod_foot .combo_prod_action button {
  background: #ee3643;
  outline: 0;
  color: #fff;
  border: 0;
  padding: 10px 0;
  width: 300px;
  border-radius: 4px;
  text-transform: none;
  margin: 0;
}
.combo_products .combo_prod_foot .combo_prod_action .combo_pc_btn {
  display: none;
  margin: 0;
  font-size: 18px;
  padding: 10px 15px;
}
.combo_products .combo_prod_foot .combo_prod_action .combo_mobile_btn {
  display: block;
}
.combo_products button {
  letter-spacing: 0;
  line-height: normal;
  min-height: auto;
}
.combo_products .combo_prod_foot .combo_prod_action #toggle_total_combo {
  background: transparent;
  color: #55acee;
  text-align: left;
  display: inline-block;
  width: auto;
  position: absolute;
  left: 0;
  top: 43px;
  padding-right: 15px;
  font-size: 13px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.combo_products .combo_prod_foot .combo_prod_action #toggle_total_combo .rules__toggle-icon {
  /* transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
  padding-right: 0;
}
.combo_products .combo_prod_foot .combo_prod_action #toggle_total_combo.active .rules__toggle-icon {
  transform: rotate(180deg);
}
.combo_products .combo_prod_foot .combo_prod_total {
  /* width: calc(100% - 300px); */
  /* padding-left: 56px; */
}
.combo_products .combo_prod_foot .combo_prod_total ul {
  padding: 0;
  list-style: none;
  width: 100%;
  li:not(:last-child) *:not(b, strong) {
    font-weight: 400;
  }
}
#combo_discount_amount span.woocommerce-Price-amount.amount::before {
  content: "-";
}
.combo_products .combo_prod_foot .combo_prod_total ul li {
  display: flex;
  font-size: 13px;
  margin: 0px;
  * {
    font-size: 16px;
  }
}
.combo_products .combo_prod_foot .combo_prod_total ul li label {
  display: block;
  width: 110px;
}
.combo_products .combo_prod_foot .combo_prod_total ul li p {
  margin: 0 0 0 auto;
}
.wrap-loading {
  position: relative;
  overflow: hidden;
  .loading_img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.6) !important;
    z-index: 100;
    display: none;
  }
  .loading_img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.combo_products .cb-label {
  position: relative;
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
  .cb-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 17px;
    width: 17px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
  }
  .cb-checkmark:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  input:checked ~ .cb-checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  &:hover input:not(:checked) ~ .cb-checkmark {
    background-color: #fff5e6;
    border-color: var(--primary-color);
  }
}
@media (min-width: 768px) {
  .combo_prod_action {
    max-width: 600px;
  }
  .combo_products .combo_prod_details ul > li .combo_prod_name .combo_current_view {
    display: inline-block;
  }
  .combo_products .combo_prod_foot .combo_prod_action .combo_pc_btn {
    display: block;
  }
  .combo_products .combo_prod_foot .combo_prod_action .combo_mobile_btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .combo_products .combo_prod_foot {
    max-width: 400px;
  }
  .combo_prod_action {
    max-width: 160px;
  }
}

@media (max-width: 350px) {
  .combo_prod_action {
    max-width: 140px;
  }
}

/* Container chính */
.available-coupons-container {
  margin: 30px 0;
  padding: 16px 12px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.coupons-title {
  text-align: center;
  color: #333;
  margin-bottom: 0;
  /* font-size: 24px; */
  font-weight: 600;
  position: relative;
  /* padding-bottom: 10px; */
}

.coupons-title:after {
  /* content: ""; */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
}

/* Grid hiển thị coupons */
.coupons-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
  gap: 20px;
  margin-top: 15px;
  width: 100%;
  --swiper-navigation-size: 16px;
  --swiper-pagination-bottom: 0px;
  --swiper-pagination-bullet-size: 10px;
  --swiper-pagination-bullet-horizontal-gap: 5px;

  .swiper-button-next,
  .swiper-button-prev {
    font-weight: bold;
    padding: 16px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Card coupon */
.coupon-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
  /* overflow: hidden; */
  text-align: left;
  height: 100%;
  width: 100%;
}

.coupon-card:hover {
  /* transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
  border-color: #4dabf7;
}

.coupon-card.valid {
  border-left: 4px solid #40c057;
}

.coupon-card.invalid {
  opacity: 0.7;
  border-left: 4px solid #868e96;
}

/* Header coupon */
.coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #e9ecef;
}

.coupon-code {
  font-size: 18px;
  font-weight: 700;
  color: #495057;
  letter-spacing: 1px;
  padding: 5px 10px;
  background: #f1f3f5;
  border-radius: 6px;
  font-family: "Courier New", monospace;
}

.coupon-discount {
  font-size: 20px;
  font-weight: 700;
  color: #ff6b6b;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Content coupon */
.coupon-content {
  margin-bottom: 15px;
  margin-top: auto;
}

.coupon-desc {
  color: #495057;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coupon-minimum {
  color: #868e96;
  font-size: 13px;
  margin-bottom: 5px;
}

/* Actions */
.coupon-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  /* margin: 0 auto; */
  /* margin-top: auto; */
}

.copy-coupon-btn,
.show-details-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  margin: 0;
  line-height: normal;
  /* width: revert-layer; */
}

.copy-coupon-btn {
  background: linear-gradient(135deg, #4dabf7, #339af0);
  color: white;
}

.copy-coupon-btn:hover {
  background: linear-gradient(135deg, #339af0, #228be6);
  transform: scale(1.05);
}

.show-details-btn {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
}

.show-details-btn:hover {
  background: #e9ecef;
  color: #339af0;
}

/* Modal chi tiết */
.coupon-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.coupon-modal.active {
  display: flex;
}

.coupon-modal-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coupon-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  /* padding-bottom: 15px; */
  border-bottom: 2px solid #f1f3f5;
}

.coupon-modal-title {
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #868e96;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  margin: 0;
}

.close-modal:hover {
  color: #ff6b6b;
}

.coupon-modal-body .detail-row {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.detail-row strong {
  color: #495057;
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.detail-row span {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .coupon-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .coupons-grid {
    grid-template-columns: 1fr;
  }

  .coupon-modal-content {
    padding: 20px;
    width: 95%;
  }
}
