/* Tasmeem cart page styles. All selectors are scoped to .cart_page. */
.cart_page > .wrap {
  max-width: calc(1760px + 6%);
}

.cart_page .woocommerce {
  color: #242625;
  font-family: var(--font-family-base, Arial, sans-serif);
}

.cart_page .cart-empty {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(20px, 5vw, 56px);
  background: transparent;
  border: 0;
  text-align: center;
}

.cart_page .wc-empty-cart-message {
  margin-bottom: 28px;
}

/* Keep the empty-cart panel and icon in the site's black accent color. */
body.woocommerce-cart .wc-empty-cart-message {
  border-color: #242625 !important;
}

body.woocommerce-cart .wc-empty-cart-message .woocommerce-info,
body.woocommerce-cart p.cart-empty.woocommerce-info {
  border-color: #242625 !important;
  border-inline-start-color: #242625 !important;
  background-color: #f7f6f3 !important;
  color: #242625 !important;
}

body.woocommerce-cart .wc-empty-cart-message .woocommerce-info::before,
body.woocommerce-cart p.cart-empty.woocommerce-info::before {
  color: #fff !important;
  background-color: #242625 !important;
  border-radius: 50%;
}

.cart_page .woocommerce-info,
.cart_page .woocommerce-message,
.cart_page .woocommerce-error {
  margin: 0 0 24px;
  padding: 18px 24px 18px 52px;
  border: 1px solid #dedbd6;
  border-left: 3px solid #242625;
  border-radius: 0;
  background: #fff;
  color: #242625;
  box-shadow: none;
  line-height: 1.6;
}

.cart_page .return-to-shop {
  margin: 0;
}

.cart_page .return-to-shop .main_btn,
.cart_page .woocommerce a.button,
.cart_page .woocommerce button.button,
.cart_page .woocommerce input.button,
.cart_page .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 1px solid #242625;
  border-radius: 0;
  background: #242625;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cart_page .return-to-shop .main_btn:hover,
.cart_page .woocommerce a.button:hover,
.cart_page .woocommerce button.button:hover,
.cart_page .woocommerce input.button:hover,
.cart_page .wc-proceed-to-checkout a.checkout-button:hover {
  border-color: #242625;
  background: transparent;
  color: #242625;
}

.cart_page .woocommerce-cart-form {
  margin-bottom: 48px;
}

.cart_page table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  color: #242625;
}

.cart_page table.shop_table th {
  padding: 18px 14px;
  border: 0;
  border-bottom: 1px solid #cfcac4;
  color: #242625;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cart_page table.shop_table td {
  padding: 20px 14px;
  border: 0;
  border-bottom: 1px solid #e3e0dc;
  vertical-align: middle;
}

.cart_page .product-remove a.remove {
  color: #595959 !important;
  font-size: 24px;
}

.cart_page .product-remove a.remove:hover {
  background: #242625;
  color: #fff !important;
}

.cart_page .product-thumbnail img {
  width: 92px;
  max-width: 100%;
  height: auto;
}

.cart_page .product-name a {
  color: #242625;
  text-decoration: none;
}

.cart_page .product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart_page .quantity .qty,
.cart_page .coupon .input-text {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfcac4;
  border-radius: 0;
  background: #fff;
  color: #242625;
  font: inherit;
}

/* Keep both custom quantity controls visible despite WooCommerce button rules. */
.cart_page .e-quantity-controls {
  display: inline-flex;
  width: 95px;
  min-width: 95px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.cart_page .e-quantity-controls .quantity-btn {
  display: inline-flex;
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  box-sizing: border-box;
}

.cart_page .e-quantity-controls .quantity-btn svg {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
}

.cart_page .e-quantity-controls .quantity-plus {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  overflow: visible;
}

.cart_page .e-quantity-controls .quantity-plus svg {
  display: none !important;
}

.cart_page .e-quantity-controls .quantity-plus::before {
  content: '+';
  display: block;
  color: #fff;
  font: 400 16px/1 Arial, sans-serif;
}

.cart_page .e-quantity-controls .e-quantity-input {
  flex: 0 0 35px;
  width: 35px;
  min-width: 35px;
  padding: 0;
  box-sizing: border-box;
}

.cart_page .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart_page .coupon .input-text {
  min-width: 190px;
}

.cart_page .cart-collaterals {
  width: min(100%, 520px);
  margin-left: auto;
}

.cart_page .cart_totals {
  float: none;
  width: 100%;
  padding: 28px;
  border: 1px solid #dedbd6;
  background: #f7f6f3;
}

.cart_page .woocommerce .cart-collaterals .cart_totals,
.cart_page .woocommerce-page .cart-collaterals .cart_totals {
  float: right;
  width: 100%;
}

.cart_page .cart_totals h2 {
  margin: 0 0 20px;
  color: #242625;
  font-size: 24px;
  font-weight: 400;
}

.cart_page .cart_totals table.shop_table th,
.cart_page .cart_totals table.shop_table td {
  padding: 14px 0;
  border-bottom: 1px solid #dedbd6;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.cart_page .cart_totals .wc-proceed-to-checkout {
  padding: 22px 0 0;
}

.cart_page .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  margin: 0;
}

