.elementor-8 .elementor-element.elementor-element-5490cb8{--display:flex;}:root{--page-title-display:none;}@media(max-width:767px){.elementor-8 .elementor-element.elementor-element-5490cb8{--gap:0px 0px;--row-gap:0px;--column-gap:0px;}}/* Start custom CSS for wc-elements, class: .elementor-element-2b6accd *//* === MAIN CONTAINER - PREVENT SHRINKING === */
#ell-cstm-crt-blk {
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* === REMOVE TABLE BEHAVIOR COMPLETELY === */
#ell-cstm-crt-blk table.shop_table,
#ell-cstm-crt-blk table.shop_table tbody,
#ell-cstm-crt-blk table.shop_table tr,
#ell-cstm-crt-blk table.shop_table td {
  display: block !important;
  width: 100% !important;
}

/* Remove header row */
#ell-cstm-crt-blk table.shop_table thead {
  display: none !important;
}

/* Each cart item becomes a card */
#ell-cstm-crt-blk table.shop_table tr.cart_item {
  background: #ffffff !important;
  border: 1px solid #E3E3E3 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.2s ease !important;
}

#ell-cstm-crt-blk table.shop_table tr.cart_item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Desktop: Arrange cart items in a single horizontal line */
@media (min-width: 768px) {
  #ell-cstm-crt-blk table.shop_table tr.cart_item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
  }

  /* Clean cell spacing for desktop - horizontal layout */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    flex-shrink: 0 !important;
  }

  /* Remove button - top right in desktop */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-remove {
    order: 1 !important;
    width: auto !important;
    margin-left: auto !important;
  }

  /* Product thumbnail - fixed width */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-thumbnail {
    order: 2 !important;
    width: 80px !important;
    flex-shrink: 0 !important;
  }

  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-thumbnail img {
    width: 80px !important;
    height: auto !important;
  }

  /* Product name - flexible width */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-name {
    order: 3 !important;
    flex: 1 1 200px !important;
    min-width: 150px !important;
  }

  /* Product price - fixed width */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-price {
    order: 4 !important;
    width: 120px !important;
    text-align: center !important;
  }

  /* Product quantity - fixed width */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-quantity {
    order: 5 !important;
    width: auto !important;
    text-align: center !important;
  }

  /* Product subtotal - fixed width with overflow handling */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-subtotal {
    order: 6 !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    text-align: left !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  /* Ensure subtotal content doesn't overflow */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-subtotal .ellaroza-subtotal-label,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-subtotal .ellaroza-subtotal-amount {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Mobile: Keep vertical stacked layout */
@media (max-width: 767px) {
  #ell-cstm-crt-blk table.shop_table tr.cart_item {
    display: block !important;
    flex-direction: column !important;
  }

  /* Clean cell spacing for mobile - vertical layout */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td {
    border: none !important;
    padding: 8px 0 !important;
    background: transparent !important;
    width: 100% !important;
    order: initial !important;
  }

  /* Reset order for mobile */
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-remove,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-thumbnail,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-name,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-price,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-quantity,
  #ell-cstm-crt-blk table.shop_table tr.cart_item td.product-subtotal {
    order: initial !important;
    width: 100% !important;
    margin-left: 0 !important;
    text-align: initial !important;
  }
}

/* Remove duplicate titles from data-title attributes (except product-subtotal) */
#ell-cstm-crt-blk table.shop_table tr.cart_item td:not(.product-subtotal)::before,
#ell-cstm-crt-blk table.shop_table tr.cart_item td[data-title]:not(.product-subtotal)::before {
  display: none !important;
  content: none !important;
}

/* Hide duplicate titles in cart totals */
#ell-cstm-crt-blk .cart_totals table th::before,
#ell-cstm-crt-blk .cart_totals table td::before {
  display: none !important;
  content: none !important;
}

/* Keep remove button aligned naturally */
#ell-cstm-crt-blk .product-remove {
  margin-bottom: 6px !important;
}

/* Hide update cart button */
#ell-cstm-crt-blk button[name="update_cart"],
#ell-cstm-crt-blk .actions button[name="update_cart"],
#ell-cstm-crt-blk .woocommerce-cart-form button[name="update_cart"] {
  display: none !important;
}

