/*.header {
  width: 100%;
  padding: 1rem 3rem;
  border-bottom: 1px solid #0000004d;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.75rem;
}

.header__container a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  pad: 0.5rem 0;
  transition: all 0.2s ease;
}

.header__container a:hover {
  opacity: 0.7;
}

.header__container span,
.header__container p {
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #121011;
}

.header__logo img {
  height: 3.375rem;
  width: 9.375rem;
}*/

/* Мейн */

/*.main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 3rem 16.75rem 3rem;
}*/

.cart__container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Корзина с товарами  */

.cart__container-with-products {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart__container--header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #0000004d;
}

.cart__container--header h1 {
  font-size: 3.5rem;
  letter-spacing: -0.05em;
}

.cart__container--header span {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #667085;
}

.cart__content {
  display: flex;
  gap: 1.5rem;
}

.cart__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cart__list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 55.5rem;
  height: 17.5rem;
}

.cart__list-item--photo {
  height: 100%;
  object-fit: cover;
  width: 19.875rem;
}

.cart__list-item--details {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.details--title-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #121011;
}

.details--title-container h3,
.details--title-container h2 {
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.details--title-container h3 {
  font-size: 1rem;
}

.details--title-container h2 {
  font-size: 1.5rem;
}

.details--price-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-row p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.price-row span {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #475467;
  text-decoration: line-through;
}

.card--desktop-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card--mobile-buttons {
  display: none;
}

.card-quantitiy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid black;
  border-radius: 0.25rem;
  max-width: 8.313rem;
}

.card-quantitiy button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  width: 1.5rem;
  height: 1.5rem;
  background-color: transparent;
  transition: all 0.2s ease;
}

.card-quantitiy button:hover {
  opacity: 0.7;
}

.card-quantitiy img {
  width: 0.875rem;
  height: 0.875rem;
}

.details--delete-btn {
  background: none;
  border: none;
  border-bottom: 1px solid #475467;
  width: fit-content;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #475467;
  transition: all 0.2s ease;
}

.details--delete-btn:hover {
  color: #121011;
  border-bottom: 1px solid #121011;
}

.cart__form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem;
  width: 27rem;
  height: 37.625rem;
  background-color: #f2ebe6;
}

.cart__form--total-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.total-row,
.items-row,
.discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-row span {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.total--details-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.items-row span,
.discount-row span {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.discount-row span:last-child {
  color: #b42318;
}

.cart__form--data-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-type-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 2.5rem;
  background-color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.125rem;
}

.user-type-row button {
  width: 50%;
  border: none;
  background: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  height: 100%;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.active-type {
  background-color: #f1ebe6 !important;
}

.data-input-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.data-input-fields input {
  height: 3rem;
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.05em;
  border-bottom: 1px solid #0000004d;
  transition: all 0.2s ease;
}

.data-input-fields input::placeholder {
  color: #667085;
}

.data-input-fields input:hover,
.data-input-fields input:focus {
  border-bottom: 1px solid black;
}

.data-input-fields textarea {
  /*height: 3rem;*/
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.05em;
  border-bottom: 1px solid #0000004d;
  transition: all 0.2s ease;
  font-family: "Gotham Pro", sans-serif;
}

.data-input-fields textarea::placeholder {
  color: #667085;
}

.data-input-fields textarea:hover,
.data-input-fields textarea:focus {
  border-bottom: 1px solid black;
}

.policy-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1a1f2e;
}

.policy-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: black;
}

.policy-text {
  color: #121011;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 1;
}

.policy-text-link {
  text-decoration: underline;
  color: #121011;
  transition: all 0.2s ease;
}

.policy-text-link:hover {
  color: #e64410;
}

.cart__form-submit-btn {
  /*display: flex;
  justify-content: center;
  align-items: center;*/
  height: 3.375rem;
  background-color: #252324;
  text-align: center;
  color: white;
  font-weight: 300;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  border-radius: 0.25rem;
}

.cart__form-submit-btn:hover {
  background-color: #000000;
}

/* Пустая корзина  */

.cart__container-empty {
  /*display: none;*/
  flex-direction: column;
  gap: 1.5rem;
  /*width: 34.125rem;*/
  width: 100%;
  height: 11.063rem;
  margin: auto;
  text-align: center;
}

.cart__container-empty h2 {
  font-size: 3.5rem;
  letter-spacing: -0.05em;
  color: black;
  margin-bottom: 50px;
}

.cart__container-empty h3 {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #121011;
}

.cart__form-submit-btn a {
  display: block;
  width: 100%;
  height: 100%;
  color: white;
}

/* Заказ принят модальное окно */

.success-modal {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(13, 20, 33, 0.5);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s ease;
}

.success-modal--open {
  visibility: visible;
  opacity: 1;
}

.success-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 25rem;
  background-color: #ffffff;
  padding: 1.5rem;
  backdrop-filter: blur(44px);
  border: none;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #121011;
}

.order-details h3,
.order-details p {
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.order-details h3 {
  font-size: 1.5rem;
}

.order-details p {
  font-size: 1rem;
}

.success-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eaecf0;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  transition: all 0.2s ease;
}

