.cart-layout {
  display: flex;
  column-gap: 60px;
}

.cart-layout__main {
  flex-grow: 1;
  min-width: 1px;
}

.cart-layout__aside {
  width: 370px;
  flex-shrink: 0;
}

.cart-item {
  font-size: 14px;
  line-height: 1.2;
  border-radius: 20px;
  padding: 10px 0;
  margin-bottom: 10px;
  transition: background 0.15s ease-in-out;
}

:where(html.no-touch) .cart-item:hover,
:where(html.is-touch) .cart-item:active {
  background: var(--grey-light);
}

.cart-item__row {
  display: flex;
  align-items: center;
}

.cart-item__col {
  padding: 0 10px;
}

.cart-item__image-col {
  width: 146px;
  flex-shrink: 0;
  align-self: flex-start;
}

.cart-item__image {
  position: relative;
}

.cart-item__image:before {
  content: "";
  display: block;
  padding-top: calc(88 * 100% / 126);
}

.cart-item__image-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-light);
  border-radius: 12px;
  padding: 10px;
}

.cart-item.is-disabled .cart-item__image-wrapper,
.cart-item.is-disabled .cart-item__title {
  opacity: 0.5;
}

.cart-item__image-wrapper img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transition: 0.15s ease-in-out;
}

:where(html.no-touch) .cart-item:hover .cart-item__image-wrapper img,
:where(html.is-touch) .cart-item:active .cart-item__image-wrapper img {
  transform: scale(1.125);
}

.cart-item__image-arrow {
  text-align: right;
}

.cart-item__favorites-btn {
  position: absolute;
  right: 8px;
  top: -7px;
}

.cart-item.in-favorites .cart-item__favorites-btn {
  --fill: var(--red-main-color);
  color: var(--red-main-color);
}

.cart-item__content-col {
  flex-grow: 1;
  min-width: 1px;
}

.cart-item__meta {
  display: flex;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 5px;
}

.cart-item__sku {
  font-size: 12px;
  color: var(--black-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__sticker {
  font-size: 10px;
  line-height: 11px;
  padding: 4px 6px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: bold;
}

.cart-item__title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: normal;
}

.cart-item__title a {
  color: var(--black);
}

:where(html.no-touch) .cart-item__title:hover,
:where(html.is-touch) .cart-item__title:active,
:where(html.no-touch) .cart-item__title a:hover,
:where(html.is-touch) .cart-item__title a:active {
  color: var(--red-main-color);
}

.cart-item__data {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--black-50);
  margin-top: 5px;
}

.cart-item__data-item + .cart-item__data-item {
  padding-left: 9px;
  position: relative;
}

.cart-item__data-item + .cart-item__data-item:before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 0;
  top: 50%;
  margin-top: -2px;
  border-radius: 50%;
  background: currentColor;
}

.cart-item__subtitle {
  margin-top: 8px;
  color: var(--black-50);
}

.cart-item__price-col {
  padding: 0;
}

.cart-item__price-title {
  display: none;
}

.cart-item__price-row {
  display: flex;
  align-items: center;
}

.cart-item__price-value-col {
  width: 140px;
  padding: 0 10px;
  padding-right: 30px;
  text-align: right;
}

.cart-item__price-current {
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
}

.cart-item__price-discount-col {
  width: 120px;
  flex-shrink: 0;
  padding: 0 10px;
  order: -1;
  text-align: center;
}

.cart-item__discount-sticker {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  column-gap: 3px;
  border: none;
  font-size: 14px;
  line-height: 17px;
  padding: 3px 6px;
  font-weight: 500;
}

.cart-item__status-col {
  width: 260px;
  flex-shrink: 0;
  padding: 0 10px;
}

.cart-item__status {
  padding-left: 18px;
  color: var(--black-50);
}

.cart-item__count-col {
  width: 170px;
  flex-shrink: 0;
}

.cart-item__count-static {
  text-align: center;
  color: var(--black-50);
}

.cart-item.has-subitems .cart-item__count-static {
  color: var(--black);
}

.cart-item__total-col {
  text-align: right;
  flex-shrink: 0;
  width: 140px;
  padding-right: 30px;
}

