.cabinet-addresses { margin: 0 0 35px; }
.cabinet-addresses__content { display: grid; gap: 28px; }
.cabinet-addresses__form-column h2,
.cabinet-addresses__list-column h2 { margin: 0 0 20px; }
.cabinet-addresses__form-column .cabinet-address-form { margin-top: 0; }
.cabinet-city-select {
  max-width: 360px;
  margin: 0 0 24px;
}
.cabinet-city-select__title {
  margin: 0 0 20px;
  color: #fff;
}
.cabinet-address-form-anchor {
  scroll-margin-top: 64px;
}
.cabinet-address-card {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #4d4d4d;
  border-radius: 4px;
  background: #262626;
}
.cabinet-address-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cabinet-address-card__address {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.cabinet-address-card__primary {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(177, 39, 156, .7);
  border-radius: 2px;
  background: rgba(177, 39, 156, .16);
  color: #f2c1ea;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.cabinet-address-card__comment {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #4d4d4d;
  color: #dedede;
  line-height: 1.35;
}
.cabinet-address-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #4d4d4d;
}
.cabinet-address-card__actions a,
.cabinet-address-card__actions a:link,
.cabinet-address-card__actions a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(177, 39, 156, .75);
  border-radius: 3px;
  background: rgba(177, 39, 156, .14);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cabinet-address-card__actions a:hover,
.cabinet-address-card__actions a:focus {
  outline: none;
  border-color: #d548bd;
  background: #b1279c;
  box-shadow: 0 0 0 2px rgba(177, 39, 156, .24);
}
.cabinet-address-form {
  max-width: 620px;
  margin-top: 18px;
  padding: 32px 38px 34px;
  border: 1px solid #4d4d4d;
  border-radius: 4px;
  background: #262626;
  color: #fff;
}
.cabinet-address-form .formFlash:empty {
  display: none;
}
.cabinet-address-form .formFlash:not(:empty) {
  position: relative;
  box-sizing: border-box;
  margin: 20px 0 0;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(231, 86, 86, .75);
  border-radius: 3px;
  background: rgba(184, 45, 45, .18);
  color: #ffd7d7;
  font-weight: 600;
  line-height: 1.4;
}
.cabinet-address-form .formFlash:not(:empty)::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
  transform: translateY(-50%);
}
.cabinet-address-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; }
.cabinet-address-grid .full { grid-column: 1 / -1; }
.cabinet-address-grid input,
.cabinet-address-grid textarea { box-sizing: border-box; width: 100%; }
.cabinet-address-form .cabinet-address-grid input[type="text"] {
  min-height: 50px;
  margin-top: 9px;
  padding: 0 15px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #262626;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cabinet-address-form .cabinet-address-grid input[type="text"]::placeholder {
  color: #aaa;
}
.cabinet-address-form .cabinet-address-grid input[type="text"]:hover {
  border-color: #b1279c;
  background-color: #303030;
}
.cabinet-address-form .cabinet-address-grid input[type="text"]:focus {
  outline: none;
  border-color: #b1279c;
  box-shadow: 0 0 0 3px rgba(177, 39, 156, .25);
}
.cabinet-address-form .cabinet-address-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 9px 0 0;
  padding: 0;
  accent-color: #b1279c;
}
.cabinet-address-primary {
  display: flex;
  align-items: center;
}
.cabinet-address-form__details {
  display: contents;
}
.cabinet-address-form__details[hidden],
.cabinet-address-form__actions[hidden] {
  display: none !important;
}
.cabinet-address-form__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}
.cabinet-address-form__actions .button { margin: 0; }
.cabinet-address-form__cancel {
  background: #666;
  color: #fff;
}
.cabinet-address-grid textarea {
  display: block;
  min-height: 84px;
  margin-top: 9px;
  padding: 11px 14px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #262626;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cabinet-address-grid textarea:hover {
  border-color: #b1279c;
  background-color: #303030;
}
.cabinet-address-grid textarea:focus {
  outline: none;
  border-color: #b1279c;
  box-shadow: 0 0 0 3px rgba(177, 39, 156, .25);
}
.cabinet-address-comment { margin-top: 8px; }
.required { color: #d90000; }
.address-suggestions {
  display: block;
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  color: #222;
  position: relative;
  z-index: 10;
}
.address-suggestions.hidden { display: none; }
.address-suggestion { border: 0; border-bottom: 1px solid #ddd; background: #fff; color: #222; cursor: pointer; display: block; padding: 10px 12px; text-align: left; width: 100%; }
.address-suggestion:last-child { border-bottom: 0; }
.address-resolution-status {
  display: block;
  margin-top: 14px;
  border: 0 !important;
  box-shadow: none;
  color: #dedede;
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
  text-decoration: none;
}
.address-resolution-status::before,
.address-resolution-status::after { display: none !important; content: none !important; }
@media (max-width: 700px) {
  .cabinet-address-grid { grid-template-columns: 1fr; }
  .cabinet-address-form__details:not([hidden]) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .cabinet-address-form__details > .full { grid-column: 1 / -1; }
  .cabinet-address-form { padding: 24px 20px 26px; }
  .cabinet-address-card__header { display: block; }
  .cabinet-address-card__primary { display: inline-block; margin-top: 10px; }
}
@media (min-width: 1080px) {
  .cabinet-addresses__content {
    grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
    gap: 34px;
    align-items: start;
  }
}
.checkout-address { margin: 14px 0 18px; }
#checkout-form .city-select {
  margin-top: 14px;
  padding-left: 0;
}
.checkout-address > label,
.city-select__label {
  display: block;
  margin-top: 0;
  margin-bottom: 8px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.cabinet-city-select > select[name="city"],
#checkout-form > select[name="city"],
.city-select > select[name="city"],
.checkout-address > select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 0 46px 0 15px;
  border: 1px solid #666;
  border-radius: 3px;
  background-color: #262626;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cabinet-city-select > select[name="city"],
#checkout-form > select[name="city"],
.city-select > select[name="city"] {
  margin-bottom: 8px;
}
.cabinet-city-select > select[name="city"]:hover,
#checkout-form > select[name="city"]:hover,
.city-select > select[name="city"]:hover,
.checkout-address > select:hover {
  border-color: #b1279c;
  background-color: #303030;
}
.cabinet-city-select > select[name="city"]:focus,
#checkout-form > select[name="city"]:focus,
.city-select > select[name="city"]:focus,
.checkout-address > select:focus {
  outline: none;
  border-color: #b1279c;
  box-shadow: 0 0 0 3px rgba(177, 39, 156, .25);
}
.cabinet-city-select > select[name="city"] option,
#checkout-form > select[name="city"] option,
.city-select > select[name="city"] option,
.checkout-address > select option {
  background: #262626;
  color: #fff;
}
.delivery-calculation {
  position: relative;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  background: rgba(255,255,255,.08);
}
.delivery-calculation > div + div { margin-top: 6px; }
.delivery-calculation--warning {
  padding: 15px 16px 15px 52px;
  border: 2px solid #e75656;
  background: rgba(184,45,45,.3);
  box-shadow: 0 0 0 3px rgba(231,86,86,.12);
  color: #fff;
}
.delivery-calculation--warning::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transform: translateY(-50%);
}
.delivery-calculation--warning #delivery-calculation-message {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.checkout-address__empty { margin: 0 0 12px; }
.checkout-address__add { display: inline-block; margin: 2px 0 0; }
.checkout-address__add + .delivery-calculation { margin-top: 20px; }
.success-order-message {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}
.success-order-message__status p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.success-order-number {
  margin: 10px 0 0;
  line-height: 1.2;
}
.success-order-number strong {
  display: block;
}
.success-order-number strong {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255,255,255,.65), 0 0 14px rgba(177,39,156,.8);
}
.cabinet-orders-list { margin: 0 0 15px; }
.cabinet-order-detail {
  margin: 0 0 12px;
  border: 1px solid #4d4d4d;
  border-radius: 4px;
  background: #262626;
  overflow: hidden;
}
.cabinet-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 18px;
  align-items: center;
  gap: 12px 22px;
  padding: 16px 20px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}