.success-btn:hover {
  background-color: #e9eaed;
}

.success-btn a {
  color: #121011;
  display: block;
  width: 100%;
  height: 100%;
}

/* Адаптив   */

@media (max-width: 960px) {
  .main {
    padding: 2.5rem 3rem 12.125rem 3rem;
  }

  .cart__container {
    margin: 0 !important;
  }

  .cart__content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .cart__list-item {
    width: 100%;
  }

  .cart__form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.625rem 1rem;
  }

  .back-text,
  .header__phone {
    display: none;
  }

  .header__logo {
    margin-right: 35%;
  }

  .header__logo img {
    height: 2.5rem;
    width: 8rem;
  }

  .header__container span,
  .header__container p {
    font-size: 1rem;
  }

  .main {

        padding: 2rem 1rem 4rem 1rem;
    /*padding: 3rem 1rem 12.5rem 1rem;*/
    /*gap: 1rem;*/
  }

  .cart__container--header h1 {
    font-size: 2.5rem;
  }

  .cart__content {
    gap: 4rem;
  }

  .cart__list {
    gap: 2.5rem;
  }

  .cart__list-item {
    height: auto;
    gap: 1rem;
    width: 100%;
  }

  .cart__list-item--photo {
    width: 7.5rem;
    height: 6.625rem;
    object-fit: cover;
    align-self: flex-start;
  }

  .cart__list-item--details {
    gap: 1.5rem;
    width: 19rem;
  }

  .details--title-container h2 {
    font-size: 1.25rem;
  }

  .details--title-container h3 {
    font-size: 1rem;
  }

  .price-row p {
    font-size: 1.25rem;
  }

  .price-row span {
    font-size: 1rem;
  }

  .details--price-container {
    gap: 0.75rem;
  }

  .cart--desktop-buttons {
    display: none !important;
  }

  .cart--mobile-buttons {
    display: flex;
    justify-content: space-between;
  }

  .cart-quantitiy {
    width: 7rem;
  }

  .cart-quantitiy button {
    width: 1.25rem;
    height: 1.25rem;
  }

  .cart__form {
    padding: 1rem;
    height: auto;
    gap: 1.5rem;
  }

  .total-row span {
    font-size: 1.5rem;
  }

  .items-row span,
  .discount-row span {
    font-size: 1rem;
  }

  .user-type-row {
    height: 2.25rem;
  }

  .user-type-row button {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }

  .data-input-fields input {
    font-size: 1rem;
    height: 2.75rem;
  }

  .policy-text {
    font-size: 1rem;
  }

  .cart__form-submit-btn {
    height: 3rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .cart__container-empty {
    width: 100%;
  }

  .cart__container-empty h2 {
    font-size: 2.5rem;
  }

  .cart__container-empty h3 {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .header {
    padding: 0.5rem 0.75rem;
  }

  .header__logo img {
    height: 2rem;
    width: 5.5rem;
  }

  .header__container a {
    gap: 0.375rem;
  }

  .header__container span,
  .header__container p {
    font-size: 0.75rem;
  }

  .back-icon {
    width: 1rem;
    height: 1rem;
  }

  .main {
    padding: 3.25rem 1rem 5rem 1rem;
  }

  .cart__container--header h1 {
    font-size: 1.75rem;
  }

  .cart__container--header span {
    font-size: 0.75rem;
  }

  .cart__list-item {
    gap: 0.75rem;
  }

  .details--title-container h2 {
    font-size: 1.125rem;
  }

  .details--title-container h3 {
    font-size: 0.75rem;
  }

  .price-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .price-row p {
    font-size: 1.125rem;
  }

  .price-row span {
    font-size: 0.75rem;
  }

  .cart-quantitiy {
    max-width: 6rem;
    padding: 0.25rem 0.5rem;
  }

  .cart-quantitiy button {
    width: 1rem;
    height: 1rem;
  }

  .cart-quantitiy img {
    width: 0.625rem;
    height: 0.625rem;
  }

  .details--delete-btn {
    font-size: 0.875rem;
  }

  .cart__form {
    padding: 0.875rem;
    gap: 1.25rem;
  }

  .total-row span {
    font-size: 1.125rem;
  }

  .user-type-row {
    height: 2rem;
  }

  .user-type-row button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .data-input-fields {
    gap: 0.75rem;
  }

  .data-input-fields input {
    font-size: 0.75rem;
    height: 2.5rem;
  }

  .policy-row {
    gap: 0.75rem;
  }

  .policy-checkbox-label {
    gap: 0.5rem;
  }

  .policy-checkbox {
    width: 1rem;
    height: 1rem;
  }

  .policy-text {
    font-size: 0.75rem;
  }

  .cart__form-submit-btn {
    height: 2.75rem;
    font-size: 1rem;
  }

  .cart__container-empty h2 {
    font-size: 1.5rem;
  }

  .cart__container-empty h3 {
    font-size: 0.75rem;
  }

  .success-modal-content {
    padding: 1rem;
    gap: 1rem;
  }
}