.cart-item__total {
  white-space: nowrap;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.2;
}

.cart-item__remove-col {
  width: 48px;
  flex-shrink: 0;
  padding-right: 20px;
}

.cart-item__remove-btn {
  vertical-align: top;
  width: 18px;
  height: 18px;
  position: relative;
}

.cart-item__remove-btn:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.cart-item.cart-item_sub {
  background: none !important;
  border-radius: 0;
  padding: 0;
  margin-bottom: 10px;
}

.cart-item_sub .cart-item__title {
  padding-left: 20px;
}

.cart-item__add-subitem-btn {
  margin-left: 156px;
  font-weight: normal;
}

.cart-item.cart-item_additional {
  background: none !important;
  border-radius: 0;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 20px;
}

.cart-item_additional .cart-item__image-col {
  align-self: center;
}

.cart-products {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.cart-products__header {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--grey-dark);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  padding-bottom: 10px;
}

.cart-products__header-row {
  display: flex;
}

.cart-products__header-col {
  padding: 0 10px;
}

.cart-products__header-col_title {
  padding-left: 0;
  flex-grow: 1;
  min-width: 1px;
}

.cart-products__header-col_discount {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

.cart-products__header-col_price {
  width: 140px;
  padding-right: 30px;
  text-align: right;
  flex-shrink: 0;
}

.cart-products__header-col_count {
  width: 170px;
  flex-shrink: 0;
  text-align: center;
}

.cart-products__header-col_total {
  width: 140px;
  padding-right: 30px;
  text-align: right;
  flex-shrink: 0;
}

.cart-products__header-col_remove {
  width: 48px;
  flex-shrink: 0;
}

.cart-products__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-products__count {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  display: none;
}

.cart-total__checkout-btn {
  white-space: normal;
  flex-direction: column;
  height: auto;
  line-height: 1.2;
  padding: 13px 0;
}

.cart-add-product {
  border: 2px dashed rgba(30, 30, 30, 0.1);
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 40px;
  position: relative;
}

.cart-add-product.is-drop-hover {
  border-color: var(--red-main-color);
}

.cart-add-product__row {
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.cart-add-product__content-wrapper {
  flex-grow: 1;
  min-width: 1px;
}

.cart-add-product .search-mini__input {
  border-color: transparent !important;
}

.cart-add-product .search-mini__input::placeholder {
  color: var(--black);
}

.cart-add-product .search-mini__btn {
  color: var(--black) !important;
  left: 13px;
}

.cart-add-product__btn-wrapper {
  flex-shrink: 0;
  position: relative;
}

.cart-add-product__file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  clip: rect(0px, 0px, 0px, 0px);
  opacity: 0;
}

.cart-add-product__btn {
  padding-left: 20px;
  padding-right: 20px;
}

.cart-empty {
  text-align: center;
  padding: 50px 0 80px;
}

.cart-empty__title {
  margin-bottom: 20px;
  color: var(--black-50);
}

.cart-empty-add-product {
  padding: 40px 0;
}

.cart-empty-add-product .cart-add-product {
  margin: 0;
}

.cart-login-alert {
  font-size: 16px;
  line-height: 1.5;
  padding: 28px 30px;
  border-radius: 12px;
  background: var(--grey-light);
}

@media (min-width: 768px) {
  .select-length-product .item-row__row {
    column-gap: 20px;
  }

  .select-length-product .item-row__image {
    width: 126px;
  }

  .select-length-product .item-row__sku {
    font-size: 14px;
  }

  .select-length-product .item-row__title {
    font-size: 16px;
  }
}

.select-length-checkboxes {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 1599.98px) {
  .cart-item__remove-col,
  .cart-products__header-col_remove {
    width: 38px;
    padding-right: 10px;
  }

  .cart-item__total-col,
  .cart-item__price-value-col,
  .cart-products__header-col_total,
  .cart-products__header-col_price {
    width: 120px;
    padding-right: 10px;
  }

  .cart-item__count-col,
  .cart-products__header-col_count {
    width: 140px;
  }

  .cart-item__price-discount-col,
  .cart-products__header-col_discount {
    width: 90px;
  }

  .cart-item__status-col {
    width: 210px;
  }

  .cart-item__status {
    padding-left: 0;
  }
}

@media (max-width: 1399.98px) {
  .cart-layout {
    column-gap: 40px;
  }

  .cart-products__header {
    display: none;
  }

  .cart-item {
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid var(--grey-dark);
    border-radius: 0;
    background: var(--white) !important;
  }

  .cart-item__row {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .cart-item__image-col {
    padding-left: 0;
    width: 136px;
  }

  .cart-item__content-col {
    padding-right: 0;
    width: calc(100% - 136px);
    flex-grow: 0;
    flex-shrink: 0;
  }

  .cart-item__title {
    font-size: 16px;
  }

  .cart-item__data {
    margin-top: 10px;
  }

  .cart-item__price-col {
    padding: 0 10px 0 0;
  }

  .cart-item__total-col {
    padding: 0 0 0 10px;
  }

  .cart-item__price-col,
  .cart-item__total-col {
    flex-basis: 0;
    flex-shrink: 1;
    flex-grow: 1;
    min-width: 1px;
  }

  .cart-item__price-title {
    display: block;
    font-size: 12px;
    color: var(--black-50);
    margin-bottom: 3px;
  }

  .cart-item__price-row {
    column-gap: 5px;
  }

  .cart-item__price-value-col {
    width: auto;
    padding: 0;
    text-align: left;
  }

  .cart-item__price-discount-col {
    width: auto;
    padding: 0;
    order: 0;
  }

  .cart-item__price-current,
  .cart-item__total {
    font-size: 16px;
  }

  .cart-item__discount-sticker {
    font-size: 12px;
    line-height: 14px;
    padding: 1px 3px;
  }

  .cart-item__discount-sticker .icon {
    width: 10px;
    height: 10px;
  }

  .cart-item__count-col {
    width: 200px;
  }

  .cart-item__remove-col {
    padding: 0 0 0 20px;
    width: 52px;
  }

  .cart-item__remove-btn {
    width: 32px;
    height: 32px;
  }

  .cart-item__status-col {
    width: auto;
    padding: 0;
  }

  .cart-item__change-btn {
    font-size: 16px;
  }

  .cart-item.has-subitems > .cart-item__row .cart-item__price-col,
  .cart-item.has-subitems > .cart-item__row .cart-item__count-col,
  .cart-item.has-subitems > .cart-item__row .cart-item__total-col,
  .cart-item.has-subitems > .cart-item__row .cart-item__remove-col {
    display: none;
  }

  .cart-item__add-subitem-btn {
    margin-left: 0;
    margin-top: 10px;
  }

  .cart-item__subitems {
    margin-top: 15px;
  }

  .cart-item.cart-item_sub {
    padding: 10px 0;
    margin: 0;
    border: none;
  }

  .cart-item_sub .cart-item__row {
    flex-wrap: nowrap;
  }

  .cart-item_sub .cart-item__image-col {
    display: none;
  }

  .cart-item_sub .cart-item__content-col {
    padding: 0 20px 0 0;
    width: 188px;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .cart-item_sub .cart-item__title {
    padding-left: 0;
    font-size: 14px;
  }

  .cart-item_sub .cart-item__price-current,
  .cart-item_sub .cart-item__total {
    font-size: 14px;
  }

  .cart-item_sub .cart-item__count-col {
    width: 140px;
  }

  .cart-item.cart-item_additional {
    margin: 15px 0 0;
    border: none;
  }

  .cart-item_additional .cart-item__row {
    row-gap: 15px;
  }

  .cart-item_additional .cart-item__image-col {
    width: 55px;
  }

  .cart-item_additional .cart-item__content-col {
    width: calc(100% - 55px);
  }

  .cart-item_additional .cart-item__title {
    font-size: 14px;
  }

  .cart-item_additional .cart-item__price-current,
  .cart-item_additional .cart-item__total {
    font-size: 16px;
  }

  .cart-products {
    row-gap: 40px;
  }

  .cart-aside__block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cart-aside .manager-box {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1199.98px) {
  .cart-layout__aside {
    width: 300px;
  }

  .cart-item__count-col {
    width: 174px;
  }

  .cart-item_sub .cart-item__content-col {
    width: 136px;
  }

  .cart-item__price-col {
    flex: 0 0 auto;
    width: calc(0.38 * (100% - 52px));
  }

  .cart-item__count-col {
    flex: 0 0 auto;
    width: calc(0.32 * (100% - 52px));
  }

  .cart-item__total-col {
    flex: 0 0 auto;
    width: calc(0.3 * (100% - 52px));
  }

  .cart-item_sub .cart-item__price-col {
    width: calc(0.38 * (100% - 52px - 136px));
  }

  .cart-item_sub .cart-item__count-col {
    width: calc(0.32 * (100% - 52px - 136px));
  }

  .cart-item_sub .cart-item__total-col {
    width: calc(0.3 * (100% - 52px - 136px));
  }
}

@media (max-width: 991.98px) {
  .cart-layout {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
  }

  .cart-layout__aside {
    width: auto;
  }

  .cart-item {
    padding: 15px;
    border-radius: 20px;
    border: none;
    box-shadow: var(--popup-shadow);
    margin-bottom: 10px;
  }

  .cart-item:last-child {
    margin-bottom: 0;
  }

  .cart-item__image-col {
    width: 100px;
  }

  .cart-item__content-col {
    padding-left: 0;
    width: calc(100% - 100px);
  }

  .cart-item__price-col {
    width: calc(0.415 * (100% - 52px));
  }

  .cart-item__count-col {
    width: calc(0.3 * (100% - 52px));
  }

  .cart-item__total-col {
    width: calc(0.285 * (100% - 52px));
  }

  .cart-item__subitems {
    border-top: 1px solid var(--grey-dark);
  }

  .cart-item.cart-item_sub {
    box-shadow: none;
    border-bottom: 1px solid var(--grey-dark);
  }

  .cart-item_sub .cart-item__content-col {
    width: 170px;
  }

  .cart-item_sub .cart-item__price-col {
    width: calc(0.44 * (100% - 52px - 170px));
  }

  .cart-item_sub .cart-item__count-col {
    width: calc(0.29 * (100% - 52px - 170px));
  }

  .cart-item_sub .cart-item__total-col {
    width: calc(0.27 * (100% - 52px - 170px));
  }

  .cart-item_sub .cart-item__price-current,
  .cart-item_sub .cart-item__total {
    font-size: 16px;
  }

  .cart-item__add-subitem-btn {
    margin-top: 15px;
  }

  .cart-item.cart-item_additional {
    box-shadow: none;
  }

  .cart-item_additional .cart-item__image-col {
    width: 66px;
    padding-right: 20px;
  }

  .cart-item_additional .cart-item__content-col {
    width: calc(100% - 66px);
  }

  .cart-add-product {
    display: none;
  }

  .cart-empty {
    text-align: center;
    padding: 90px 0 70px;
  }

  .cart-empty__title {
    --fs-h4: 22px;
  }

  .cart-empty-add-product {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .cart-products {
    row-gap: 30px;
  }

  .cart-products__count {
    display: block;
  }

  .cart-item {
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .cart-item__price-col {
    width: 100%;
    padding: 7px 0;
  }

  .cart-item_sub .cart-item__price-col {
    width: 100%;
    padding: 5px 0;
  }

  .cart-item__count-col,
  .cart-item_sub .cart-item__count-col {
    padding-left: 0;
    width: 150px;
  }

  .cart-item__total-col,
  .cart-item_sub .cart-item__total-col {
    width: calc(100% - 202px);
  }

  .cart-item_sub .cart-item__row {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .cart-item_sub .cart-item__content-col {
    width: 100%;
    padding: 0;
  }

  .cart-item__count-static {
    text-align: left;
  }

  .cart-item__add-subitem-btn {
    width: 100%;
  }

  .cart-item_additional .cart-item__image-col {
    width: 45px;
  }

  .cart-item_additional .cart-item__content-col {
    width: calc(100% - 45px);
  }

  .cart-item_additional .cart-item__row {
    row-gap: 10px;
  }

  .cart-item__change-btn {
    font-size: 14px;
  }

  .cart-layout {
    row-gap: 30px;
  }

  .cart-empty {
    padding: 70px 0 58px;
  }

  .cart-empty__title {
    --fs-h4: 20px;
  }

  .cart-empty__text {
    --fs-18: 16px;
  }

  .cart-login-alert {
    font-size: 14px;
    padding: 20px;
  }
}

@media (max-width: 399.98px) {
}

.cart-changes {
  display: table;
  width: 100%;
  font-size: 14px;
  line-height: 1.2;
}

.cart-changes__header {
  display: table-header-group;
  color: var(--black-50);
  background: var(--white);
  z-index: 1;
  position: sticky;
  top: 0;
}

.cart-changes__header-row {
  display: table-row;
}

.cart-changes__header-cell {
  display: table-cell;
  padding: 8px;
  white-space: nowrap;
  border-bottom: 1px solid var(--grey-dark);
}

.cart-changes__body {
  display: table-row-group;
}

.cart-changes__item {
  display: table-row;
}

.cart-changes__item-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 14px 8px;
  border-bottom: 1px solid var(--grey-dark);
}

.cart-changes__header-cell_price,
.cart-changes__item-cell_price {
  width: 27.2%;
}

.cart-changes__item-main {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.cart-changes__item-image {
  flex-shrink: 0;
  width: 80px;
  position: relative;
}

.cart-changes__item-image:before {
  content: "";
  display: block;
  padding-top: calc(56 * 100% / 80);
}

.cart-changes__item-image-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.cart-changes__item-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.cart-changes__item-content {
  flex-grow: 1;
  min-width: 1px;
}

.cart-changes__item-meta {
  display: flex;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 5px;
}

.cart-changes__item-sku {
  white-space: nowrap;
  font-size: 12px;
  color: var(--black-50);
}

.cart-changes__item-sticker {
  position: static;
  font-size: 10px;
  line-height: 11px;
  padding: 3px 8px;
  margin: 0;
  letter-spacing: 0.07em;
}

.cart-changes__item-title {
  font-size: 14px;
}

.cart-changes__item-title a {
  color: inherit;
}

.cart-changes__item-title:hover,
.cart-changes__item-title:hover a {
  color: var(--red-main-color);
}

@media (min-width: 768px) {
  .cart-changes__item-price.price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-changes__item-price .price-row__main {
    display: flex;
    flex-wrap: nowrap;
  }
}

.cart-changes__item-price .price-row__current {
  font-size: 16px;
}

.cart-changes__item-count {
  font-size: 16px;
}

.cart-changes__item-nochange {
  white-space: nowrap;
  color: var(--black-50);
}

@media (max-width: 991.98px) {
  .cart-changes__item-cell {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .cart-products__footer {
    order: -1;
  }

  .cart-changes__item-meta {
    column-gap: 5px;
  }

  .cart-changes__item-price.price-row {
    font-size: 12px;
  }

  .cart-changes__item-price .price-row__current {
    font-size: 14px;
  }

  .cart-changes__item-price .price-row__main {
    row-gap: 2px;
  }
}

@media (max-width: 767.98px) {
  .cart-changes,
  .cart-changes__body,
  .cart-changes__item-cell {
    display: block;
  }

  .cart-changes__header {
    display: none;
  }

  .cart-changes__item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    border-bottom: 1px solid var(--grey-dark);
    padding: 12px 0;
    row-gap: 12px;
  }

  .cart-changes__item-cell {
    padding: 0;
    border: none;
  }

  .cart-changes__item-cell_main {
    width: 100%;
  }

  .cart-changes__item-cell_price {
    width: auto;
    margin-right: auto;
    max-width: calc(100% - 120px);
  }

  .cart-changes__item-cell_count {
    margin-left: auto;
    min-width: 120px;
  }

  .cart-changes__item-cell_price:before,
  .cart-changes__item-cell_count:before {
    content: attr(data-title);
    display: block;
    font-size: 12px;
    color: var(--black-50);
    white-space: nowrap;
    margin-bottom: 3px;
  }

  .cart-changes__item-count {
    font-size: 14px;
  }

  .cart-changes__item-price.price-row {
    flex-wrap: wrap;
  }
}
