body:has(.order-page) {
  overflow-x: clip;
}

.main.order-page,
.main.store-checkout-page {
  overflow-x: clip;
}

.order-page {
  background: #f2f2f2;
  color: #1a1a1a;
  font-family: var(--TildaSans);
}
.order-page__section {
  padding: 60px 0;
}
@media (max-width: 767px) {
  .order-page__section {
    padding: 30px 0;
  }
}
.order-page__notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #e02d3c;
  border-radius: 5px;
  background: #fff;
  color: #e02d3c;
}
.order-page__notice p {
  margin: 0;
}
.order-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 886.67px) 433.33px;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}
@media (max-width: 1279px) {
  .order-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
}
@media (max-width: 1023px) {
  .order-page__layout {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
.order-page__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 1023px) {
  .order-page__main {
    gap: 5px;
  }
}
.order-page__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
}
@media (max-width: 767px) {
  .order-page__title {
    font-size: 20px;
    font-weight: 600;
  }
}
.order-page__title-mobile {
  display: none;
}
@media (max-width: 767px) {
  .order-page__title-mobile {
    display: inline;
  }
}
@media (max-width: 767px) {
  .order-page__title-desktop {
    display: none;
  }
}
.order-page__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1023px) {
  .order-page__form {
    gap: 5px;
  }
}
.order-page__sidebar {
  min-width: 0;
  align-self: stretch;
  padding-top: 75px;
}
@media (max-width: 1023px) {
  .order-page__sidebar {
    align-self: start;
    padding-top: 0;
  }
}
.order-page__sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height, 0px) + 24px);
  z-index: 2;
}
@media (max-width: 1023px) {
  .order-page__sidebar-sticky {
    position: static;
  }
}
.order-page__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.order-card {
  padding: 30px;
  border-radius: 5px;
  background: #fff;
}
@media (max-width: 767px) {
  .order-card {
    padding: 20px;
    border-radius: 5px;
  }
}
.order-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-card__title {
  margin: 0 0 20px;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .order-card__title {
    margin-bottom: 20px;
    font-size: 20px;
  }
}
.order-card__heading .order-card__title {
  margin-bottom: 0;
}
.order-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  border-radius: 20px;
  background: #0071d8;
  color: #f8f8f8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .order-card__badge {
    padding: 5px 10px;
  }
}
.order-card--items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}

.order-items {
  display: flex;
  width: 100%;
  flex-direction: column;
}
.order-items__empty {
  margin: 16px 0 0;
  color: #8a8a8a;
  font-size: 16px;
}
.order-items__clear {
  display: block;
  margin: 5px 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  font-family: var(--TildaSans);
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .order-items__clear:hover:not(:disabled):not(.is-cleared) {
    color: #c4c4c4;
  }
}
.order-items__clear:active:not(:disabled):not(.is-cleared) {
  color: #999;
}
.order-items__clear:disabled, .order-items__clear.is-cleared {
  color: #cacccf;
  cursor: default;
}

