body.woocommerce-cart,
body.woocommerce-cart #main,
body.woocommerce-cart .page-wrapper,
body.woocommerce-cart .cart-container {
  background: #f4f5f7 !important;
}

body.woocommerce-cart .checkout-page-title {
  display: none !important;
}

body.woocommerce-cart .cart-container {
  max-width: var(--dgp-site-max-width, 1300px) !important;
  padding: 22px 15px 48px !important;
}

.dgp-reference-cart,
.dgp-reference-cart * {
  box-sizing: border-box;
}

.dgp-reference-cart {
  color: #111827;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
}

.dgp-reference-cart__title {
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
  text-align: center;
}

body.woocommerce-cart #main .dgp-reference-cart__title h1 {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-size: 38px !important;
  font-weight: 700 !important;
  gap: 11px;
  letter-spacing: -1.2px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  text-transform: none !important;
  width: auto !important;
}

.dgp-reference-cart__title i {
  color: #9b744b;
  font-size: 30px;
}

.dgp-reference-cart__top {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 280px;
}

.dgp-reference-cart__items,
.dgp-reference-cart__items table {
  margin: 0;
}

.dgp-reference-cart__items .shop_table {
  background: transparent;
  border: 0;
  table-layout: fixed;
  width: 100%;
}

.dgp-reference-cart__items .shop_table th,
.dgp-reference-cart__items .shop_table td {
  border-bottom: 1px solid #e2e5e9;
  color: #111827;
  padding: 13px 10px;
  text-transform: none;
}

