:root {
  --bright-yellow: #F0C568;
  --border: #B5B5B5;
  --text: #121212;
  --muted: #B5B5B5;
}

.order {
  margin: 30px 0;
}

.wrapper {}

.order_inner {
  display: flex;
  gap: 50px;
}

.order_inner-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 860px;
}

.order_inner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order_inner-top-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  color: var(--dark);
}

.order_inner-top-button {
  border: 1px solid #634607;
  border-radius: 6px;
  padding: 4px 12px;
  width: 125px;
  height: 22px;
  color: #634607;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.order_inner-top-button-text {}

.order_inner-mid {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order_inner-mid-addresses-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.order_inner-mid-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 6px;
  padding: 24px;
  border: 1px solid var(--light-grey);
  cursor: pointer;
  width: calc(50% - 10px);
}

.order_inner-mid-block:hover {
  border: 1px solid var(--bright-yellow);
}

.order_inner-mid-block.active {
  border: 1px solid var(--bright-yellow);
}

.order_inner-mid-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--dark);
}

.address-block-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--dark);
}

.address-block-p {
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: var(--dark);
  width: 340px;
}

.address-block-btn {
  border: 1px solid var(--bright-yellow);
  border-radius: 6px;
  padding: 6px 24px;
  width: min-content;
  height: auto;
  display: table;
  color: var(--dark);
}

.order_inner-mid-block.active .address-block-btn {
  background: var(--bright-yellow);
}

.order_inner-mid-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 24px;
}

.order_inner-mid-bottom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order_inner-mid-bottom-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--dark);
}

.order_inner-mid-bottom-price {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--dark);
}

.order_inner-mid-bottom-howmany {
  font-weight: 300;
  font-size: 13px;
  line-height: 140%;
  letter-spacing: 0.01em;
}

.order_inner-mid-bottom-items {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.order_inner-mid-bottom-items picture {
  width: 82px;
  height: 82px;
}

.delivery__card {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 24px 32px;
  background: #fff;
}

.delivery__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
}

/* tabs */
.delivery__tabs {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bright-yellow);
  margin-bottom: 18px;
}

.delivery__tab {
  padding: 8px 18px;
  border: 0;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  min-width: 100px;
}

.delivery__tab.is-active {
  background: var(--bright-yellow);
}

/* grid */
.delivery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 10px;
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  color: var(--muted);
  margin-bottom: 2px;
}

.field__input {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 16px 12px;
  font: 10px/1.4 inherit;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--bright-yellow);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  background-color: white;
  transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
  background: url(../images/check.svg) center center no-repeat #fff;
  background-size: 12px;
}

/* select */
.field__select-wrap {
  position: relative;
}

.field__select {
  appearance: none;
  width: 100%;
  padding-right: 28px;
}

.field__select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
  border-right: 1.5px solid var(--light-grey);
  border-bottom: 1.5px solid var(--light-grey);
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border-radius: 8px;
  background-color: #fff;
  padding-right: 32px;
  cursor: pointer;
}

.field__select option {
  padding: 6px 10px;
  font-size: 14px;
}

.field__select option:checked {
  background-color: #e7f3ff;
}

.delivery__form {
  display: none;
  margin: 0;
}

.delivery__form--org {
  display: block;
  /* по макету изначально активна вкладка "Юрлицо / ИП" */
}

.delivery-check__text {
  user-select: none;
}

.delivery__grid--person {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field--email {
  align-self: flex-start;
}

.delivery__hint--email {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
  padding-top: 2px;
}

.delivery__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}

.delivery__link {
  color: #634607;
  text-decoration: none;
  font-weight: 700;
}

.delivery__hint {
  color: var(--muted);
  padding-top: 2px;
}

.order-summary__card {
  background-color: rgba(181, 181, 181, 0.1);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  position: sticky;
  top: 10px;
}

.order-summary__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.order-summary__rows {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-summary__meta {
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
}

.order-summary__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
}

.order-summary__row--total {
  margin-top: 8px;
  font-weight: 700;
  font-size: 16px;
}

.order-summary__total-label {
  font-weight: 700;
}

.order-summary__total-sum {
  font-weight: 700;
}

/* промокод */
.order-summary__promo {
  display: block;
  margin: 12px 0;
}

.order-summary__promo-input {
  width: 100%;
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 16px 12px;
  color: var(--text);
}

/* кнопка */
.order-summary__btn {
  width: 100%;
  border-radius: 6px;
  border: none;
  padding: 12px 40px;
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  background: var(--bright-yellow);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* текст внизу */
.order-summary__note {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 140%;
  color: var(--grey);
}

.order-summary__note a {
  font-weight: 700;
  color: var(--dark);
  text-decoration: underline;
}

.select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.select2-selectionrendered {
  line-height: 36px;
}

.select2-selectionarrow {
  height: 36px;
}

.fieldinput.hidden {
  display: none;
}

.order-summary__card.mobile {
  display: none;
}

.order_inner-mid-choose-block {
  display: flex;
  gap: 20px;
}

.order_inner-mid-title.mobile {
  display: none;
}

@media screen and (max-width:1280px) {
  .order_inner-mid-addresses-block {
    padding: 12px;
    flex-direction: column;
    border: 1px solid var(--light-grey);
    border-radius: 6px;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
  }

  .order-summary__card.mobile {
    display: block;
  }

  .order-summary__card {
    display: none;
  }

  .order_inner-mid-choose-block {
    flex-direction: column;
    gap: 36px;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: 6px;
  }

  .order_inner {
    gap: 0;
  }

  .order_inner-mid {
    padding: 0;
    gap: 32px;
  }

  .order-summary__card.mobile {
    width: 270px;
  }

  .order_inner-mid-block {
    width: 396px;
  }

  .order_inner-mid,
  .order_inner-mid-addresses-block {
    border: none;
  }

  .order_inner-left {
    min-width: auto;
    width: 720px;
    margin: 0 auto;
  }

  .order_inner-mid-title {
    display: none;
  }

  .order_inner-mid-title.mobile {
    display: inline;
  }

  .order-summary__title {
    font-size: 16px;
  }

  .delivery__title{
    font-size: 16px;
  }
}

@media screen and (max-width:740px) {
  .order-summary__card.mobile {
    width: auto;
    padding: 4px;
  }

  .order-summary__btn {
    padding: 12px 10px;
    font-size: 12px;
    flex-direction: column-reverse;
  }
  .order-summary__btn i {
    display: none !important;
  }

  .order_inner-left {
    width: 340px;
  }
  .order_inner-mid-block{
    width: 160px;
    padding: 12px;
  }

  .address-block-p{
    width: 136px;
  }
  .delivery__grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .order_inner-top{
    flex-direction: column-reverse;
    align-items: start;
    gap: 8px;
  }

  .get-amount{
    font-size: 12px;
  }
  .order-summary__row{
    margin-bottom: 8px;
  }
  .order_inner-mid-choose-block{
    border: none;
    padding: 0;
    gap: 12px;
  }
  .order-summary__title{
    font-size: 15px;
  }
  .order_inner-mid-bottom{
    padding: 8px;
  }
  .delivery__card{
    padding: 8px;
  }
}