/* === BUTTON STYLES === */
#ell-cstm-crt-blk .button,
#ell-cstm-crt-blk button.button,
#ell-cstm-crt-blk input.button,
#ell-cstm-crt-blk .checkout-button,
#ell-cstm-crt-blk .actions .button,
#ell-cstm-crt-blk button[name="apply_coupon"] {
  background-color: #F198B3 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1.5 !important;
  text-align: center !important;
  box-shadow: 0 2px 4px rgba(241, 152, 179, 0.2) !important;
}

#ell-cstm-crt-blk .button:hover,
#ell-cstm-crt-blk button.button:hover,
#ell-cstm-crt-blk input.button:hover,
#ell-cstm-crt-blk .checkout-button:hover,
#ell-cstm-crt-blk .actions .button:hover,
#ell-cstm-crt-blk button[name="apply_coupon"]:hover {
  background-color: #FF90BB !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 8px rgba(255, 144, 187, 0.3) !important;
  transform: translateY(-1px) !important;
}

#ell-cstm-crt-blk .button:active,
#ell-cstm-crt-blk button.button:active,
#ell-cstm-crt-blk input.button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(241, 152, 179, 0.2) !important;
}

#ell-cstm-crt-blk .button:disabled,
#ell-cstm-crt-blk button.button:disabled,
#ell-cstm-crt-blk input.button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

#ell-cstm-crt-blk .checkout-button {
  width: 100% !important;
  background-color: #F198B3 !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
}

#ell-cstm-crt-blk .checkout-button:hover {
  background-color: #FF90BB !important;
}

/* "جمع جزء" and its number on opposite sides in item boxes - create container structure */
#ell-cstm-crt-blk .product-subtotal,
#ell-cstm-crt-blk td.product-subtotal {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  align-items: center !important;
  white-space: nowrap !important;
  width: 100% !important;
  position: relative !important;
}

#ell-cstm-crt-blk .product-subtotal *,
#ell-cstm-crt-blk td.product-subtotal * {
  white-space: nowrap !important;
}

/* Label created by JavaScript - similar to cart totals th styling */
#ell-cstm-crt-blk td.product-subtotal .ellaroza-subtotal-label {
  display: inline-block !important;
  flex-shrink: 0 !important;
  order: 2 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

/* Amount container created by JavaScript - similar to cart totals td styling */
#ell-cstm-crt-blk td.product-subtotal .ellaroza-subtotal-amount {
  display: inline-block !important;
  flex-shrink: 0 !important;
  order: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Hide ::before when processed by JavaScript */
#ell-cstm-crt-blk td.product-subtotal.ellaroza-subtotal-processed::before {
  display: none !important;
  content: none !important;
}

/* Fallback for ::before if JavaScript hasn't run yet */
#ell-cstm-crt-blk td.product-subtotal:not(.ellaroza-subtotal-processed)::before {
  content: attr(data-title) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  order: 2 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

/* Cart totals section - Box styling similar to cart items */
#ell-cstm-crt-blk .cart_totals {
  background: #ffffff !important;
  border: 1px solid #E3E3E3 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  margin-top: 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  min-width: 0 !important; /* Prevent shrinking */
  overflow-x: hidden !important; /* Prevent horizontal scroll */
  box-sizing: border-box !important;
}

#ell-cstm-crt-blk .cart_totals table {
  width: 100% !important;
  border: none !important;
  margin: 0 !important;
}

/* Cart totals section - "جمع جزء" and "مجموع" styling with opposite spacing */
#ell-cstm-crt-blk .cart_totals table tr {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  padding: 10px 0 !important;
  border: none !important;
  border-bottom: 1px solid #E3E3E3 !important;
}

#ell-cstm-crt-blk .cart_totals table tr:last-child {
  border-bottom: none !important;
  padding-top: 16px !important;
}

#ell-cstm-crt-blk .cart_totals table th,
#ell-cstm-crt-blk .cart_totals table td {
  display: inline-block !important;
  padding: 0 !important;
  border: none !important;
  width: auto !important;
  white-space: normal !important;
  word-break: break-word !important;
}

#ell-cstm-crt-blk .cart_totals table th {
  text-align: right !important;
  flex-shrink: 0 !important;
  order: 2 !important;
  max-width: 35% !important;
}

