@font-face {
  font-family: "Inter Tight";
  src: url("../font/InterTight-Regular.woff2") format("woff2"), url("../font/InterTight-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../font/InterTight-Medium.woff2") format("woff2"), url("../font/InterTight-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../font/InterTight-SemiBold.woff2") format("woff2"), url("../font/InterTight-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../font/Inter-Regular.woff2") format("woff2"), url("../font/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../font/Inter-Medium.woff2") format("woff2"), url("../font/Inter-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../font/Inter-SemiBold.woff2") format("woff2"), url("../font/Inter-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../font/Inter-ExtraBold.woff2") format("woff2"), url("../font/Inter-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
}
:root {
  --color-white: #fff;
  --color-text: #474D5A;
  --color-primary: #C04049;
  --color-accent: #5D84C7;
  --color-main-text:#1F2D49;
  --color-gradient: radial-gradient(76.84% 76.84% at 50% 50%, #FFFFFF 25.96%, #D9E8F0 100%);
  --color-grey:#475163;
  --color-back-light:#F7F9FA;
  --color-button:#EEF2F5;
  --Inter:"Inter", sans-serif;
  --InterTight:"Intel Tight", sans-serif;
}



.cart__wrap button {
  border: none;
}

.cart__wrap  mark {
  -webkit-text-fill-color: initial;
  text-fill-color: transparent;
  background: none;
}

.cart__wrap .img {
  display: block;
}

.cart__wrap  .img.contain img {
  object-fit: contain;
}

.cart__wrap  .img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart__wrap ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

.cart__wrap button {
  background: transparent;
}

.cart__wrap h1 {
  margin: 0;
}

.section__button {
  width: -moz-max-content;
  width: max-content;
  text-align: center;
  border-radius: 30px;
  padding: 18px 60px 18px 75px;
  color: var(--color-white);
  background: var(--color-primary);
  text-transform: capitalize;
  transition: 0.4s ease;
  display: block;
  position: relative;
}
.cart__bottom-checkout{
  min-width: 320px;
}


.section__button > * {
  font: 600 16px/24px var(--Inter);
}

.section__button img {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 50px;
}

.section__button:hover {
  transition: 0.2s ease;
  background: var(--color-accent);
}


.modal {
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
}

.modal__cart {
  padding: 0;
}

.modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 5;
}

.modal__title {
  font: 600 30px/30px var(--InterTight);
  padding: 0 0 20px 48px;
}

.modal__close:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: url("../img/close.svg") center/60px 60px no-repeat;
}

.modal__wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal__wrap:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
}

.modal__content {
  max-width: 848px;
  width: 100%;
  background: white;
  border-radius: 20px;
  position: absolute;
  padding: 24px 36px 20px;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  max-height: 90vh;
  overflow: auto;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.modal__content::-webkit-scrollbar {
  background-color: transparent;
  width: 4px;
}

.modal__content::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 100%;
  display: none;
}

.cart__list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.cart__header {
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -ms-flex-align: start;
  align-items: flex-start;
}

.cart__header-block {
  -ms-flex: 1;
  flex: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.cart__img {
  width: 60px;
  min-width: 60px;
}

.cart__title {
  font: 600 16px/24px var(--Inter);
}

.cart__item {
  border: 1px solid #788297;
  border-radius: 16px;
  padding: 20px 16px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 32px;
}

.cart__checkbox {
  position: relative;
}

.cart__checkbox-wrap {
  -ms-flex-direction: column;
  flex-direction: column;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.cart__adds {
  position: relative;
}

.cart__adds:after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 32px);
  background: #788297;
  height: 1px;
}

.cart__adds-title {
  padding-right: 20px;
  font: 600 14px/20px var(--Inter);
  margin-bottom: 12px;
  position: relative;
  width: -moz-max-content;
  width: max-content;
  cursor: pointer;
}

.cart__adds-title:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 16px;
  height: 16px;
  background: url("../img/cart-down.svg") center/16px 16px no-repeat;
}