.order-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #d9d9d9;
  transition: opacity 0.2s ease;
}
.order-item:last-of-type {
  border-bottom: 0;
}
.order-item.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.order-item__image-link {
  display: block;
  flex: 0 0 79px;
  width: 79px;
  height: 79px;
  overflow: hidden;
  border-radius: 10px;
}
.order-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-item__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 15px;
}
@media (max-width: 767px) {
  .order-item__body {
    gap: 10px;
  }
}
.order-item__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}
.order-item__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
.order-item__title a {
  color: inherit;
  text-decoration: none;
}
.order-item__unit-price {
  margin: 0;
  color: #393939;
  font-size: 16px;
  line-height: 1.2;
}
.order-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-item__total {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .order-item__total {
    font-size: 16px;
  }
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-details__row {
  margin: 0;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.35;
}

.quantity {
  display: inline-flex;
  width: 112px;
  height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #cacccf;
  border-radius: 170px;
  background: #fcfcfc;
  box-sizing: border-box;
}
.quantity__button {
  display: flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 170px;
  background: #f7f5f9;
  color: #0071d8;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.quantity__button svg {
  display: block;
  width: 11px;
  height: 11px;
}
@media (hover: hover) {
  .quantity__button:hover {
    background: #edebef;
  }
}
.quantity__button:active {
  background: #f7f5f9;
}
.quantity__input {
  width: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-family: var(--TildaSans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  outline: none;
}

.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 767px) {
  .order-fields {
    gap: 20px 10px;
  }
  .order-fields--contacts .order-field:has(input[type=tel]), .order-fields--contacts .order-field:has(input[type=email]), .order-fields--contacts .order-field--wide {
    grid-column: 1/-1;
  }
}
.order-fields--delivery {
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.order-address-field {
  grid-column: 1/-1;
}

.order-field,
.input,
.textarea {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.input__label,
.textarea__label {
  color: #8a8a8a;
  font-family: var(--TildaSans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.order-field__required {
  color: #e02d3c;
}

.input__input,
.textarea__input {
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #cacccf;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  caret-color: #999;
  font-family: var(--TildaSans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.2s ease;
}
@media (hover: hover) {
  .input__input:hover:not(:focus):placeholder-shown,
  .textarea__input:hover:not(:focus):placeholder-shown {
    border-bottom-color: #999;
  }
}
.input__input:focus,
.textarea__input:focus {
  border-bottom-color: #cacccf;
}
.input__input:not(:placeholder-shown),
.textarea__input:not(:placeholder-shown) {
  border-bottom-color: #d9d9d9;
}
.input__input::placeholder,
.textarea__input::placeholder {
  color: #cacccf;
  font-size: 16px;
  opacity: 1;
}

.textarea__input {
  min-height: 48px;
  resize: vertical;
}

.input__help {
  color: #8a8a8a;
  font-size: 12px;
}

.input__error {
  color: #e02d3c;
  font-family: var(--TildaSans);
  font-size: 14px;
  line-height: 1.2;
}

.order-field--phone {
  position: relative;
}
.order-field--phone .iti {
  display: block;
  width: 100%;
}
.order-field--phone .iti__flag-container {
  position: absolute;
  top: auto;
  bottom: 10px;
  left: 0;
  height: 20px;
}
.order-field--phone .iti__selected-flag {
  padding: 0 8px 0 0;
  background: transparent;
}
.order-field--phone .iti__arrow {
  margin-left: 6px;
  border-top-color: #999;
}
.order-field--phone .iti__country-list {
  z-index: 5;
  border: 1px solid #cacccf;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  font-family: var(--TildaSans);
  font-size: 14px;
}
.order-field--phone .input__input {
  padding-left: 52px;
}
.order-field--phone.order-field--invalid .input__input {
  border-bottom-color: #e02d3c;
}

.order-delivery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 767px) {
  .order-delivery {
    gap: 10px;
  }
}
.order-delivery__option {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid #cacccf;
  border-radius: 5px;
  background: #fcfcfc;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
}
@media (hover: hover) {
  .order-delivery__option:hover:not(:has(input:checked)) {
    border-color: #0071d8;
  }
}
.order-delivery__option:active:not(:has(input:checked)) {
  border: 1.5px solid #0071d8;
  background: #f0f5ff;
  padding: 14.5px;
}
.order-delivery__option:has(input:checked) {
  border: 1.5px solid #0071d8;
  background: #f0f5ff;
  padding: 14.5px;
}
.order-delivery__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .order-delivery__option--russia, .order-delivery__option--pickup {
    grid-column: 1/-1;
  }
}
.order-delivery__name, .order-delivery__price {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
.order-delivery__note {
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  border-radius: 5px;
  background: #fff;
}
@media (max-width: 767px) {
  .order-summary {
    padding: 20px;
  }
}
.order-summary__title {
  margin: 0;
  color: #1b1b1b;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.order-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-summary__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  color: #393939;
  font-size: 16px;
  line-height: 1.2;
}
.order-summary__row span:last-child {
  flex-shrink: 0;
  color: #1b1b1b;
  white-space: nowrap;
}
.order-summary__divider, .order-summary__rows + .order-summary__total {
  border-top: 1px solid #d9d9d9;
}
.order-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  color: #1b1b1b;
  font-size: 18px;
  line-height: 1.2;
}
.order-summary__total strong {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}
.order-summary__submit {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border: 0;
  border-radius: 5px;
  background: #0071d8;
  color: #fff;
  font-family: var(--TildaSans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
@media (hover: hover) {
  .order-summary__submit:hover:not(:disabled):not(.is-submitting) {
    background: #007ef2;
  }
}
.order-summary__submit:active:not(:disabled):not(.is-submitting) {
  background: #0071d8;
}
.order-summary__submit:disabled:not(.is-submitting) {
  cursor: not-allowed;
  opacity: 0.5;
}
.order-summary__submit.is-submitting, .order-summary__submit:disabled.is-submitting {
  background: #9cc7ed;
  cursor: default;
  opacity: 1;
}
.order-summary__offer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #393939;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.order-summary__offer input {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin: 0;
  appearance: none;
  border: 1px solid #cacccf;
  border-radius: 3px;
  background: #fcfcfc;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) {
  .order-summary__offer input:hover:not(:checked) {
    border-color: #0071d8;
  }
}
.order-summary__offer input:checked {
  border-color: #0071d8;
  background: #0071d8 url("../../images/cart/checkbox-check.svg") center/21px 21px no-repeat;
}
.order-summary__offer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover) {
  .order-summary__offer a:hover {
    color: #0071d8;
  }
}