#ell-cstm-crt-blk .cart_totals table td {
  text-align: left !important;
  margin-right: auto !important;
  flex: 1 1 60% !important;
  max-width: 65% !important;
  order: 1 !important;
}

/* Shipping row: keep title on its own row above details */
#ell-cstm-crt-blk .cart_totals table tr.shipping {
  flex-direction: column !important;
  align-items: stretch !important;
}

#ell-cstm-crt-blk .cart_totals table tr.shipping th,
#ell-cstm-crt-blk .cart_totals table tr.shipping td {
  width: 100% !important;
  max-width: 100% !important;
}

#ell-cstm-crt-blk .cart_totals table tr.shipping th {
  margin-bottom: 6px !important;
  text-align: right !important;
  order: 1 !important;
}

/* RTL layout and multi-line content for shipping details */
#ell-cstm-crt-blk .cart_totals table tr.shipping td {
  direction: rtl !important;
  text-align: right !important;
  white-space: normal !important;
  order: 2 !important;
}

/* Separate text blocks (address, notes, change address, etc.) into their own rows */
#ell-cstm-crt-blk .cart_totals table tr.shipping td p,
#ell-cstm-crt-blk .cart_totals table tr.shipping td br,
#ell-cstm-crt-blk .cart_totals table tr.shipping td .address,
#ell-cstm-crt-blk .cart_totals table tr.shipping td .shipping-extra {
  display: block !important;
  margin: 3px 0 !important;
}

/* Keep shipping method label + price + currency in a single row */
#ell-cstm-crt-blk .cart_totals table tr.shipping td .shipping_method,
#ell-cstm-crt-blk .cart_totals table tr.shipping td .wc-shipping-method,
#ell-cstm-crt-blk .cart_totals table tr.shipping td label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  margin-bottom: 10px !important;
  vertical-align: middle !important;
}

/* Align radio buttons with their labels */
#ell-cstm-crt-blk .cart_totals table tr.shipping td input[type="radio"] {
  margin: 0 0 0 10px !important; /* space between radio and text (RTL) */
  vertical-align: middle !important; /* align to text center */
  flex-shrink: 0 !important;
  transform: translateY(-3px) !important; /* subtle vertical tweak */
}

/* ========= Change address form fields (inside shipping section) ========= */

/* Wrapper spacing */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator {
  margin-top: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Labels */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator p label {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 13px !important;
  color: #6B728E !important;
}

/* Form rows - prevent overflow */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .form-row {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Dropdowns & text fields */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator select,
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="text"],
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="tel"],
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="email"],
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="number"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #E3E3E3 !important;
  background-color: #FFFFFF !important;
  font-size: 14px !important;
  color: #1A1A1A !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Focus state */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator select:focus,
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="text"]:focus,
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="tel"]:focus,
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="email"]:focus,
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator input[type="number"]:focus {
  border-color: #F198B3 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(241, 152, 179, 0.2) !important;
}

/* Vertical spacing between fields */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator p {
  margin-bottom: 8px !important;
}

/* Ensure visible boxes around select2 dropdowns (ایران، مازندران، شیراز) */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-container--default {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important; /* allow dropdown to show, but prevent scrollbar on container */
}

#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-container--default .select2-selection--single {
  border: 1px solid #E3E3E3 !important;
  border-radius: 6px !important;
  background-color: #FFFFFF !important;
  padding: 6px 10px !important;
  height: auto !important;
  min-height: 38px !important; /* ensure consistent height */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important; /* prevent internal vertical scrollbar */
  display: flex !important;
  align-items: center !important;
}

/* Text inside select2 */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-selection__rendered {
  line-height: 1.6 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #1A1A1A !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  height: auto !important;
}

/* Select2 arrow - prevent overflow */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 8px !important;
  width: 20px !important;
}

/* Remove hover effect for cart remove link "حذف" */
#ell-cstm-crt-blk .product-remove a {
  color: #F198B3 !important;
  background: transparent !important;
  text-decoration: none !important;
}

#ell-cstm-crt-blk .product-remove a:hover,
#ell-cstm-crt-blk .product-remove a:focus {
  color: #F198B3 !important;
  background: transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

/* Focus state for select2 */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #F198B3 !important;
  box-shadow: 0 0 0 1px rgba(241, 152, 179, 0.2) !important;
}