.cart__adds.active .cart__checkbox-wrap {
  max-height: 150px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.cart__adds.active .cart__adds-title:after {
  transform: translateY(-50%) rotate(-180deg);
  transition: transform 0.3s ease;
}

.cart__plan {
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-align: center;
  align-items: center;
}

.cart__plan-wrap {
  display: -ms-flexbox;
  display: flex;
  gap: 19px;
  -ms-flex-align: center;
  align-items: center;
}

.cart__plan-wrap > * {
  font: 500 16px/18px var(--Inter);
}

.cart__price {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.cart__price-count, .cart__price-count * {
  font: 600 24px/32px var(--Inter);
  color: var(--color-primary);
}

.cart__bottom {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 28px;
  gap: 30px;
}

.cart__bottom > * {
  white-space: nowrap;
}

.cart__bottom-link {
  -ms-flex: 1;
  flex: 1;
  text-align: right;
  color: var(--color-primary);
  font: 600 16px/24px var(--Inter);
}

.cart__bottom-checkout strong {
  font-weight: 800;
}

.cart__continue {
  cursor: pointer;
}

.cart__continue > * {
  font: 600 16px/24px var(--Inter);
  position: relative;
  width: -moz-max-content;
  width: max-content;
  padding-right: 19px;
}

.cart__continue > *:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 14px;
  height: 14px;
  background: url("../img/icon-arrow.svg") center/14px 14px no-repeat;
}

.cart__wrap [type=checkbox] {
  position: absolute;
  left: -9999px;
}

.cart__wrap [type=checkbox] + label {
  padding-left: 24px;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  color: var(--color-main-text);
  -ms-flex-align: center;
  align-items: center;
}

.cart__wrap [type=checkbox] + label > * {
  font: 600 14px/20px var(--Inter);
}

.cart__wrap [type=checkbox]:checked + label:before,
.cart__wrap [type=checkbox]:not(:checked) + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #1F2D49;
  background: transparent;
}

.cart__wrap [type=checkbox]:checked + label:before {
  border: 1px solid var(--color-primary);
}

.cart__wrap [type=checkbox]:checked + label:after,
.cart__wrap [type=checkbox]:not(:checked) + label:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 16px;
  height: 16px;
  background: url(../img/check.svg) center/16px 16px no-repeat;
}

.cart__wrap [type=checkbox]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0) translateY(-50%);
}

.cart__wrap [type=checkbox]:checked + label:after {
  opacity: 1;
  transform: scale(1) translateY(-50%);
}

.cart__wrap [type=radio] {
  position: absolute;
  left: -9999px;
}

.cart__wrap [type=radio] + label {
  font: 600 14px/16px var(--Inter);
  padding-left: 20px;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  color: var(--color-main-text);
  -ms-flex-align: center;
  align-items: center;
  position: relative;
}

.cart__wrap [type=radio] + label::before,
.cart__wrap [type=radio] + label::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  display: block;
  transition: all 0.2s ease-in-out;
}

.cart__wrap [type=radio] + label::before {
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #1F2D49;
  background-color: transparent;
  box-sizing: border-box;
}

.cart__wrap [type=radio]:checked + label::before {
  border-color: var(--color-primary);
}

.cart__wrap [type=radio]:checked + label::after {
  left: 3.6px;
  width: 5.6px;
  height: 5.6px;
  background-color: var(--color-primary);
}

label.error {
  position: absolute;
  left: 0;
  bottom: -22px;
  color: var(--color-white);
  font: 400 14px/20px var(--Inter);
}

.cart__widget {
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 10px;
  border-radius: 50%;
  background-color: white;
  width: 60px;
  height: 60px;
  z-index: 3;
  box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.1019607843);
}

.cart__widget-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
}
.cart-empty{
    font: 700 28px/140% var(--Inter);
   text-align: center;
  border-top:none;
  padding: 0;
  margin: 90px auto;
}
.cart-empty:after, .cart-empty:before {
  display: none;
}
.return-to-shop > *{
  margin: 0 auto;
}
@media only screen and (max-width: 1024px) {
  .modal__content{
    max-width: 90vw;
  }
  .section__button {
    max-width: 320px;
    width: 100%;
  }
}
@media only screen and (max-width: 666px) {
  .cart__plan {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .cart__plan-wrap {
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .modal__content {
    padding: 20px 8px;
  }
  .cart__header {
    margin: 0 -8px;
    gap: 6px;
  }
  .cart__img {
    margin-right: 6px;
  }
  .cart__bottom {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    gap: 16px;
  }
  .cart__bottom-link {
    display: block;
    text-align: right;
    width: 40%;
  }
  .cart__bottom-checkout {
    margin: 0 auto;
  }
  .cart__continue {
    display: block;
    text-align: left;
    width: 60%;
  }
  .cart__price-count, .cart__price-count * {
    font-size: 16px;
    line-height: 24px;
  }
  .cart__delete {
    width: 16px;
    height: 16px;
  }
  .cart__price {
    gap: 8px;
  }
  .cart__title {
    font-size: 14px;
  }
  .modal__title {
    padding: 0 0 16px 12px;
    font-size: 22px;
  }
  .cart__bottom-checkout {
    min-width: 240px;
  }
  .cart-empty{
    font-size: 24px;
  }
}

@media only screen and (max-width: 575px) {
  .wrapper{
    padding-top: 120px;
  }
}

@media only screen and (max-width: 360px) {
  .cart__img {
    margin: 0;
  }
}