/* Ruangday cart: clearer fixed-quantity checkout flow. */
body.woocommerce-cart .elementor-element-commerce-cart {
  --rd-cart-ink: #20201f;
  --rd-cart-muted: #625e58;
  --rd-cart-subtle: #87827a;
  --rd-cart-line: #e8e6e3;
  --rd-cart-surface: #f6f6f4;
  --rd-cart-accent: #f47a32;
  --rd-cart-accent-hover: #e96112;
  --rd-cart-accent-dark: #a7460c;
  color: var(--rd-cart-ink);
  font-family: Pretendard, sans-serif;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-cart__container {
  align-items: start;
  column-gap: 1.5rem !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-cart__column {
  min-width: 0;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-cart__column-start {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-shop-table.e-cart-section {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0.0625rem solid var(--rd-cart-line) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table thead {
  background: var(--rd-cart-surface);
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table thead th {
  padding: 1rem 0.75rem !important;
  border: 0 !important;
  border-bottom: 0.0625rem solid var(--rd-cart-line) !important;
  color: var(--rd-cart-muted);
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: left;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-remove,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-remove {
  width: 3.25rem;
  padding-left: 1rem !important;
  padding-right: 0 !important;
  text-align: center;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-thumbnail,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-thumbnail {
  width: 5.75rem;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-price,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-price,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-subtotal,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-subtotal {
  width: 7.5rem;
  white-space: nowrap;
}

body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tbody tr.cart_item > td,
body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tbody tr.cart_item > th {
  padding: 1.25rem 0.75rem !important;
  border: 0 !important;
  border-bottom: 0.0625rem solid var(--rd-cart-line) !important;
  vertical-align: middle !important;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-thumbnail img {
  display: block;
  width: 4.5rem !important;
  height: 4.5rem !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 0.5rem;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-name {
  padding-left: 0 !important;
  color: var(--rd-cart-ink);
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-name a {
  color: var(--rd-cart-ink) !important;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-name a:hover {
  color: var(--rd-cart-accent-dark) !important;
  text-decoration: underline;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-price {
  color: var(--rd-cart-muted);
  font-variant-numeric: tabular-nums;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-subtotal {
  color: var(--rd-cart-ink);
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 50%;
  background: var(--rd-cart-surface);
  color: var(--rd-cart-subtle) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.woocommerce-cart .elementor-element-commerce-cart td.product-remove a.remove:hover {
  background: #fff0ee;
  color: #b42318 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart :is(a, button, input):focus-visible {
  outline: 0.1875rem solid var(--rd-cart-accent-dark) !important;
  outline-offset: 0.1875rem;
}

body.rd-cart-fixed-quantity .elementor-element-commerce-cart :is(th.product-quantity, td.product-quantity),
body.rd-cart-fixed-quantity .elementor-element-commerce-cart .woocommerce-cart-form td.actions {
  display: none !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .coupon.e-cart-section {
  margin: -0.0625rem 0 0 !important;
  padding: 1.25rem 2rem !important;
  border: 0.0625rem solid var(--rd-cart-line) !important;
  border-radius: 0 0 0.75rem 0.75rem !important;
  background: var(--rd-cart-surface);
}

body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin: 0 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row::before,
body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .coupon :is(.coupon-col-start, .coupon-col-end) {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row > .coupon-col-start,
html body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row > .coupon-col-end {
  width: 100% !important;
}

body.woocommerce-cart .elementor-element-commerce-cart #coupon_code {
  width: 100% !important;
  height: 3.25rem !important;
  min-height: 3.25rem !important;
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  border: 0.0625rem solid var(--rd-cart-subtle) !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  color: var(--rd-cart-ink) !important;
  font: 400 1rem/1.4 Pretendard, sans-serif !important;
}

body.woocommerce-cart .elementor-element-commerce-cart #coupon_code::placeholder {
  color: var(--rd-cart-muted);
  opacity: 1;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-apply-coupon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 8.5rem;
  height: 3.25rem !important;
  min-height: 3.25rem !important;
  margin: 0 !important;
  padding: 0.75rem 1.25rem !important;
  border: 0.0625rem solid var(--rd-cart-ink) !important;
  border-radius: 0.5rem !important;
  background: transparent !important;
  color: var(--rd-cart-ink) !important;
  font: 600 1rem/1.4 Pretendard, sans-serif !important;
}

html body.woocommerce-cart .elementor-element-commerce-cart .coupon .coupon-col-end .e-apply-coupon {
  width: 100% !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-apply-coupon:hover {
  background: var(--rd-cart-ink) !important;
  color: #fff !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-cart__column-inner {
  top: 7rem;
}

body.woocommerce-cart .elementor-element-commerce-cart .e-cart-totals.e-cart-section {
  padding: 2rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: var(--rd-cart-surface);
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals h2 {
  margin: 0 0 1.5rem !important;
  color: var(--rd-cart-ink) !important;
  font: 700 1.25rem/1.4 Paperlogy, sans-serif !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals table th,
body.woocommerce-cart .elementor-element-commerce-cart .cart_totals table td {
  padding: 1rem 0 !important;
  border: 0 !important;
  color: var(--rd-cart-muted) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals tr + tr :is(th, td) {
  border-top: 0.0625rem solid var(--rd-cart-line) !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals .order-total :is(th, td) {
  padding-top: 1.25rem !important;
  color: var(--rd-cart-ink) !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .cart_totals .order-total .amount {
  font-size: 1.25rem !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .wc-proceed-to-checkout {
  padding: 1.5rem 0 0 !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  margin: 0 !important;
  padding: 0.875rem 1.25rem !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: var(--rd-cart-accent) !important;
  color: var(--rd-cart-ink) !important;
  font: 700 1rem/1.4 Pretendard, sans-serif !important;
  text-decoration: none !important;
}

body.woocommerce-cart .elementor-element-commerce-cart .checkout-button:hover {
  background: var(--rd-cart-accent-hover) !important;
  color: var(--rd-cart-ink) !important;
}

body.woocommerce-cart ::selection {
  background: #ffe0c2;
  color: var(--rd-cart-ink);
}

@media (max-width: 64rem) {
  body.woocommerce-cart .elementor-element-commerce-cart .e-cart__container {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr) !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-price,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-price,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table th.product-subtotal,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-subtotal {
    width: 6.75rem;
  }
}

@media (max-width: 47.9375rem) {
  body.woocommerce-cart .elementor-element-commerce-cart .e-cart__container {
    display: block !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .e-cart__column-end {
    margin-top: 1.25rem !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .e-shop-table.e-cart-section {
    border-radius: 0.75rem 0.75rem 0 0 !important;
  }

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

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tbody,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item {
    display: block !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item {
    position: relative;
    min-height: 7rem;
    padding: 1rem 1rem 1rem 7rem;
    border-bottom: 0.0625rem solid var(--rd-cart-line);
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > th {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td::before,
  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > th::before {
    content: none !important;
    display: none !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-thumbnail {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  body.woocommerce-cart .elementor-element-commerce-cart td.product-thumbnail img {
    width: 5rem !important;
    height: 5rem !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-name {
    min-height: 3rem;
    padding-right: 2rem !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-price {
    display: none !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart table.shop_table td.product-subtotal {
    margin-top: 0.375rem;
    font-size: 1rem !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .coupon.e-cart-section {
    padding: 1rem !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .coupon .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.625rem;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .e-apply-coupon {
    width: 100% !important;
  }

  body.woocommerce-cart .elementor-element-commerce-cart .e-cart-totals.e-cart-section {
    padding: 1.5rem !important;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.woocommerce-cart-form__cart-item.cart_item {
    display: grid !important;
    grid-template-columns: 5rem minmax(0, 1fr) 2rem;
    grid-template-areas:
      "thumbnail name remove"
      "thumbnail subtotal remove";
    column-gap: 0.75rem;
    row-gap: 0.375rem;
    min-height: 0;
    padding: 1rem !important;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-thumbnail {
    grid-area: thumbnail;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-name {
    grid-area: name;
    align-self: end;
    min-height: 0;
    padding-right: 0 !important;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-subtotal {
    grid-area: subtotal;
    align-self: start;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-remove {
    grid-area: remove;
    align-self: center;
  }

  html body.woocommerce-cart .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-price,
  html body.rd-cart-fixed-quantity .elementor-element-commerce-cart table.shop_table tr.cart_item > td.product-quantity {
    display: none !important;
  }

  body.woocommerce-cart .dk-wrap {
    display: none !important;
  }
}
