body.woocommerce-cart #page-default {
  align-items: flex-start;
  padding-top: 42px;
  padding-bottom: 70px;
}

body.woocommerce-cart #page-default > .post-content {
  flex: 0 0 auto !important;
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: none !important;
}

body.woocommerce-cart #page-default .title {
  padding: 0 0 30px;
}

body.woocommerce-cart #page-default .title h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

body.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, .75fr);
  gap: 32px;
  align-items: start;
  font-size: 16px;
}

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

body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:not(:empty),
body.woocommerce-cart .woocommerce > .woocommerce-message,
body.woocommerce-cart .woocommerce > .woocommerce-error,
body.woocommerce-cart .woocommerce > .woocommerce-info,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .return-to-shop {
  grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:empty {
  display: none;
}

body.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  width: 100%;
}

body.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-cart .cart_totals {
  position: sticky;
  top: 100px;
  float: none !important;
  width: 100% !important;
  padding: 26px;
  border: 1px solid #e7e7e7;
  border-radius: 22px;
  background: #f7f7f7;
}

body.woocommerce-cart .cart_totals > h2 {
  margin: 0 0 20px;
  font-size: 0;
}

body.woocommerce-cart .cart_totals > h2::after {
  content: "Ваш заказ";
  color: #111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

body.woocommerce-cart table.shop_table {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

body.woocommerce-cart table.shop_table th {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #ededed;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td {
  padding: 18px 15px;
  border: 0;
  border-bottom: 1px solid #ededed;
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table tr:last-child td {
  border-bottom: 0;
}

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

body.woocommerce-cart td.product-thumbnail img {
  width: 70px;
  height: 70px;
  padding: 6px;
  border-radius: 14px;
  background: #f6f6f6;
  object-fit: contain;
}

body.woocommerce-cart td.product-name a {
  color: #111;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart dl.variation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 8px 0 0;
  color: #777;
  font-size: 13px;
}

body.woocommerce-cart dl.variation dt,
body.woocommerce-cart dl.variation dd,
body.woocommerce-cart dl.variation p {
  float: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart td.product-remove {
  width: 35px;
  padding-right: 3px;
}

body.woocommerce-cart td.product-remove a.remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #dfdfdf;
  border-radius: 50%;
  color: #666 !important;
  background: #fff !important;
  font-size: 20px;
  font-weight: 400;
}

body.woocommerce-cart .quantity .qty {
  width: 62px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 11px;
  background: #f7f7f7;
  color: #111;
  font-weight: 600;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
  white-space: nowrap;
  color: #111;
  font-weight: 650;
}

body.woocommerce-cart td.actions {
  padding: 13px 15px !important;
  background: #fafafa;
}

body.woocommerce-cart td.actions .button {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #d8d8d8;
  border-radius: 11px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

body.woocommerce-cart .cart_totals table.shop_table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 13px 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  width: 34%;
  color: #555;
  font-weight: 550;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  color: #111;
  text-align: right;
}

body.woocommerce-cart .woocommerce-shipping-totals > th {
  display: none;
}

body.woocommerce-cart .woocommerce-shipping-totals > td {
  display: block;
  width: 100%;
  padding: 16px 0 !important;
  text-align: left !important;
}

body.woocommerce-cart ul#shipping_method {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  text-align: left;
}

body.woocommerce-cart ul#shipping_method li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfdfdf;
  border-radius: 13px;
  background: #fff;
}

body.woocommerce-cart ul#shipping_method input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #111;
}

body.woocommerce-cart ul#shipping_method label {
  margin: 0;
  cursor: pointer;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-methods + p {
  margin: 10px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  padding-top: 17px;
  border-bottom: 0;
  color: #111;
  font-size: 20px;
  font-weight: 750;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 18px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout::after {
  display: block;
  margin: 12px 4px 0;
  color: #707070;
  content: "Менеджер подтвердит наличие и финальную стоимость.";
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: none !important;
}

body.woocommerce-cart .cart-empty.woocommerce-info {
  padding: 25px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #f7f7f7;
  color: #111;
}

@media (max-width: 959px) {
  body.woocommerce-cart #page-default {
    padding-top: 28px;
    padding-bottom: 55px;
  }

  body.woocommerce-cart #page-default > .post-content {
    width: min(100% - 28px, 720px) !important;
  }

  body.woocommerce-cart #page-default .title {
    padding-bottom: 22px;
  }

  body.woocommerce-cart #page-default .title h1 {
    font-size: 40px;
  }

  body.woocommerce-cart .woocommerce {
    display: block;
  }

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

  body.woocommerce-cart .cart_totals {
    position: static;
    padding: 21px;
  }
}

@media (max-width: 600px) {
  body.woocommerce-cart #page-default .title h1 {
    font-size: 35px;
  }

  body.woocommerce-cart table.shop_table_responsive {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  body.woocommerce-cart table.shop_table_responsive thead {
    display: none;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative;
    display: block;
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 17px;
    background: #fff;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
    position: absolute;
    top: 11px;
    right: 11px;
    display: block;
    width: 30px;
    padding: 0;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
    display: block;
    width: 86px;
    padding: 0 0 9px;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
    display: block;
    padding: 0 37px 11px 0;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove::before,
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail::before,
  body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name::before {
    display: none;
  }

  body.woocommerce-cart table.shop_table_responsive td.actions {
    display: block;
    padding: 11px !important;
    border: 1px solid #e7e7e7;
    border-radius: 13px;
  }

  body.woocommerce-cart td.actions .button {
    width: 100%;
  }

  body.woocommerce-cart .cart_totals {
    padding: 18px;
    border-radius: 18px;
  }

  body.woocommerce-cart .cart_totals > h2::after {
    font-size: 24px;
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    min-height: 56px;
    font-size: 17px !important;
  }
}

/* StoreDima cart totals layout fix 1.0.2 */
body.woocommerce-cart .cart_totals > h2 {
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body.woocommerce-cart .cart_totals > h2::after {
  display: block !important;
  color: #111 !important;
  content: "Ваш заказ" !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-indent: 0 !important;
}

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

body.woocommerce-cart .cart_totals table.shop_table tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100% !important;
  align-items: center !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  display: block !important;
  width: auto !important;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals {
  display: block !important;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > th {
  display: none !important;
}

body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method {
  width: 100% !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method li {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method label {
  width: 100% !important;
  overflow-wrap: anywhere;
}
