/* Warning Box Styling */
.wc-block-components-address-form__bwk-store-responsibility-disclaimer {
  border: 2px solid #e74c3c;
  background-color: #fdedec;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
}

/* Add warning icon */
.wc-block-components-address-form__bwk-store-responsibility-disclaimer::before {
  content: "⚠️";
  font-size: 1.5em;
  margin-right: 10px;
  display: block;
  margin-bottom: 8px;
}

.wcf-embed-checkout-form.wcf-embed-checkout-form-modern-checkout .woocommerce-checkout #payment .form-row {
  padding: 15px 15px 15px;
}

/* Make text more prominent */
.wc-block-components-address-form__bwk-store-responsibility-disclaimer label {
  font-weight: bold;
  color: #c0392b;
  display: flex;
  align-items: flex-start;
}

/* Style the checkbox */
#order-bwk-store-responsibility-disclaimer {
  margin-right: 10px;
  transform: scale(1.2);
}

/* Link styling */
#checkout_checkbox_field a {
  color: #e74c3c;
  text-decoration: underline;
}

/* Search Spinner */
#searchTotal {
  position: relative;
}

.js-wpv-dps-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
}

.js-wpv-dps-spinner::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db; /* Change color as needed */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Lightbox */
.custom-lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.custom-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.custom-lightbox-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
}

/* Product attribute tabs styling */
.custom-grouped-product-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
}

.custom-grouped-product-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-top: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.product-sku-cat {
  display: flex;
  flex-direction: column;
  min-width: 100px;
  background-color: rgba(247, 243, 245, 1);
}

.product-brand img {
  max-width: 50px;
  max-height: 50px;
}

.product-stock, 
.product-price, 
.product-quantity {
  min-width: 80px;
  background-color: rgba(247, 243, 245, 1);
}

#loopDivThreeSingle > div.custom-grouped-product-info > div:nth-child(n) > div.product-quantity > input {
  max-width: 60px;
}

/* Product attributes tabs */
.woocommerce-grouped-product-attributes .tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #ddd;
}

.woocommerce-grouped-product-attributes .tabs li {
  display: inline-block;
  margin-right: 5px;
}

.woocommerce-grouped-product-attributes .tabs a {
  display: block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-bottom: none;
  text-decoration: none;
  color: #333;
}

.woocommerce-grouped-product-attributes .tabs li.active a {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.woocommerce-grouped-product-attributes .tab-content {
  display: none;
}

/* Coupon styles */
.my-coupons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.coupon-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  width: 300px;
  position: relative;
  background: #f9f9f9;
}

.coupon-item.used {
  opacity: 0.7;
}

.coupon-item h3 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.coupon-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: bold;
}

.coupon-item.used .coupon-status {
  color: #999;
}

.coupon-item.ready .coupon-status {
  color: #27ae60;
}
