/* My WooCommerce Side Cart Styles */

/* Overlay */
.mwcsc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mwcsc-overlay.mwcsc-is-visible {
  opacity: 1;
  visibility: visible;
}

/* Side Cart Container */
.mwcsc-side-cart {
  position: fixed;
  top: 0;
  right: -400px;
  /* Default width, will be overridden by dynamic styles */
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mwcsc-side-cart.mwcsc-is-open {
  right: 0;
}

/* Body class to prevent scrolling */
.mwcsc-body-no-scroll {
  overflow: hidden;
}

/* Header */
.mwcsc-side-cart-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.mwcsc-side-cart-header h3 {
  margin: 0;
  font-size: 1.5em;
  font-family: 'Helvetica Bold';
  font-weight: bold;
  color: #000 !important;
}

.mwcsc-side-cart-header p {
  margin: 5px 0 0;
  color: #666;
}

.mwcsc-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  color: #333;
  opacity: 0.7;
}

.mwcsc-close:hover {
  opacity: 1;
}

/* Body / Content */
.mwcsc-side-cart-body-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.mwcsc-empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #777;
}

ul.mwcsc-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

li.mwcsc-cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

li.mwcsc-cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mwcsc-item-thumbnail {
  width: 70px;
  margin-right: 15px;
}

.mwcsc-item-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.mwcsc-item-details {
  flex-grow: 1;
}

.mwcsc-item-name {
  font-family: 'Helvetica Bold';
  font-weight: bold;
  color: #000;
  max-width: 250px;
  display: block;
}

.mwcsc-item-name a {
  color: #000;
}

/* Item Meta - align controls and price/remove button */
.mwcsc-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Vertically align items */
  margin-top: 8px;
  flex-wrap: wrap;
  /* Allow wrapping on smaller screens */
  gap: 5px 10px;
  /* Gap between items in the row */
}

/* Quantity Changer */
.mwcsc-quantity-changer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Prevent it from shrinking */
}

/* Remove Item Button */
.mwcsc-remove-item {
  font-size: 1.2em;
  /* Slightly larger 'x' */
  color: #a00;
  text-decoration: none;
  line-height: 1;
  margin-left: 10px;
  /* Space from quantity/price */
  transition: color 0.2s ease;
}

.mwcsc-remove-item:hover {
  color: #e00;
}


.mwcsc-item-price {
  font-weight: bold;
  color: #444;
}

/* Quantity Changer */
.mwcsc-quantity-changer {
  display: flex;
  align-items: center;
}

.mwcsc-qty-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding: 0;
  color: #555;
}

.mwcsc-qty-btn:hover {
  background-color: #e0e0e0;
}

.mwcsc-qty-input {
  width: 40px;
  height: 28px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
  /* Firefox */
}

.mwcsc-qty-input::-webkit-outer-spin-button,
.mwcsc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Footer */
.mwcsc-side-cart-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.mwcsc-side-cart-footer-content .mwcsc-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
  gap: 14px;
  align-items: center;
}

.mwcsc-side-cart-footer-content .mwcsc-footer-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mwcsc-side-cart-footer-content .mwcsc-footer-buttons .button {
  flex: 1;
  margin: 0;
  text-align: center;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  border-radius: 130px;
}

.mwcsc-shortcode-area {
  margin-top: 15px;
  text-align: center;
}

.mwcsc-side-cart-footer-content a.button.mwcsc-button-view-cart {
  background: none !important;
}

/* Loading State */
.mwcsc-side-cart.mwcsc-loading .mwcsc-side-cart-body-content::after,
.mwcsc-side-cart.mwcsc-loading .mwcsc-side-cart-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

.mwcsc-side-cart.mwcsc-loading .mwcsc-side-cart-body-content::before,
.mwcsc-side-cart.mwcsc-loading .mwcsc-side-cart-footer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: mwcsc-spin 0.6s linear infinite;
  z-index: 11;
}

@keyframes mwcsc-spin {
  to {
    transform: rotate(360deg);
  }
}

.mwcsc-quantity-changer {
  display: flex;
  align-items: center;
  width: 153px;
  flex-wrap: wrap;
}

.mwcsc-quantity-changer .mwcsc-qty-btn {
  width: 34px;
  height: 34px;
  min-height: inherit;
  border-radius: 100%;
  background: #e6ca2e;
  font-size: 0px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 14px;
  position: relative;
  border: none;
}

.mwcsc-quantity-changer button.mwcsc-qty-btn.mwcsc-qty-minus {
  background-image: url('https://stubtober.com/wp-content/themes/ddatheme-2025/assets/images/mins-icon-new.svg');
}

.mwcsc-quantity-changer button.mwcsc-qty-btn.mwcsc-qty-plus {
  background-image: url('https://stubtober.com/wp-content/themes/ddatheme-2025/assets/images/pluse-icon-new.svg');
}

input.mwcsc-qty-input {
  width: calc(100% - 68px) !important;
  height: 34px;
  border: 2px #e6ca2e solid;
  font-size: 20px !important;
  margin: 0 -11px;
}

body .mwcsc-item-price span.woocommerce-Price-amount.amount {
  color: #000;
  font-family: 'Helvetica Bold';
  font-weight: bold;
  font-size: 16px;
  line-height: 19px;
}

.spraynt-promo-widget {
  border: none !important;
}

.spraynt-promo-widget {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.promo-product-suggestions .slick-slide img {
  margin: 0 auto;
}

.mwcsc-side-cart-header h3,
.mwcsc-side-cart-header p,
.mwcsc-close {
  color: #000;
}

.view-all-promo-products {
  color: #ff1703;
  text-align: left !important;
  text-decoration: underline;
}

.promo-title {
  padding-left: 11px;
}

.promo-product-item a {
  background: #f3f3f3;
  display: block;
  border: 4px #fff solid;
  padding-bottom: 18px;
}

.promo-product-item a h5 {
  height: auto !important;
}

.promo-product-item span.price span.woocommerce-Price-amount.amount {
  color: #ff1703;
  font-family: 'Helvetica Bold';
}

.promo-title h4 {
  line-height: normal;
  margin: 0 !important;
}

.promo-header {
  border: 1px #eee solid;
  padding: 15px;
  margin-bottom: 30px !important;
}

.promo-product-suggestions .slick-prev {
  left: 2px;
}

.promo-product-suggestions .slick-next {
  right: 2px;
}

.mwcsc-subtotal span.woocommerce-Price-amount.amount {
  color: #ff1703;
}

body .promo-product-suggestions a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  padding: 5px 12px;
  font-size: 13px;
  border: 1px solid #E6C82B;
  background: #E6C82B;
  width: 154px;
  min-width: 154px;
  margin: 6px auto 0;
}

body .promo-product-suggestions a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover {
  background: white !important;
  color: black !important;
  border-color: #3C485B !important;
}

.promo-product-suggestions .slick-prev,
.promo-product-suggestions .slick-next {
  top: 30%;
}

@media (max-width:575px) {
  .mwcsc-side-cart.mwcsc-is-open {
    right: 0;
    width: 100%;
  }

  .mwcsc-side-cart-footer-content .mwcsc-footer-buttons .button {
    min-width: 50%;
  }
}