.cabinet-order-summary::-webkit-details-marker { display: none; }
.cabinet-order-summary:hover,
.cabinet-order-summary:focus {
  outline: none;
  background: #303030;
}
.cabinet-order-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.cabinet-order-detail[open] .cabinet-order-summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.cabinet-order-summary__identity strong,
.cabinet-order-summary__identity time { display: block; }
.cabinet-order-summary__identity strong {
  font-size: 17px;
  line-height: 1.25;
}
.cabinet-order-summary__identity time {
  margin-top: 3px;
  color: #bbb;
  font-size: 13px;
}
.cabinet-order-summary__status {
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  color: #ddd;
  font-size: 13px;
  white-space: nowrap;
}
.cabinet-order-summary__total {
  font-size: 17px;
  white-space: nowrap;
}
.cabinet-order-detail__body {
  padding: 16px 20px 20px;
  border-top: 1px solid #4d4d4d;
}
.cabinet-order-detail__body > p { margin: 10px 0 0; }
.cabinet-order-detail__body > p:first-child { margin-top: 0; }
.cabinet-order-items {
  width: 100%;
  margin: 12px 0 14px;
  padding: 0;
  border-collapse: collapse;
  border-top: 1px solid rgba(255,255,255,.35);
  list-style: none;
}
.cabinet-order-items th,
.cabinet-order-items td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  text-align: left;
}
.cabinet-order-items th:nth-child(2),
.cabinet-order-items td:nth-child(2) { text-align: center; }
.cabinet-order-items th:nth-child(3),
.cabinet-order-items td:nth-child(3) { text-align: right; }
.cabinet-order-items li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.cabinet-order-items li:last-child { border-bottom: 0; }
@media (max-width: 700px) {
  .cabinet-order-summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 7px 12px;
    padding: 14px 15px;
  }
  .cabinet-order-summary__status {
    grid-column: 1 / 3;
    justify-self: start;
  }
  .cabinet-order-summary__total {
    grid-column: 2;
    grid-row: 1;
  }
  .cabinet-order-summary::after {
    grid-column: 3;
    grid-row: 1;
  }
  .cabinet-order-detail__body { padding: 14px 15px 17px; }
  .cabinet-order-items { font-size: 13px; }
}