.cart_page .cart_totals .proceed-to-button a.main_btn {
  display: flex !important;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 15px 20px;
  border: 1px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #000 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.cart_page .cart_totals .proceed-to-button a.main_btn::after {
  content: '→';
  color: #000;
  font-size: 18px;
}

.cart_page .cart_totals .proceed-to-button a.main_btn:hover {
  border: 1px solid #000;
  background: #000;
  color: #fff !important;
  transform: translateY(-1px);
}

.cart_page .cart_totals .proceed-to-button a.main_btn:hover::after {
  color: #fff;
}

.cart_page .cart_totals .proceed-to-button {
  margin-top: 30px;
}

@media (max-width: 820px) {
  .cart_page > .wrap {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .cart_page .cart-empty {
    padding: 30px 20px;
  }

  .cart_page .woocommerce-cart-form {
    margin-bottom: 32px;
  }

  .cart_page .woocommerce table.shop_table_responsive tr td {
    padding: 14px 10px;
  }

  .cart_page .cart-collaterals {
    width: 100%;
  }

  .cart_page .cart_totals {
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {
  .cart_page .return-to-shop .main_btn,
  .cart_page .woocommerce a.button,
  .cart_page .woocommerce button.button,
  .cart_page .woocommerce input.button {
    width: 100%;
  }

  .cart_page .coupon .input-text {
    width: 100%;
  }
}

/* Keep the cart form and totals in a single column on tablet and mobile. */
@media (max-width: 820px) {
  body.woocommerce-cart .cart_page .woocommerce-cart-form {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 28px;
  }

  body.woocommerce-cart .cart_page .cart-collaterals {
    clear: both;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
  }

  body.woocommerce-cart .cart_page .cart-collaterals .cart_totals,
  body.woocommerce-cart .cart_page .woocommerce .cart-collaterals .cart_totals,
  body.woocommerce-cart .cart_page .woocommerce-page .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.woocommerce-cart .cart_page table.shop_table {
    width: 100%;
    table-layout: auto;
  }
}

@media (max-width: 480px) {
  body.woocommerce-cart .cart_page > .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.woocommerce-cart .cart_page .cart_totals {
    padding: 20px 16px;
  }

  body.woocommerce-cart .cart_page .woocommerce table.shop_table_responsive tr td {
    padding: 11px 8px;
  }

  body.woocommerce-cart .cart_page .product-thumbnail img {
    width: 64px;
  }

  body.woocommerce-cart .cart_page .cart_totals .proceed-to-button {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .cart_page .e-quantity-controls {
    width: 110px;
    min-width: 110px;
  }

  .cart_page .e-quantity-controls .quantity-btn {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .cart_page .e-quantity-controls .quantity-plus {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .cart_page .e-quantity-controls .e-quantity-input {
    flex-basis: 32px;
    width: 32px;
    min-width: 32px;
  }
}

/* Replace blue accents with black on the English cart page. */
body.woocommerce-cart .cart_page table.shop_table thead th {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

body.woocommerce-cart .cart_page .e-quantity-controls .quantity-btn,
body.woocommerce-cart .cart_page .e-quantity-controls .quantity-btn:hover,
body.woocommerce-cart .cart_page .e-quantity-controls .quantity-btn:focus,
body.woocommerce-cart .cart_page .coupon button,
body.woocommerce-cart .cart_page .coupon .button,
body.woocommerce-cart .cart_page .coupon input.button {
  border-color: #000 !important;
  background: #000 !important;
  color: #fff !important;
}

body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn,
body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn:hover {
  border-color: #000 !important;
}

body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn {
  background: #fff !important;
  color: #000 !important;
}

body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn::after {
  color: #000 !important;
}

body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn:hover,
body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn:focus-visible {
  background: #000 !important;
  color: #fff !important;
}

body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn:hover::after,
body.woocommerce-cart .cart_page .cart_totals .proceed-to-button a.main_btn:focus-visible::after {
  color: #fff !important;
}

/* Coupon Apply button, including cart markup outside the custom cart wrapper. */
body.woocommerce-cart .coupon button,
body.woocommerce-cart .coupon .button,
body.woocommerce-cart .coupon input[type=submit],
body.woocommerce-cart .woocommerce-cart-form .coupon .button,
body.woocommerce-cart .woocommerce-cart-form .coupon button {
  border-color: #000 !important;
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

body.woocommerce-cart .coupon button:hover,
body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart .coupon input[type=submit]:hover,
body.woocommerce-cart .coupon button:focus,
body.woocommerce-cart .coupon .button:focus,
body.woocommerce-cart .coupon input[type=submit]:focus {
  border-color: #000 !important;
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
}

/* Cart promo code apply button. */
body.woocommerce-cart .promo-apply-btn {
  width: 105px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #000000 !important;
  color: white !important;
  border: none !important;
  border-radius: 300px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  right: 6px;
  top: 6px;
  position: absolute;
}

/* Cart table header row. */
body.woocommerce-cart .cart-header-row {
  background: #656565;
  padding: 10px 10px;
  border-radius: 6px;
}

body.woocommerce-cart .cart-header-row th,
body.woocommerce-cart .cart-header-row td {
  background: #656565 !important;
  color: #fff !important;
}

body.woocommerce-cart .promo-apply-btn:hover {
  background: #4b4b4b !important;
  color: #fff !important;
}

body.woocommerce-cart .e-cart-container {
  padding: 60px 0 0;
}


/* Stack the cart table and totals before tablet widths squeeze the columns. */
@media (max-width: 1024px) {
  body.woocommerce-cart .cart-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 32px !important;
    width: 100%;
  }

  body.woocommerce-cart .cart-container .cart-left-section,
  body.woocommerce-cart .cart-container .cart-collaterals {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-left: 0 !important;
  }

  body.woocommerce-cart .cart-container .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .cart-container {
    gap: 24px !important;
  }

  body.woocommerce-cart .cart-container .cart-collaterals {
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
  }
}

/* Align responsive cart items left and pin the remove control at top right. */
@media (max-width: 1024px) {
  body.woocommerce-cart .cart-item-inside {
    position: relative;
  }

  body.woocommerce-cart .cart-product-info {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart .cart-product-details {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart .product-column,
  body.woocommerce-cart .description-column {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart .price-column,
  body.woocommerce-cart .qty-column,
  body.woocommerce-cart .total-column {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.woocommerce-cart .cart-item-inside .remove-column {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex !important;
    width: auto !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .cart-item-inside {
    padding: 48px 12px 18px !important;
  }

  body.woocommerce-cart .cart-item-inside .cart-product-info {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
  }

  body.woocommerce-cart .cart-item-inside .cart-product-image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}

/* Hide the duplicate product description column in the cart. */
body.woocommerce-cart .cart-header-row-inside > div:nth-child(2),
body.woocommerce-cart .cart-item-inside > .description-column {
  display: none !important;
}

body.woocommerce-cart .cart-header-row-inside,
body.woocommerce-cart .cart-item-inside {
  grid-template-columns: minmax(0, 2.3fr) minmax(72px, .9fr) minmax(90px, 1fr) minmax(90px, 1fr) 32px !important;
}

/* Improve product title and quantity spacing on responsive cart rows. */
@media (max-width: 767px) {
  body.woocommerce-cart .cart-item-inside .cart-product-info {
    align-items: center !important;
  }

  body.woocommerce-cart .cart-item-inside .cart-product-details {
    justify-content: center;
  }

  body.woocommerce-cart .cart-item-inside .cart-product-details h4,
  body.woocommerce-cart .cart-item-inside .cart-product-details a {
    font-size: 17px;
    line-height: 1.35;
  }

  body.woocommerce-cart .cart-item-inside .qty-column {
    margin-top: 12px !important;
  }
}

@media (max-width: 1024px) {
  body.woocommerce-cart .e-cart-container {
    padding: 0 0 0;
  }
}

/* Expand the footer newsletter form across the available mobile width. */
@media (max-width: 767px) {
  body.woocommerce-cart .footer_newsletter_form,
  body.woocommerce-cart .footer_newsletter_form .wpcf7,
  body.woocommerce-cart .footer_newsletter_form .wpcf7-form,
  body.woocommerce-cart .footer_newsletter_form .wpcf7-form > p {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  body.woocommerce-cart .footer_newsletter_form .footer_newsletter_field,
  body.woocommerce-cart .footer_newsletter_form input[type=email] {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
}

@media (max-width: 1023.98px) {
  body.woocommerce-cart .e-cart-container,
  body.woocommerce-cart .cart_page > .wrap,
  body.woocommerce-cart .cart-container,
  body.woocommerce-cart .woocommerce-cart-form {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  body.woocommerce-cart .cart-header-row {
    margin-top: 0 !important;
  }
}