/* Prevent select2 dropdown from causing horizontal scroll */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-dropdown {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator .select2-results {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Stronger rule so text field (e.g. 1234567890) always shows a box */
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator p input[type="text"],
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator p input[type="tel"],
#ell-cstm-crt-blk .cart_totals .woocommerce-shipping-calculator p input[type="number"] {
  border: 1px solid #E3E3E3 !important;
  border-radius: 6px !important;
  background-color: #FFFFFF !important;
  padding: 8px 10px !important;
  width: 100% !important;
}

/* Link styling: colored, no hover effect */
#ell-cstm-crt-blk a {
  color: #F198B3 !important;
  text-decoration: none !important;
}

#ell-cstm-crt-blk a:hover,
#ell-cstm-crt-blk a:focus {
  color: #F198B3 !important;
  text-decoration: none !important;
}

#ell-cstm-crt-blk .cart_totals table tr.shipping td .woocommerce-Price-amount,
#ell-cstm-crt-blk .cart_totals table tr.shipping td .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
}

#ell-cstm-crt-blk .cart_totals table tr:last-child th,
#ell-cstm-crt-blk .cart_totals table tr:last-child td {
  font-weight: 600 !important;
}

/* === QUANTITY SELECTION STYLES === */
#ell-cstm-crt-blk .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #E3E3E3 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
}

#ell-cstm-crt-blk .quantity input[type="number"],
#ell-cstm-crt-blk .quantity .qty {
  width: 60px !important;
  text-align: center !important;
  border: none !important;
  border-left: 1px solid #E3E3E3 !important;
  border-right: 1px solid #E3E3E3 !important;
  padding: 8px 4px !important;
  font-size: 15px !important;
  color: #1A1A1A !important;
  background: #FFFFFF !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

#ell-cstm-crt-blk .quantity input[type="number"]::-webkit-outer-spin-button,
#ell-cstm-crt-blk .quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#ell-cstm-crt-blk .quantity input[type="number"]:focus {
  outline: none !important;
  border-left-color: #F198B3 !important;
  border-right-color: #F198B3 !important;
}

#ell-cstm-crt-blk .quantity .qty-minus,
#ell-cstm-crt-blk .quantity .qty-plus {
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: #FFFFFF !important;
  color: #1A1A1A !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#ell-cstm-crt-blk .quantity .qty-minus:hover,
#ell-cstm-crt-blk .quantity .qty-plus:hover {
  background: #F198B3 !important;
  color: #FFFFFF !important;
}

#ell-cstm-crt-blk .quantity .qty-minus:active,
#ell-cstm-crt-blk .quantity .qty-plus:active {
  background: #FF90BB !important;
}

#ell-cstm-crt-blk .quantity .qty-minus:disabled,
#ell-cstm-crt-blk .quantity .qty-plus:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: #FFFFFF !important;
  color: #6B728E !important;
}

/* Prevent overly tall boxes on mobile */
@media (max-width: 520px) {
  #ell-cstm-crt-blk table.shop_table tr.cart_item {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  #ell-cstm-crt-blk table.shop_table tr.cart_item td {
    padding: 6px 0 !important;
  }

  /* Center align buttons on mobile */
  #ell-cstm-crt-blk .button,
  #ell-cstm-crt-blk button.button,
  #ell-cstm-crt-blk input.button,
  #ell-cstm-crt-blk .checkout-button,
  #ell-cstm-crt-blk .actions .button,
  #ell-cstm-crt-blk button[name="apply_coupon"],
  #ell-cstm-crt-blk .actions {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 12px auto !important;
  }

  #ell-cstm-crt-blk .actions .button {
    margin: 12px auto !important;
  }

  /* Quantity buttons on mobile */
  #ell-cstm-crt-blk .quantity {
    margin: 8px 0 !important;
  }

  #ell-cstm-crt-blk .quantity .qty-minus,
  #ell-cstm-crt-blk .quantity .qty-plus {
    width: 40px !important;
    height: 40px !important;
  }

  /* Subtotal spacing on mobile */
  #ell-cstm-crt-blk .product-subtotal,
  #ell-cstm-crt-blk td.product-subtotal {
    gap: 8px !important;
  }
}/* End custom CSS */