/* =========================
   ALYNORE CART ONLY
   ========================= */

body.woocommerce-cart {
  background: var(--alyn-bg);
  color: var(--alyn-text);
}

body.woocommerce-cart .site-main {
  max-width: var(--alyn-container);
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 84px;
}

body.woocommerce-cart .entry-header,
body.woocommerce-cart .page-header,
body.woocommerce-cart .page-title {
  display: none !important;
}

body.woocommerce-cart .woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 26px;
}

body.woocommerce-cart .woocommerce::before,
body.woocommerce-cart .woocommerce::after {
  display: none !important;
}

/* =========================
   CART TABLE
   ========================= */

body.woocommerce-cart table.shop_table {
  width: 100%;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
  background: transparent !important;
  margin: 0 0 10px !important;
}

body.woocommerce-cart table.shop_table thead th {
  padding: 0 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--alyn-text-muted);
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

body.woocommerce-cart table.shop_table thead th.product-remove,
body.woocommerce-cart table.shop_table thead th.product-thumbnail {
  color: transparent !important;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item {
  background: rgba(255, 253, 249, 0.92) !important;
  box-shadow: 0 18px 50px rgba(64, 42, 20, 0.05) !important;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item td {
  padding: 18px 14px !important;
  border: 0 !important;
  background: rgba(255, 253, 249, 0.92) !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item td:first-child {
  border-top-left-radius: 24px !important;
  border-bottom-left-radius: 24px !important;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item td:last-child {
  border-top-right-radius: 24px !important;
  border-bottom-right-radius: 24px !important;
}

/* =========================
   REMOVE
   ========================= */

body.woocommerce-cart td.product-remove {
  width: 46px !important;
  text-align: center !important;
}

body.woocommerce-cart a.remove {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #f3e9dc !important;
  color: #947a5e !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease !important;
}

body.woocommerce-cart a.remove:hover {
  background: #e8d8c4 !important;
  color: var(--alyn-text) !important;
  transform: translateY(-1px) !important;
}

/* =========================
   THUMBNAIL
   ========================= */

body.woocommerce-cart td.product-thumbnail {
  width: 88px !important;
  min-width: 88px !important;
}

body.woocommerce-cart td.product-thumbnail img {
  width: 68px !important;
  max-width: 68px !important;
  border-radius: 16px !important;
  border: 1px solid var(--alyn-line) !important;
  background: #fffdf9 !important;
  padding: 4px !important;
}

/* =========================
   PRODUCT NAME / META
   ========================= */

body.woocommerce-cart td.product-name a {
  color: var(--alyn-text) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 22px !important;
  line-height: 1.06 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  text-decoration: none !important;
}

body.woocommerce-cart td.product-name a:hover {
  color: #8c6e4b !important;
}

body.woocommerce-cart td.product-name,
body.woocommerce-cart td.product-name p,
body.woocommerce-cart td.product-name dl,
body.woocommerce-cart td.product-name .variation,
body.woocommerce-cart td.product-name .wc-item-meta {
  color: #85786d !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
}

body.woocommerce-cart td.product-name dl.variation {
  margin-top: 6px !important;
}

/* =========================
   PRICE
   ========================= */

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-price .amount,
body.woocommerce-cart td.product-subtotal,
body.woocommerce-cart td.product-subtotal .amount {
  color: #8a7252 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
}

/* =========================
   QUANTITY
   ========================= */

body.woocommerce-cart td.product-quantity {
  min-width: 144px !important;
}

body.woocommerce-cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  border: 1px solid #e2d6c8 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #f6efe7 !important;
}

body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus {
  width: 34px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #8f775b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.woocommerce-cart .quantity .minus:hover,
body.woocommerce-cart .quantity .plus:hover {
  background: #ede2d5 !important;
  color: var(--alyn-text) !important;
}

body.woocommerce-cart .quantity input.qty {
  width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--alyn-text) !important;
  text-align: center !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

body.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* =========================
   ACTIONS / COUPON
   ========================= */

body.woocommerce-cart td.actions {
  padding: 12px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-cart .coupon {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

body.woocommerce-cart .coupon label {
  display: none !important;
}

body.woocommerce-cart .coupon input.input-text,
body.woocommerce-cart #coupon_code,
body.woocommerce-cart input[name="coupon_code"] {
  min-width: 230px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid #dfd1bf !important;
  background: #fbf7f1 !important;
  color: var(--alyn-text) !important;
  padding: 0 18px !important;
  box-shadow: none !important;
}

body.woocommerce-cart .coupon input.input-text::placeholder,
body.woocommerce-cart #coupon_code::placeholder,
body.woocommerce-cart input[name="coupon_code"]::placeholder {
  color: #aa9b8b !important;
}

body.woocommerce-cart .coupon .button,
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="update_cart"] {
  min-width: 132px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid #e6dacb !important;
  background: #f2e8db !important;
  color: #8a7252 !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: all 0.22s ease !important;
}

body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="update_cart"]:hover {
  background: #e7d8c5 !important;
  color: var(--alyn-text) !important;
  border-color: #dcc8af !important;
}

body.woocommerce-cart button[name="update_cart"] {
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* =========================
   CART TOTALS
   ========================= */

body.woocommerce-cart .cart-collaterals {
  margin-top: 18px !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 416px !important;
  margin: 0 0 0 auto !important;
  padding: 30px 28px 26px !important;
  border: 1px solid var(--alyn-line) !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1e8 100%) !important;
  box-shadow: 0 18px 50px rgba(64, 42, 20, 0.06) !important;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 16px !important;
  color: #9d866a !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

body.woocommerce-cart .cart_totals table.shop_table {
  border: 0 !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr {
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 13px 0 !important;
  border-top: 1px solid var(--alyn-line) !important;
  background: transparent !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr:first-child th,
body.woocommerce-cart .cart_totals table.shop_table tr:first-child td {
  border-top: 0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  color: #4f473f !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right !important;
}

body.woocommerce-cart .cart_totals .amount {
  color: var(--alyn-text) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 18px !important;
  padding-bottom: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 999px !important;
  border: 1px solid #1d1713 !important;
  background: #d1b07d !important;
  color: #1f1713 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #c5a16d !important;
  color: #1f1713 !important;
}

/* =========================
   RESPONSIVE
   ========================= */

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

@media (max-width: 767px) {
  body.woocommerce-cart .site-main {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  body.woocommerce-cart .woocommerce {
    padding: 0 16px;
  }

  body.woocommerce-cart table.shop_table {
    border-spacing: 0 10px !important;
  }

  body.woocommerce-cart table.shop_table thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table,
  body.woocommerce-cart table.shop_table tbody,
  body.woocommerce-cart table.shop_table tr,
  body.woocommerce-cart table.shop_table td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table tbody tr.cart_item {
    position: relative !important;
    padding: 16px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  body.woocommerce-cart table.shop_table tbody tr.cart_item td {
    padding: 0 !important;
    background: transparent !important;
  }

  body.woocommerce-cart td.product-remove {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: auto !important;
  }

  body.woocommerce-cart td.product-thumbnail {
    float: left !important;
    width: 84px !important;
    min-width: 84px !important;
    margin-right: 12px !important;
  }

  body.woocommerce-cart td.product-thumbnail img {
    width: 66px !important;
    max-width: 66px !important;
  }

  body.woocommerce-cart td.product-name {
    overflow: hidden !important;
    padding-right: 40px !important;
  }

  body.woocommerce-cart td.product-price,
  body.woocommerce-cart td.product-subtotal {
    display: inline-block !important;
    width: auto !important;
    margin-top: 8px !important;
    margin-right: 12px !important;
  }

  body.woocommerce-cart td.product-quantity {
    clear: both !important;
    margin-top: 14px !important;
  }

  body.woocommerce-cart .coupon {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-cart .coupon input.input-text,
  body.woocommerce-cart #coupon_code,
  body.woocommerce-cart input[name="coupon_code"],
  body.woocommerce-cart .coupon .button,
  body.woocommerce-cart button[name="apply_coupon"] {
    width: 100% !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    max-width: 100% !important;
    margin-top: 20px !important;
    border-radius: 24px !important;
    padding: 22px 18px !important;
  }
}