.dgp-reference-cart__items .shop_table th {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.dgp-reference-cart__items .shop_table td {
  font-size: 14px;
  vertical-align: middle;
}

.dgp-reference-cart__items .product-thumbnail {
  padding-left: 12px !important;
  width: 77px;
}

.dgp-reference-cart__items .product-thumbnail img {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 7px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.dgp-reference-cart__items .product-name {
  width: auto;
}

.dgp-reference-cart__items td.product-name > a {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.dgp-reference-cart__items .variation {
  color: #526071;
  display: grid;
  font-size: 12px;
  gap: 1px 5px;
  grid-template-columns: max-content 1fr;
  line-height: 1.35;
  margin: 5px 0 0;
}

.dgp-reference-cart__items .variation dt,
.dgp-reference-cart__items .variation dd,
.dgp-reference-cart__items .variation p {
  float: none;
  margin: 0;
  padding: 0;
}

.dgp-reference-cart__items .product-price {
  white-space: nowrap;
  width: 122px;
}

.dgp-reference-cart__items .product-quantity {
  text-align: center;
  width: 86px;
}

.dgp-reference-cart__items .product-subtotal {
  font-weight: 500;
  white-space: nowrap;
  width: 128px;
}

.dgp-reference-cart__items .product-remove {
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
  width: 44px;
}

.dgp-reference-cart__items .product-remove .remove {
  align-items: center;
  background: transparent;
  border: 0;
  color: #ff3028;
  display: inline-flex;
  font-size: 15px;
  height: 34px;
  justify-content: center;
  margin: 0;
  width: 34px;
}

.dgp-reference-cart__items .product-remove .remove:hover,
.dgp-reference-cart__items .product-remove .remove:focus-visible {
  background: #ffebe9;
  color: #d5221b;
}

.dgp-reference-cart__items .quantity {
  display: inline-flex;
  margin: 0;
}

.dgp-reference-cart__items .quantity input[type="number"] {
  background: #f8fafc;
  border: 1px solid #dce1e7;
  border-radius: 6px;
  box-shadow: none;
  font-size: 14px;
  height: 38px;
  max-width: 72px;
  padding: 0 8px;
  text-align: center;
}

.dgp-reference-cart__items .quantity .button {
  display: none;
}

.dgp-reference-cart__actions td {
  border: 0 !important;
  padding: 11px 0 0 !important;
  text-align: right;
}

.dgp-reference-cart__actions .button {
  background: #818cc8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  min-height: 36px;
  padding: 0 16px;
  text-transform: none;
}

body.dgp-reference-cart-ready .dgp-reference-cart__actions {
  display: none;
}

.dgp-reference-cart__summary {
  display: grid;
  gap: 14px;
}

.dgp-reference-cart__showroom {
  background: #f4f5f7;
  border: 1px solid #e1e4e8;
  border-radius: 9px;
  padding: 18px 20px;
}

body.woocommerce-cart #main .dgp-reference-cart__showroom h2 {
  color: #111827;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  margin: 0 0 9px !important;
  text-transform: none !important;
}

.dgp-reference-cart__showroom > p {
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.dgp-reference-cart__locations {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dgp-reference-cart__locations li {
  align-items: start;
  border-top: 1px solid #e1e4e8;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
}

.dgp-reference-cart__locations li,
.dgp-reference-cart__locations a {
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
}

.dgp-reference-cart__locations a {
  color: #293992;
  flex: 0 0 auto;
  font-weight: 600;
  text-decoration: underline;
}

.dgp-reference-cart__shop-link {
  align-items: center;
  background: #293992;
  border-radius: 6px;
  color: #fff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  margin-top: 8px;
  min-height: 40px;
  padding: 0 14px;
}

.dgp-reference-cart__shop-link:hover,
.dgp-reference-cart__shop-link:focus-visible {
  background: #1d2b73;
  color: #fff !important;
}

.dgp-reference-cart__contact-price {
  color: #8b5e34;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}

@media (max-width: 1100px) {
  .dgp-reference-cart__top {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .dgp-reference-cart__items .product-price {
    width: 112px;
  }
}

@media (max-width: 849px) {
  body.woocommerce-cart .cart-container {
    padding-bottom: 36px !important;
    padding-top: 18px !important;
  }

  body.woocommerce-cart #main .dgp-reference-cart__title h1 {
    font-size: 30px !important;
  }

  .dgp-reference-cart__title {
    margin-bottom: 22px;
  }

  .dgp-reference-cart__top {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dgp-reference-cart__summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 649px) {
  body.woocommerce-cart .cart-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .dgp-reference-cart__items .shop_table thead {
    display: none;
  }

  .dgp-reference-cart__items .shop_table tbody,
  .dgp-reference-cart__items .shop_table tr,
  .dgp-reference-cart__items .shop_table td {
    display: block;
  }

  .dgp-reference-cart__items .shop_table tr.cart_item {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    display: grid;
    gap: 4px 10px;
    grid-template-columns: 74px minmax(0, 1fr) 34px;
    margin-bottom: 12px;
    padding: 11px;
  }

  .dgp-reference-cart__items .shop_table tr.cart_item td {
    border: 0;
    padding: 0 !important;
    text-align: left;
    width: auto;
  }

  .dgp-reference-cart__items .shop_table tr.cart_item td::before {
    display: none;
  }

  .dgp-reference-cart__items .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .dgp-reference-cart__items .product-thumbnail img {
    height: 74px;
    width: 74px;
  }

  .dgp-reference-cart__items .product-name {
    grid-column: 2;
    grid-row: 1;
  }

  .dgp-reference-cart__items .variation {
    display: none;
  }

  .dgp-reference-cart__items .product-price {
    color: #667085 !important;
    font-size: 12px !important;
    grid-column: 2;
    grid-row: 2;
  }

  .dgp-reference-cart__items .product-quantity {
    grid-column: 2;
    grid-row: 3;
  }

  .dgp-reference-cart__items .product-subtotal {
    color: #293992 !important;
    grid-column: 2;
    grid-row: 4;
  }

  .dgp-reference-cart__items .product-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .dgp-reference-cart__summary {
    grid-template-columns: 1fr;
  }

  .dgp-reference-cart__showroom {
    padding-left: 15px;
    padding-right: 15px;
  }
}
