/* B2B counterparty form */
.b2b-counterparty-form .personal__card-head {
  margin-bottom: 2.5rem;
}

.b2b-counterparty-form .ui-label {
  color: #343434;
  font-weight: 500;
}

.b2b-counterparty-search {
  position: relative;
  margin-bottom: 2.8rem;
}

.b2b-counterparty-search .ui-input {
  margin-bottom: .8rem;
}

.b2b-counterparty-search__status {
  color: #8791a4;
  font-size: 1.3rem;
  line-height: 1.4;
}

.b2b-counterparty-suggestions {
  position: absolute;
  z-index: 50;
  top: 7.7rem;
  right: 0;
  left: 0;
  display: none;
  overflow: hidden;
  max-height: 30rem;
  overflow-y: auto;
  border: 1px solid #e7ecf2;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 1.2rem 3rem rgba(48, 61, 85, .14);
}

.b2b-counterparty-suggestions.is-open {
  display: block;
}

.b2b-counterparty-suggestion {
  display: block;
  width: 100%;
  padding: 1.3rem 1.6rem;
  text-align: left;
  color: #343434;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  cursor: pointer;
  transition: background-color .2s;
}

.b2b-counterparty-suggestion:last-child {
  border-bottom: 0;
}

.b2b-counterparty-suggestion:hover,
.b2b-counterparty-suggestion:focus {
  outline: none;
  background: #f7f8fb;
}

.b2b-counterparty-suggestion strong,
.b2b-counterparty-suggestion span {
  display: block;
}

.b2b-counterparty-suggestion strong {
  margin-bottom: .4rem;
  font-size: 1.4rem;
  line-height: 1.35;
}

.b2b-counterparty-suggestion span {
  color: #8791a4;
  font-size: 1.2rem;
}

.b2b-counterparty-field {
  margin-bottom: .2rem;
}

.b2b-counterparty-field .ui-textarea--46 {
  min-height: 8.8rem;
  resize: vertical;
}

.b2b-counterparty-default {
  display: inline-flex;
  align-items: center;
  margin-top: .5rem;
}

.b2b-counterparty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

@media (max-width: 767px) {
  .b2b-counterparty-form .personal__card {
    padding-inline: 18px;
  }

  .b2b-counterparty-form .personal__card-head {
    margin-bottom: 2rem;
  }

  .b2b-counterparty-search {
    margin-bottom: 2.3rem;
  }

  .b2b-counterparty-actions .ui-btn {
    flex: 1 1 14rem;
  }
}
/* Modern filled cart */
.cart-modern__breadcrumbs {
  padding-bottom: 20px;
}

.cart-modern__breadcrumbs .breadcrumbs__menu {
  margin-bottom: 10px;
}

.cart-modern__heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.cart-modern__heading .breadcrumbs__title {
  margin: 0;
}

.cart-modern__count {
  color: #a8afbf;
  font-size: 15px;
  font-weight: 500;
}

.cart-modern {
  padding: 0 0 64px;
}

.cart-modern__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 22px;
}

.cart-modern__products,
.cart-modern__summary,
.cart-modern__codes,
.cart-modern__quick {
  border: 1px solid #e4e7ee;
  border-radius: 16px;
  background: #fff;
}

.cart-modern__section-head,
.cart-modern__summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-modern__section-head {
  min-height: 68px;
  padding: 18px 24px;
  border-bottom: 1px solid #e8eaf0;
}

.cart-modern__section-head h2,
.cart-modern__summary-head h2 {
  margin: 0;
  color: #151925;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.cart-modern__section-head > span,
.cart-modern__summary-head > span {
  color: #929bad;
  font-size: 13px;
}

.cart-modern__list {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.cart-modern__product {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 112px 140px 68px;
  align-items: center;
  min-height: 164px;
  gap: 18px;
  padding: 20px 0;
}

.cart-modern__product + .cart-modern__product {
  border-top: 1px solid #e8eaf0;
}

.cart-modern__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 124px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f8fb;
  text-decoration: none !important;
}

.cart-modern__image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.cart-modern__image > .fa {
  color: var(--theme-primary-color);
  font-size: 38px;
}

.cart-modern__info {
  min-width: 0;
}

.cart-modern__name {
  display: -webkit-box;
  overflow: hidden;
  color: #202530;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.38;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-modern__name:hover {
  color: var(--theme-primary-color);
}

.cart-modern__name.is-out-of-stock {
  color: #697386;
}

.cart-modern__options,
.cart-modern__recurring {
  margin: 7px 0 0;
  color: #7c8598;
  font-size: 13px;
  line-height: 1.45;
}

.cart-modern__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 11px;
  color: #9aa3b4;
  font-size: 12px;
  line-height: 1.35;
}

.cart-modern__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #303744;
}

.cart-modern__stock i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #16be5b;
}

.cart-modern__stock.is-out {
  color: #7f8899;
}

.cart-modern__stock.is-out i {
  background: #c4cad5;
}

.cart-modern__quantity .ui-number {
  width: 112px;
  height: 44px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  background: #fff;
}

.cart-modern__quantity .ui-number__input {
  height: 42px;
  font-size: 15px;
}

.cart-modern__quantity .ui-number__decrease,
.cart-modern__quantity .ui-number__increase {
  width: 35px;
}

.cart-modern__price {
  min-width: 0;
  text-align: right;
}

.cart-modern__price strong {
  display: block;
  color: #202530;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-modern__price small {
  display: block;
  margin-top: 3px;
  color: #a3abbb;
  font-size: 11px;
  line-height: 1.25;
}

.cart-modern__price > span {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  color: var(--theme-primary-color);
  font-size: 11px;
}

.cart-modern__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.cart-modern__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f98a9;
  font-size: 17px;
  transition: color .2s ease;
}

.cart-modern__actions button:hover {
  background: transparent;
  color: var(--theme-primary-color);
}

.cart-modern__sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.cart-modern__summary {
  padding: 22px;
}

.cart-modern__summary-head {
  margin-bottom: 22px;
}

.cart-modern__summary-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4f5f8;
  color: #606a7d;
}

.cart-modern__summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: #636d7e;
  font-size: 14px;
}

.cart-modern__summary-row strong {
  color: #202530;
  font-weight: 600;
  text-align: right;
}

.cart-modern__summary-row.is-discount,
.cart-modern__summary-row.is-discount strong {
  color: var(--theme-primary-color);
}

.cart-modern__delivery-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #f5f7fa;
  color: #697386;
  font-size: 12px;
  line-height: 1.4;
}

.cart-modern__delivery-note .fa {
  color: var(--theme-primary-color);
  font-size: 18px;
}

.cart-modern__summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e8ee;
  color: #202530;
  font-size: 18px;
  font-weight: 700;
}

.cart-modern__summary-total strong {
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.cart-modern__reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--theme-primary-color);
  font-size: 13px;
}

.cart-modern__reward strong {
  margin-left: auto;
}

.cart-modern__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 9px;
  background: var(--theme-primary-color);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s ease;
}

.cart-modern__checkout:hover {
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.cart-modern__codes {
  padding: 20px 22px;
}

.cart-modern__codes > h3 {
  margin: 0 0 16px;
  color: #202530;
  font-size: 16px;
  font-weight: 700;
}

.cart-modern__codes .cart__code {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cart-modern__codes .cart__code + .cart__code {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8eaf0;
}

.cart-modern__codes .cart__code-head {
  margin-bottom: 9px;
}

.cart-modern__codes .cart__code-title {
  color: #5f6879;
  font-size: 12px;
  font-weight: 600;
}

.cart-modern__codes .cart__code-action .ui-link {
  color: var(--theme-primary-color);
  font-size: 11px;
  text-decoration: none;
  border: 0;
}

.cart-modern__codes .ui-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.cart-modern__codes .ui-code__input {
  box-sizing: border-box;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  font-size: 13px;
}

.cart-modern__codes .ui-code__btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #202530;
  color: #fff;
  font-size: 12px;
}

.cart-modern__codes .ui-code__btn:hover {
  background: var(--theme-primary-color);
}

.cart-modern__quick {
  padding: 14px 18px;
  text-align: center;
}

.cart-modern__quick a {
  color: #596274;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.cart-modern__quick a:hover {
  color: var(--theme-primary-color);
}

@media (max-width: 1199px) {
  .cart-modern__layout {
    grid-template-columns: 1fr;
  }

  .cart-modern__sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    align-items: start;
  }

  .cart-modern__summary {
    grid-row: span 2;
  }
}

@media (max-width: 991px) {
  .cart-modern__product {
    grid-template-columns: 112px minmax(0, 1fr) 112px 130px;
  }

  .cart-modern__image {
    width: 112px;
    height: 108px;
  }

  .cart-modern__actions {
    position: absolute;
    top: 14px;
    right: 0;
  }
}

@media (max-width: 767px) {
  .cart-modern__breadcrumbs {
    padding-bottom: 14px;
  }

  .cart-modern__heading {
    display: block;
  }

  .cart-modern__count {
    display: block;
    margin-top: 3px;
  }

  .cart-modern {
    padding-bottom: 36px;
  }

  .cart-modern__layout {
    gap: 14px;
  }

  .cart-modern__section-head {
    min-height: 58px;
    padding: 15px 16px;
  }

  .cart-modern__section-head h2 {
    font-size: 17px;
  }

  .cart-modern__section-head > span {
    display: none;
  }

  .cart-modern__list {
    padding: 0 16px;
  }

  .cart-modern__product {
    grid-template-columns: 88px minmax(0, 1fr) 110px;
    gap: 12px;
    min-height: 0;
    padding: 18px 0;
  }

  .cart-modern__image {
    width: 88px;
    height: 88px;
  }

  .cart-modern__info {
    padding-right: 34px;
  }

  .cart-modern__name {
    font-size: 14px;
  }

  .cart-modern__meta {
    display: grid;
    gap: 4px;
    margin-top: 7px;
  }

  .cart-modern__quantity {
    grid-column: 2;
  }

  .cart-modern__price {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: end;
  }

  .cart-modern__actions {
    top: 12px;
  }

  .cart-modern__sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-modern__summary {
    grid-row: auto;
    padding: 18px;
  }

}

@media (max-width: 479px) {
  .cart-modern__product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cart-modern__image {
    width: 76px;
    height: 76px;
  }

  .cart-modern__quantity {
    grid-column: 2;
  }

  .cart-modern__price {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }

  .cart-modern__price strong {
    font-size: 17px;
  }

  .cart-modern__price small {
    display: none;
  }

  .cart-modern__codes .ui-code {
    grid-template-columns: 1fr;
  }

  .cart-modern__codes .ui-code__btn {
    width: 100%;
  }
}

/* Modern order details */
.order-detail {
  min-height: 72vh;
  padding-bottom: 48px;
}

.order-detail *,
.order-detail *::before,
.order-detail *::after {
  box-sizing: border-box;
}

.order-detail-notice {
  position: fixed;
  z-index: 1060;
  top: 112px;
  right: max(24px, calc((100vw - 1420px) / 2));
  display: flex;
  width: min(620px, 100%);
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  padding: 15px 48px 15px 15px;
  border: 1px solid #e1e5ed;
  border-radius: 16px;
  color: #303747;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 25, 40, 0.09);
  animation: order-detail-notice-in 0.24s ease-out both;
}

@keyframes order-detail-notice-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-detail-notice__icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.order-detail-notice--success .order-detail-notice__icon {
  color: #fff;
  background: #20b65a;
}

.order-detail-notice--error .order-detail-notice__icon {
  color: #fff;
  background: #f05252;
}

.order-detail-notice__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail-notice__content {
  min-width: 0;
  padding-top: 1px;
}

.order-detail-notice__content strong {
  display: block;
  margin-bottom: 3px;
  color: #161b2b;
  font-size: 14px;
  font-weight: 700;
}

.order-detail-notice__content p {
  margin: 0;
  color: #747f92;
  font-size: 13px;
  line-height: 1.45;
}

.order-detail-notice__content a {
  color: var(--theme-primary-color);
  font-weight: 600;
  text-decoration: none;
}

.order-detail-notice__content a:hover,
.order-detail-notice__content a:focus {
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  text-decoration: none;
}

.order-detail-notice .close {
  position: absolute;
  top: 10px;
  right: 14px;
  margin: 0;
  padding: 4px;
  color: #8992a2;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  opacity: 1;
}

.order-detail-notice .close:hover,
.order-detail-notice .close:focus {
  color: var(--theme-primary-color);
  background: transparent;
}

@media (max-width: 767px) {
  .order-detail-notice {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.order-detail__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.order-detail__title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.order-detail__title-icon {
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.order-detail__title-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail__title h1 {
  margin: 0;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.order-detail__title p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 5px 0 0;
  color: #8791a5;
  font-size: 14px;
}

.order-detail__title p span {
  position: relative;
  padding-left: 14px;
}

.order-detail__title p span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c7ccd6;
  transform: translateY(-50%);
}

.order-detail__status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 10px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.order-detail__status--complete {
  color: #148447;
  background: #eaf8ef;
}

.order-detail__status--processing {
  color: #596273;
  background: #f0f2f6;
}

.order-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 20px;
}

.order-detail__main {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.order-detail__side {
  min-width: 0;
}

.order-detail-card,
.order-detail-summary {
  overflow: hidden;
  border: 1px solid #e1e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 25, 40, 0.04);
}

.order-detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f5;
}

.order-detail-card__head h2 {
  margin: 0;
  color: #161b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.order-detail-card__head p {
  margin: 4px 0 0;
  color: #8e98aa;
  font-size: 13px;
  line-height: 1.4;
}

.order-detail-card__count {
  display: inline-flex;
  min-width: 34px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #697386;
  background: #f3f5f8;
  font-size: 12px;
  font-weight: 700;
}

.order-detail-products__list {
  padding: 0 22px;
}

.order-detail-product {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f5;
}

.order-detail-product:last-child {
  border-bottom: 0;
}

.order-detail-product__image {
  display: flex;
  width: 100px;
  height: 100px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f8fb;
}

.order-detail-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-detail-product__image svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #aab2c1;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail-product__image--voucher {
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.order-detail-product__image--voucher svg {
  stroke: currentColor;
}

.order-detail-product__content {
  min-width: 0;
}

.order-detail-product__content h3 {
  margin: 0 0 8px;
  color: #161b2b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.order-detail-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #929bad;
  font-size: 12px;
  line-height: 1.4;
}

.order-detail-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.order-detail-product__action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  color: #303747;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.order-detail-product__action:hover,
.order-detail-product__action:focus {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
  text-decoration: none;
}

.order-detail-product__action--primary {
  border-color: color-mix(in srgb, var(--theme-primary-color) 20%, white);
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  background: color-mix(in srgb, var(--theme-primary-color) 8%, white);
}

.order-detail-product__action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail-product__price {
  min-width: 130px;
  text-align: right;
}

.order-detail-product__price strong {
  display: block;
  color: #161b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.order-detail-product__price span {
  display: block;
  margin-top: 4px;
  color: #929bad;
  font-size: 12px;
}

.order-detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.order-detail-info__card {
  display: flex;
  height: 100%;
  min-width: 0;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #e1e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 25, 40, 0.04);
}

.order-detail-info__card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.order-detail-info__icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.order-detail-info__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail-info__card h2 {
  margin: 1px 0 8px;
  color: #161b2b;
  font-size: 16px;
  font-weight: 700;
}

.order-detail-info__card strong {
  display: block;
  color: #303747;
  font-size: 14px;
  line-height: 1.45;
}

.order-detail-info__card p {
  margin: 5px 0 0;
  color: #7f899d;
  font-size: 13px;
  line-height: 1.55;
}

.order-detail-b2b__body,
.order-detail-comment__body {
  padding: 20px 22px;
}

.order-detail-b2b__company {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #303747;
  font-size: 13px;
}

.order-detail-b2b__company strong {
  color: #161b2b;
  font-size: 15px;
}

.order-detail-b2b__company small {
  margin-top: 3px;
  color: #8d96a7;
}

.order-detail-b2b__invoices {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.order-detail-b2b__invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 11px;
  background: #f7f8fb;
}

.order-detail-b2b__invoice div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  color: #5f6879;
  font-size: 12px;
}

.order-detail-b2b__invoice strong {
  color: #161b2b;
  font-size: 14px;
}

.order-detail-b2b__invoice small {
  color: #929bad;
}

.order-detail-b2b__invoice a {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 13px;
  border-radius: 9px;
  color: #fff;
  background: var(--theme-primary-color);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.order-detail-b2b__invoice a:hover,
.order-detail-b2b__invoice a:focus {
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  text-decoration: none;
}

.order-detail-b2b__empty {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: 10px;
  color: #70798b;
  background: #f7f8fb;
  font-size: 13px;
}

.order-detail-comment__body {
  color: #4d5667;
  font-size: 14px;
  line-height: 1.65;
}

.order-detail-timeline__list {
  margin: 0;
  padding: 20px 22px;
  list-style: none;
}

.order-detail-timeline__list li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 22px;
}

.order-detail-timeline__list li:last-child {
  padding-bottom: 0;
}

.order-detail-timeline__list li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -2px;
  left: 5px;
  width: 1px;
  background: #dfe3eb;
}

.order-detail-timeline__marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b9c0cd;
  box-shadow: 0 0 0 2px #d9dee7;
}

.order-detail-timeline__list li.is-current .order-detail-timeline__marker {
  background: var(--theme-primary-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary-color) 34%, white);
}

.order-detail-timeline__content > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.order-detail-timeline__content strong {
  color: #2e3544;
  font-size: 14px;
}

.order-detail-timeline__content time {
  flex: 0 0 auto;
  color: #929bad;
  font-size: 12px;
}

.order-detail-timeline__content p {
  margin: 9px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #60697a;
  background: #f7f8fb;
  font-size: 13px;
  line-height: 1.5;
}

.order-detail-summary {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.order-detail-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf0f5;
}

.order-detail-summary > header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-detail-summary > header span {
  color: #7d8799;
  font-size: 12px;
}

.order-detail-summary > header strong {
  color: #161b2b;
  font-size: 20px;
}

.order-detail-summary > header small {
  max-width: 135px;
  color: var(--theme-primary-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.order-detail-summary__totals {
  padding: 18px 0;
}

.order-detail-summary__totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
  color: #6f798b;
  font-size: 13px;
}

.order-detail-summary__totals > div:last-child {
  margin-bottom: 0;
}

.order-detail-summary__totals strong {
  flex: 0 0 auto;
  color: #303747;
  font-size: 14px;
  text-align: right;
}

.order-detail-summary__totals .is-total {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #edf0f5;
  color: #161b2b;
  font-size: 17px;
  font-weight: 700;
}

.order-detail-summary__totals .is-total strong {
  color: #161b2b;
  font-size: 23px;
}

.order-detail-summary__meta {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #edf0f5;
}

.order-detail-summary__meta > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737d90;
  font-size: 12px;
}

.order-detail-summary__meta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--theme-primary-color);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-detail-summary__back {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
  padding: 11px 16px;
  border-radius: 11px;
  color: #fff;
  background: var(--theme-primary-color);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.order-detail-summary__back:hover,
.order-detail-summary__back:focus {
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  text-decoration: none;
}

.order-detail-summary__back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199px) {
  .order-detail__layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .order-detail-product {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .order-detail-product__image {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 991px) {
  .order-detail__layout {
    grid-template-columns: 1fr;
  }

  .order-detail__side {
    order: -1;
  }

  .order-detail-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .order-detail {
    padding-bottom: 32px;
  }

  .order-detail__heading {
    align-items: flex-start;
  }

  .order-detail__title {
    align-items: flex-start;
  }

  .order-detail__title-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
  }

  .order-detail__title-icon svg {
    width: 23px;
    height: 23px;
  }

  .order-detail__title h1 {
    font-size: 27px;
  }

  .order-detail-card__head {
    padding: 17px;
  }

  .order-detail-products__list {
    padding: 0 17px;
  }

  .order-detail-product {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
  }

  .order-detail-product__image {
    width: 76px;
    height: 76px;
  }

  .order-detail-product__price {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .order-detail-info {
    grid-template-columns: 1fr;
  }

  .order-detail-info__card,
  .order-detail-b2b__body,
  .order-detail-comment__body,
  .order-detail-timeline__list {
    padding: 17px;
  }

  .order-detail-summary {
    padding: 18px;
  }
}

@media (max-width: 479px) {
  .order-detail__heading {
    flex-direction: column;
    gap: 13px;
  }

  .order-detail__status {
    align-self: flex-start;
  }

  .order-detail__title p {
    display: block;
  }

  .order-detail__title p span {
    display: block;
    margin-top: 4px;
  }

  .order-detail-product {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .order-detail-product__image {
    width: 68px;
    height: 68px;
  }

  .order-detail-product__actions {
    gap: 6px;
  }

  .order-detail-product__action {
    min-height: 32px;
    padding: 6px 9px;
  }

  .order-detail-b2b__invoice,
  .order-detail-timeline__content > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-detail-timeline__content time {
    margin-top: 2px;
  }
}

/* Modern address book and address editor */
.address-book,
.address-form-modern {
  min-height: 70vh;
  padding: 26px 0 72px;
  color: #161b2b;
  background: #f6f7fb;
}

.address-book *,
.address-book *::before,
.address-book *::after,
.address-form-modern *,
.address-form-modern *::before,
.address-form-modern *::after {
  box-sizing: border-box;
}

.address-book__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.address-form-modern__heading {
  margin-bottom: 24px;
}

.address-book__heading h1,
.address-form-modern__heading h1 {
  margin: 0 0 5px;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.address-book__heading p,
.address-form-modern__heading p {
  margin: 0;
  color: #7c879d;
  font-size: 15px;
}

.address-form-modern__heading p {
  max-width: 680px;
  margin-top: 8px;
  line-height: 1.5;
}

.address-book__add {
  display: inline-flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--theme-primary-color);
  border-radius: 10px;
  color: #fff;
  background: var(--theme-primary-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}

.address-book__add:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.address-book__summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #7c879d;
  font-size: 14px;
}

.address-book__summary strong {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 12px;
}

.address-book__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.address-card {
  display: flex;
  min-height: 272px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.address-card:hover {
  border-color: #cfd5e0;
  transform: translateY(-2px);
}

.address-card--main {
  border-color: color-mix(in srgb, var(--theme-primary-color) 55%, transparent);
}

.address-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.address-card__icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 21px;
}

.address-card__title {
  min-width: 0;
  flex: 1 1 auto;
}

.address-card__title > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.address-card__title h2 {
  margin: 0;
  color: #161b2b;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.address-card__title p {
  margin: 5px 0 0;
  color: #9aa4b7;
  font-size: 12px;
}

.address-card__badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.address-card__body {
  flex: 1 1 auto;
  padding: 22px 0;
}

.address-card__recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #4d5668;
  font-size: 13px;
  font-weight: 600;
}

.address-card__recipient i {
  color: #a4adbd;
}

.address-card__text {
  color: #252b39;
  font-size: 15px;
  line-height: 1.55;
}

.address-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}

.address-card__actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.address-card__edit {
  color: #fff;
  background: var(--theme-primary-color);
}

.address-card__edit:hover {
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.address-card__delete {
  margin-left: auto;
  color: #e34f58;
  background: #fff;
}

.address-card__delete:hover {
  color: #c93039;
  background: #fff2f3;
}

.address-book__footer {
  margin-top: 22px;
}

.address-book__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667186;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.address-book__footer a:hover {
  color: var(--theme-primary-color);
}

.address-book-empty {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 42px 24px;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.address-book-empty__icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 38px;
}

.address-book-empty h2 {
  margin: 0 0 8px;
  color: #161b2b;
  font-size: 24px;
  font-weight: 700;
}

.address-book-empty p {
  max-width: 520px;
  margin: 0 0 22px;
  color: #7c879d;
  font-size: 15px;
  line-height: 1.55;
}

.address-form-modern__layout {
  display: grid;
  max-width: 1320px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}

.address-form-modern__card {
  width: 100%;
  max-width: none;
  padding: 30px;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  background: #fff;
}

.address-form-modern__card .ui-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.address-form-modern__section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.address-form-modern__section-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 22px;
}

.address-form-modern__section-head h2 {
  margin: 0 0 3px;
  color: #161b2b;
  font-size: 20px;
  font-weight: 700;
}

.address-form-modern__section-head p {
  margin: 0;
  color: #8d97aa;
  font-size: 13px;
}

.address-form-modern .form-group {
  margin-bottom: 20px;
}

.address-form-modern .ui-label {
  display: block;
  margin: 0 0 8px;
  color: #252b39;
  font-size: 13px;
  font-weight: 700;
}

.address-form-modern .ui-input,
.address-form-modern select,
.address-form-modern .ui-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #dce1ea;
  border-radius: 10px;
  color: #252b39;
  background: #fff;
  font-size: 15px;
  line-height: 50px;
  box-shadow: none;
}

.address-form-modern .ui-textarea {
  min-height: 110px;
  padding-top: 13px;
  line-height: 1.5;
}

.address-form-modern .ui-input:focus,
.address-form-modern select:focus,
.address-form-modern .ui-textarea:focus {
  border-color: var(--theme-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 9%, transparent);
}

.address-form-modern__help {
  margin: 7px 0 0;
  color: #9aa4b7;
  font-size: 12px;
}

.address-form-modern .address-group {
  position: relative;
}

.address-form-modern .address-suggestions {
  width: 100%;
  max-height: 280px;
  margin-top: 6px;
  overflow: auto;
  border: 1px solid #e0e4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 31, 44, .12);
}

.address-form-modern .address-suggestions .dropdown-item {
  padding: 11px 14px;
  white-space: normal;
}

.address-form-modern__default {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
  padding: 17px;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  background: #f9fafc;
}

.address-form-modern__default-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 17px;
}

.address-form-modern__default > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.address-form-modern__default strong,
.address-form-modern__default span {
  display: block;
}

.address-form-modern__default strong {
  margin-bottom: 3px;
  color: #252b39;
  font-size: 14px;
}

.address-form-modern__default span {
  color: #8d97aa;
  font-size: 12px;
}

.address-form-modern__switch {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.address-form-modern__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.address-form-modern__switch > span {
  display: block;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #ccd3df;
  transition: background-color .2s ease;
}

.address-form-modern__switch > span::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20, 25, 36, .2);
  content: "";
  transition: transform .2s ease;
}

.address-form-modern__switch input:checked + span {
  background: var(--theme-primary-color);
}

.address-form-modern__switch input:checked + span::after {
  transform: translateX(20px);
}

.address-form-modern__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #edf0f5;
}

.address-form-modern__back,
.address-form-modern__save {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.address-form-modern__back {
  border: 1px solid #dce1ea;
  color: #252b39;
  background: #fff;
}

.address-form-modern__back:hover {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
}

.address-form-modern__save {
  min-width: 210px;
  border: 1px solid var(--theme-primary-color);
  color: #fff;
  background: var(--theme-primary-color);
}

.address-form-modern__save:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.address-form-modern__guide {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  background: #fff;
}

.address-form-modern__guide-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f5;
}

.address-form-modern__guide-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 20px;
}

.address-form-modern__guide-head h2 {
  margin: 1px 0 5px;
  color: #161b2b;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.address-form-modern__guide-head p {
  margin: 0;
  color: #8d97aa;
  font-size: 12px;
  line-height: 1.45;
}

.address-form-modern__guide-list {
  display: grid;
  gap: 20px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.address-form-modern__guide-list li {
  display: grid;
  align-items: start;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.address-form-modern__guide-step {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 12px;
  font-weight: 800;
}

.address-form-modern__guide-list strong {
  display: block;
  margin: 1px 0 4px;
  color: #252b39;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.address-form-modern__guide-list p {
  margin: 0;
  color: #7c879d;
  font-size: 12px;
  line-height: 1.5;
}

.address-form-modern__guide-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 11px;
  color: #55705f;
  background: #f0faf3;
  font-size: 11px;
  line-height: 1.45;
}

.address-form-modern__guide-note i {
  margin-top: 2px;
  color: #11a34a;
  font-size: 14px;
}

@media (max-width: 991px) {
  .address-form-modern__layout {
    grid-template-columns: 1fr;
  }

  .address-form-modern__guide {
    position: static;
  }
}

@media (max-width: 767px) {
  .address-book,
  .address-form-modern {
    padding: 18px 0 48px;
  }

  .address-book__heading {
    display: block;
  }

  .address-book__heading .address-book__add {
    width: 100%;
    margin-top: 17px;
  }

  .address-book__grid {
    grid-template-columns: 1fr;
  }

  .address-card {
    min-height: 0;
    padding: 19px;
  }

  .address-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .address-card__actions a {
    width: 100%;
  }

  .address-card__delete {
    margin-left: 0;
  }

  .address-form-modern__card {
    padding: 20px 16px;
  }

  .address-form-modern__guide {
    padding: 20px 16px;
  }

  .address-form-modern__default {
    align-items: flex-start;
  }

  .address-form-modern__switch {
    margin-top: 7px;
  }

  .address-form-modern__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .address-form-modern__actions > * {
    width: 100%;
  }
}

/* Modern wishlist */
.wishlist-modern {
  min-height: 70vh;
  padding: 26px 0 72px;
}

.wishlist-modern__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.wishlist-modern__heading h1 {
  margin: 0 0 6px;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.wishlist-modern__heading p,
.wishlist-modern__panel-head p {
  margin: 0;
  color: #7c879d;
  font-size: 15px;
  line-height: 1.5;
}

.wishlist-modern__count,
.wishlist-modern__panel-head > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 18px;
  color: #7c879d;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.wishlist-modern__alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  border: 1px solid #cfead9;
  border-radius: 12px;
  color: #14743a;
  background: #f0faf4;
}

.wishlist-modern__alert > svg {
  width: 20px;
  height: 20px;
}

.wishlist-modern__alert .close {
  margin-left: auto;
}

.wishlist-modern__panel {
  overflow: hidden;
  border: 1px solid #e2e6ee;
  border-radius: 18px;
  background: #fff;
}

.wishlist-modern__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid #e9ecf2;
}

.wishlist-modern__panel-head h2 {
  margin: 0 0 3px;
  color: #161b2b;
  font-size: 21px;
  font-weight: 700;
}

.wishlist-modern__panel-head > span {
  background: #f5f6f9;
}

.wishlist-modern__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.wishlist-modern__product {
  display: flex;
  min-width: 0;
}

.wishlist-modern__product .products__item--market {
  min-height: 48rem;
}

.wishlist-modern__product .products__item--market .products__item-in {
  box-shadow: none;
}

.wishlist-modern__product .products__item--market:hover .products__item-in {
  border-color: var(--theme-primary-color);
  box-shadow: none;
}

.wishlist-modern__empty {
  display: grid;
  min-height: 360px;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid #e2e6ee;
  border-radius: 20px;
  background: #fff;
}

.wishlist-modern__empty-visual {
  display: grid;
  width: min(280px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: var(--theme-primary-color);
  background: linear-gradient(145deg, color-mix(in srgb, var(--theme-primary-color) 5%, white), #fff);
}

.wishlist-modern__empty-visual svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
}

.wishlist-modern__empty-content {
  max-width: 560px;
}

.wishlist-modern__empty-content h2 {
  margin: 0 0 12px;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.wishlist-modern__empty-content p {
  max-width: 500px;
  margin: 0;
  color: #7c879d;
  font-size: 16px;
  line-height: 1.6;
}

.wishlist-modern__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.wishlist-modern__empty-actions .ui-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 9px;
  text-decoration: none;
}

.wishlist-modern__empty-actions .ui-btn svg {
  width: 20px;
  height: 20px;
}

.wishlist-modern__secondary {
  border: 1px solid #dce1e9;
  color: #252a32;
  background: #fff;
}

.wishlist-modern__secondary:hover {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
  text-decoration: none;
}

@media (max-width: 1199px) {
  .wishlist-modern__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .wishlist-modern__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wishlist-modern__empty {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wishlist-modern__empty-visual {
    width: 210px;
    justify-self: center;
  }

  .wishlist-modern__empty-content {
    justify-self: center;
  }

  .wishlist-modern__empty-content p {
    margin-right: auto;
    margin-left: auto;
  }

  .wishlist-modern__empty-actions {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .wishlist-modern {
    padding: 18px 0 48px;
  }

  .wishlist-modern__heading {
    display: block;
  }

  .wishlist-modern__heading p {
    margin-bottom: 13px;
  }

  .wishlist-modern__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .wishlist-modern__panel-head {
    align-items: flex-start;
    padding: 16px;
  }

  .wishlist-modern__panel-head p {
    display: none;
  }

  .wishlist-modern__product .products__item--market {
    min-height: 41rem;
  }

  .wishlist-modern__empty {
    min-height: 0;
    padding: 28px 18px 34px;
  }

  .wishlist-modern__empty-visual {
    width: 160px;
  }

  .wishlist-modern__empty-actions {
    flex-direction: column;
  }

  .wishlist-modern__empty-actions .ui-btn {
    width: 100%;
  }
}
/* Modern order history */
.order-history {
  min-height: 72vh;
}

.order-history *,
.order-history *::before,
.order-history *::after {
  box-sizing: border-box;
}

.order-history__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.order-history__heading h1 {
  margin: 0 0 6px;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.order-history__heading p {
  margin: 0;
  color: #7c879d;
  font-size: 15px;
}

.order-history__page-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 9px;
  color: #7c879d;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.order-history__alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-radius: 12px;
}

.order-history__alert > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.order-history__list {
  display: grid;
  gap: 16px;
}

.order-history-card {
  overflow: hidden;
  border: 1px solid #e1e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 34, 51, .045);
}

.order-history-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f5;
}

.order-history-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.order-history-card__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.order-history-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-history-card__identity h2 {
  margin: 0;
  color: #161b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.order-history-card__identity p {
  margin: 4px 0 0;
  color: #8c95a8;
  font-size: 13px;
}

.order-history-card__status {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  padding: 6px 11px;
  border-radius: 9px;
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.order-history-card__status--processing {
  color: #586274;
  background: #eef1f6;
}

.order-history-card__status--complete {
  color: #148148;
  background: #eaf8ef;
}

.order-history-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-width: 0;
}

.order-history-card__products {
  min-width: 0;
  padding: 20px 22px 22px;
}

.order-history-card__section-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 14px;
}

.order-history-card__section-title strong {
  color: #161b2b;
  font-size: 14px;
}

.order-history-card__section-title span {
  color: #9aa2b2;
  font-size: 12px;
}

.order-history-card__product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.order-history-product {
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5e8ef;
  border-radius: 11px;
  color: #252b39;
  background: #fff;
  text-decoration: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}

.order-history-product:hover {
  border-color: var(--theme-primary-color);
  color: #252b39;
  background: color-mix(in srgb, var(--theme-primary-color) 3%, white);
}

.order-history-product__image {
  display: flex;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f8fb;
}

.order-history-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-history-product__name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.order-history-product--more {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.order-history-product--more strong {
  color: var(--theme-primary-color);
  font-size: 20px;
}

.order-history-product--more span {
  color: #8c95a8;
  font-size: 12px;
}

.order-history-card__summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
  border-left: 1px solid #edf0f5;
  background: #fbfcfe;
}

.order-history-card__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7c879d;
  font-size: 13px;
}

.order-history-card__metric strong {
  color: #252b39;
  font-size: 15px;
  font-weight: 700;
}

.order-history-card__metric--total {
  margin-top: 1px;
  padding-top: 14px;
  border-top: 1px solid #e5e8ef;
}

.order-history-card__metric--total strong {
  color: #161b2b;
  font-size: 20px;
}

.order-history-card__details {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid var(--theme-primary-color);
  border-radius: 10px;
  color: #fff;
  background: var(--theme-primary-color);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color .2s ease, background-color .2s ease;
}

.order-history-card__details svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-history-card__details:hover {
  color: #fff;
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.order-history__pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.order-history__pagination .pagination {
  margin: 0;
}

.order-history-empty {
  display: grid;
  grid-template-columns: 210px minmax(0, 420px);
  min-height: 330px;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 44px;
  border: 1px solid #e1e5ed;
  border-radius: 18px;
  background: #fff;
}

.order-history-empty__visual {
  display: flex;
  width: 210px;
  height: 210px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 8%, white);
}

.order-history-empty__visual svg {
  width: 112px;
  height: 112px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-history-empty__content h2 {
  margin: 0 0 10px;
  color: #161b2b;
  font-size: 28px;
  font-weight: 700;
}

.order-history-empty__content p {
  max-width: 390px;
  margin: 0 0 22px;
  color: #7c879d;
  font-size: 15px;
  line-height: 1.55;
}

.order-history-empty__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #dce1ea;
  border-radius: 10px;
  color: #252b39;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.order-history-empty__button:hover {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
}

.order-history-empty__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199px) {
  .order-history-card__body {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .order-history-card__product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .order-history__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .order-history__heading h1 {
    font-size: 28px;
  }

  .order-history-card__head {
    align-items: flex-start;
    padding: 17px;
  }

  .order-history-card__status {
    max-width: 42%;
    text-align: center;
  }

  .order-history-card__body {
    display: block;
  }

  .order-history-card__products {
    padding: 17px;
  }

  .order-history-card__summary {
    padding: 17px;
    border-top: 1px solid #edf0f5;
    border-left: 0;
  }

  .order-history-card__section-title span {
    display: none;
  }

  .order-history-empty {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding: 30px 22px;
    text-align: center;
  }

  .order-history-empty__visual {
    width: 150px;
    height: 150px;
    justify-self: center;
  }

  .order-history-empty__visual svg {
    width: 80px;
    height: 80px;
  }

  .order-history-empty__content p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 479px) {
  .order-history__page-count {
    display: none;
  }

  .order-history-card__head {
    flex-direction: column;
  }

  .order-history-card__status {
    max-width: none;
  }

  .order-history-card__product-list {
    grid-template-columns: 1fr;
  }

  .order-history-product {
    min-height: 82px;
  }

  .order-history-product__image {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
}

/* Shared storefront pagination */
.pagination.pagination--modern {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 30px 0 8px;
  padding: 0;
  list-style: none;
}

.pagination.pagination--modern > li {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.pagination.pagination--modern > li > a,
.pagination.pagination--modern > li > span,
.pagination.pagination--modern > li > a:hover,
.pagination.pagination--modern > li > span:hover {
  display: inline-flex;
  min-width: 42px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #242832;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.pagination.pagination--modern > li:not(.active) > a:hover,
.pagination.pagination--modern > li:not(.active) > a:focus-visible {
  border-color: #e3e6ec;
  background: #fff;
  color: var(--theme-primary-color);
  box-shadow: 0 5px 14px rgba(32, 38, 49, .07);
  outline: 0;
}

.pagination.pagination--modern > .active > span,
.pagination.pagination--modern > .active > span:hover {
  border-color: var(--theme-primary-color);
  background: var(--theme-primary-color);
  color: #fff;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--theme-primary-color) 20%, transparent);
}

.pagination.pagination--modern > .pagination__control > a,
.pagination.pagination--modern > .pagination__control > span,
.pagination.pagination--modern > .pagination__control > a:hover {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-color: #e3e6ec;
  background: #fff;
}

.pagination.pagination--modern > .pagination__control > a:hover,
.pagination.pagination--modern > .pagination__control > a:focus-visible {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
}

.pagination.pagination--modern > .pagination__control svg {
  width: 8px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pagination.pagination--modern > .pagination__control.disabled > span {
  color: #c4cad5;
  cursor: default;
}

.pagination.pagination--modern > .pagination__ellipsis > span,
.pagination.pagination--modern > .pagination__ellipsis > span:hover {
  min-width: 34px;
  padding-right: 5px;
  padding-left: 5px;
  color: #606775;
  cursor: default;
}

@media (max-width: 575px) {
  .pagination.pagination--modern {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 3px;
    margin-top: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pagination.pagination--modern::-webkit-scrollbar {
    display: none;
  }

  .pagination.pagination--modern > li > a,
  .pagination.pagination--modern > li > span,
  .pagination.pagination--modern > li > a:hover,
  .pagination.pagination--modern > li > span:hover {
    min-width: 38px;
    height: 42px;
    padding: 0 9px;
  }

  .pagination.pagination--modern > .pagination__control > a,
  .pagination.pagination--modern > .pagination__control > span,
  .pagination.pagination--modern > .pagination__control > a:hover {
    width: 42px;
    min-width: 42px;
  }
}
/* Modern account password page */
.account-password-modern {
	padding: 30px 0 64px;
	color: #151b2a;
}

.account-password-modern *,
.account-password-modern *::before,
.account-password-modern *::after {
	box-sizing: border-box;
}

.account-password-modern .account-modern__breadcrumbs {
	margin-bottom: 18px;
}

.account-password-modern__heading {
	margin: 0 0 26px;
}

.account-password-modern__heading h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.account-password-modern__heading p {
	max-width: 660px;
	margin: 8px 0 0;
	color: #7d879d;
	font-size: 15px;
	line-height: 1.55;
}

.account-password-modern__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.account-password-modern__card,
.account-password-modern__guide {
	border: 1px solid #dfe4ed;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(24, 32, 49, 0.05);
}

.account-password-modern__card {
	padding: 30px;
}

.account-password-modern__section-head {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 28px;
}

.account-password-modern__section-icon,
.account-password-modern__guide-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 15px;
	color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.account-password-modern__section-icon svg,
.account-password-modern__guide-icon svg {
	width: 25px;
	height: 25px;
}

.account-password-modern__section-head h2,
.account-password-modern__guide h2 {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.account-password-modern__section-head p,
.account-password-modern__guide > p {
	margin: 5px 0 0;
	color: #8993a8;
	font-size: 14px;
	line-height: 1.45;
}

.account-password-modern__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.account-password-modern__fields .form-group {
	min-width: 0;
	margin: 0;
}

.account-password-modern__fields .ui-label {
	display: block;
	margin-bottom: 9px;
	color: #202636;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.account-password-modern__field {
	position: relative;
}

.account-password-modern__field .ui-input {
	width: 100%;
	height: 56px;
	padding: 0 52px 0 48px;
	border: 1px solid #dce2ec;
	border-radius: 12px;
	outline: 0;
	color: #151b2a;
	background: #fafbfc;
	font-size: 15px;
	line-height: 56px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.account-password-modern__field .ui-input::placeholder {
	color: #a2abba;
	opacity: 1;
}

.account-password-modern__field .ui-input:focus {
	border-color: var(--theme-primary-color);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 10%, transparent);
}

.account-password-modern__field.is-error .ui-input {
	border-color: #ef5350;
}

.account-password-modern__field-icon {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 16px;
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: #8e98aa;
	transform: translateY(-50%);
	pointer-events: none;
}

.account-password-modern__field-icon svg {
	width: 100%;
	height: 100%;
}

.account-password-modern__toggle {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	outline: 0;
	color: #6f798c;
	background: transparent;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.account-password-modern__toggle:hover,
.account-password-modern__toggle:focus-visible {
	color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.account-password-modern__eye {
	width: 21px;
	height: 21px;
}

.account-password-modern__eye--closed,
.account-password-modern__toggle[aria-pressed="true"] .account-password-modern__eye--open {
	display: none;
}

.account-password-modern__toggle[aria-pressed="true"] .account-password-modern__eye--closed {
	display: block;
}

.account-password-modern__fields .ui-error {
	display: block;
	margin-top: 7px;
	color: #ef5350;
	font-size: 13px;
	line-height: 1.4;
}

.account-password-modern__requirements {
	margin-top: 22px;
	padding: 17px 18px;
	border-radius: 14px;
	background: #f6f8fb;
}

.account-password-modern__requirements > strong {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 700;
}

.account-password-modern__requirements ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.account-password-modern__requirements li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #7e899c;
	font-size: 13px;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.account-password-modern__requirements li > span {
	position: relative;
	width: 17px;
	height: 17px;
	border: 1px solid #cbd2df;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-password-modern__requirements li.is-valid {
	color: #138a4b;
}

.account-password-modern__requirements li.is-valid > span {
	border-color: #19b968;
	background: #19b968;
}

.account-password-modern__requirements li.is-valid > span::after {
	position: absolute;
	top: 3px;
	left: 5px;
	width: 5px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
}

.account-password-modern__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e6eaf1;
}

.account-password-modern__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 12px;
	outline: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.account-password-modern__button svg {
	width: 20px;
	height: 20px;
}

.account-password-modern__button--secondary {
	border-color: #dce2ec;
	color: #303848;
	background: #fff;
}

.account-password-modern__button--secondary:hover {
	border-color: var(--theme-primary-color);
	color: var(--theme-primary-color);
}

.account-password-modern__button--primary {
	min-width: 220px;
	color: #fff;
	background: var(--theme-primary-color);
}

.account-password-modern__button--primary:hover {
	color: #fff;
	background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.account-password-modern__guide {
	position: sticky;
	top: 104px;
	padding: 28px;
}

.account-password-modern__guide-icon {
	margin-bottom: 18px;
}

.account-password-modern__guide ul {
	display: grid;
	gap: 18px;
	margin: 24px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid #e6eaf1;
	list-style: none;
}

.account-password-modern__guide li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.account-password-modern__guide li > span {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: #333b4b;
	background: #f5f7fa;
}

.account-password-modern__guide li > span svg {
	width: 21px;
	height: 21px;
}

.account-password-modern__guide li strong,
.account-password-modern__guide li small {
	display: block;
}

.account-password-modern__guide li strong {
	margin: 1px 0 4px;
	color: #202636;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.account-password-modern__guide li small {
	color: #8993a8;
	font-size: 12px;
	line-height: 1.45;
}

@media (max-width: 991px) {
	.account-password-modern__layout {
		grid-template-columns: 1fr;
	}

	.account-password-modern__guide {
		position: static;
	}
}

@media (max-width: 767px) {
	.account-password-modern {
		padding: 22px 0 44px;
	}

	.account-password-modern__heading h1 {
		font-size: 31px;
	}

	.account-password-modern__card,
	.account-password-modern__guide {
		border-radius: 16px;
	}

	.account-password-modern__card {
		padding: 22px;
	}

	.account-password-modern__fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575px) {
	.account-password-modern__heading h1 {
		font-size: 28px;
	}

	.account-password-modern__card,
	.account-password-modern__guide {
		padding: 18px;
	}

	.account-password-modern__section-head {
		align-items: flex-start;
	}

	.account-password-modern__actions {
		flex-direction: column-reverse;
	}

	.account-password-modern__button,
	.account-password-modern__button--primary {
		width: 100%;
		min-width: 0;
	}
}

/* Modern account logout page */
.account-logout-modern {
	min-height: 540px;
	padding: 30px 0 68px;
	color: #151b2a;
	background: #f6f7fb;
}

.account-logout-modern *,
.account-logout-modern *::before,
.account-logout-modern *::after {
	box-sizing: border-box;
}

.account-logout-modern svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.account-logout-modern .account-modern__breadcrumbs {
	margin-bottom: 26px;
}

.account-logout-modern__card {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	padding: 42px 46px 38px;
	border: 1px solid #e1e5ed;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(22, 27, 43, .055);
}

.account-logout-modern__heading {
	display: flex;
	align-items: center;
	gap: 24px;
}

.account-logout-modern__visual {
	display: flex;
	flex: 0 0 82px;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	border-radius: 20px;
	color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 8%, white);
}

.account-logout-modern__visual svg {
	width: 43px;
	height: 43px;
	stroke-width: 2;
}

.account-logout-modern__heading-copy {
	min-width: 0;
}

.account-logout-modern__eyebrow {
	margin: 0 0 7px;
	color: var(--theme-primary-color);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.account-logout-modern__heading h1 {
	margin: 0;
	color: #151b2a;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.18;
}

.account-logout-modern__description {
	max-width: 610px;
	margin: 10px 0 0;
	color: #778199;
	font-size: 15px;
	line-height: 1.5;
}

.account-logout-modern__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 30px;
	padding: 21px 0;
	border-top: 1px solid #e7eaf0;
	border-bottom: 1px solid #e7eaf0;
}

.account-logout-modern__fact {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding-right: 24px;
}

.account-logout-modern__fact + .account-logout-modern__fact {
	padding-right: 0;
	padding-left: 24px;
	border-left: 1px solid #e7eaf0;
}

.account-logout-modern__fact-icon {
	display: flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 10%, white);
}

.account-logout-modern__fact-icon svg {
	width: 21px;
	height: 21px;
}

.account-logout-modern__fact strong,
.account-logout-modern__fact small {
	display: block;
}

.account-logout-modern__fact strong {
	margin: 0 0 4px;
	color: #202638;
	font-size: 14px;
	line-height: 1.25;
}

.account-logout-modern__fact small {
	color: #8b95aa;
	font-size: 12px;
	line-height: 1.4;
}

.account-logout-modern__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.account-logout-modern__button {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 250px;
	min-height: 52px;
	padding: 0 25px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.account-logout-modern__button:hover,
.account-logout-modern__button:focus {
	text-decoration: none !important;
}

.account-logout-modern__button svg {
	width: 19px;
	height: 19px;
}

.account-logout-modern__button--primary {
	color: #fff;
	border-color: var(--theme-primary-color);
	background: var(--theme-primary-color);
}

.account-logout-modern__button--primary:hover,
.account-logout-modern__button--primary:focus {
	color: #fff;
	border-color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
	background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.account-logout-modern__button--secondary {
	color: #202638;
	border-color: #dce1ea;
	background: #fff;
}

.account-logout-modern__button--secondary:hover,
.account-logout-modern__button--secondary:focus {
	color: var(--theme-primary-color);
	border-color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 4%, white);
}

@media (max-width: 991px) {
	.account-logout-modern__card {
		max-width: 760px;
	}
}

@media (max-width: 767px) {
	.account-logout-modern {
		padding: 22px 0 48px;
	}

	.account-logout-modern .account-modern__breadcrumbs {
		margin-bottom: 18px;
	}

	.account-logout-modern__card {
		padding: 32px 28px;
	}

	.account-logout-modern__visual {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.account-logout-modern__visual svg {
		width: 38px;
		height: 38px;
	}

	.account-logout-modern__heading h1 {
		font-size: 30px;
	}

	.account-logout-modern__facts {
		grid-template-columns: 1fr;
		padding: 8px 0;
	}

	.account-logout-modern__fact,
	.account-logout-modern__fact + .account-logout-modern__fact {
		padding: 14px 0;
		border-left: 0;
	}

	.account-logout-modern__fact + .account-logout-modern__fact {
		border-top: 1px solid #e7eaf0;
	}
}

@media (max-width: 575px) {
	.account-logout-modern__card {
		padding: 26px 20px;
	}

	.account-logout-modern__heading {
		align-items: flex-start;
		gap: 15px;
	}

	.account-logout-modern__visual {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
		border-radius: 15px;
	}

	.account-logout-modern__visual svg {
		width: 29px;
		height: 29px;
	}

	.account-logout-modern__heading h1 {
		font-size: 26px;
	}

	.account-logout-modern__facts {
		margin-top: 22px;
	}

	.account-logout-modern__actions {
		flex-direction: column;
	}

	.account-logout-modern__button {
		width: 100%;
	}
}

/* Modern bonus history */
.bonus-history__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 28px;
}

.bonus-history__eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--theme-primary-color);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bonus-history__heading h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 750;
	line-height: 1.12;
}

.bonus-history__heading p {
	max-width: 680px;
	margin: 10px 0 0;
	color: #7d879c;
	font-size: 15px;
	line-height: 1.55;
}

.bonus-history__count {
	flex: 0 0 auto;
	padding: 9px 14px;
	border: 1px solid #e3e7ee;
	border-radius: 999px;
	color: #7d879c;
	background: #fff;
	font-size: 13px;
	font-weight: 650;
}

.bonus-history__guide {
	margin-bottom: 22px;
}

.bonus-history__guide > h2,
.bonus-history__panel-head h2 {
	margin: 0;
	font-size: 21px;
	font-weight: 750;
	line-height: 1.25;
}

.bonus-history__guide > h2 {
	margin-bottom: 15px;
}

.bonus-history__guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.bonus-guide-card {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	min-height: 126px;
	padding: 22px;
	border: 1px solid #e1e5ed;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(24, 31, 48, .045);
}

.bonus-guide-card__icon,
.bonus-history-row__operation-icon,
.bonus-history__state > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.bonus-guide-card__icon svg,
.bonus-history-row__operation-icon svg,
.bonus-history__state > span svg {
	width: 24px;
	height: 24px;
}

.bonus-guide-card h3 {
	margin: 1px 0 6px;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.3;
}

.bonus-guide-card p {
	margin: 0;
	color: #7d879c;
	font-size: 13px;
	line-height: 1.48;
}

.bonus-history__panel {
	overflow: hidden;
	border: 1px solid #e1e5ed;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 15px 38px rgba(24, 31, 48, .055);
}

.bonus-history__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	border-bottom: 1px solid #e7eaf0;
}

.bonus-history__panel-head p {
	margin: 5px 0 0;
	color: #929caf;
	font-size: 13px;
}

.bonus-history__legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.bonus-history__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border-radius: 999px;
	color: #697386;
	background: #f6f7fa;
	font-size: 12px;
	font-weight: 650;
}

.bonus-history__legend-item i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #20b969;
}

.bonus-history__legend-item--reserved i { background: var(--theme-primary-color); }
.bonus-history__legend-item--spent i { background: #ef5a61; }

.bonus-history__list {
	display: grid;
}

.bonus-history-row {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(125px, .45fr) minmax(440px, 1.8fr);
	align-items: center;
	gap: 24px;
	padding: 20px 24px;
}

.bonus-history-row + .bonus-history-row {
	border-top: 1px solid #edf0f4;
}

.bonus-history-row__operation {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.bonus-history-row__operation-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.bonus-history-row__operation-icon svg {
	width: 21px;
	height: 21px;
}

.bonus-history-row--reserved .bonus-history-row__operation-icon {
	color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
	background: color-mix(in srgb, var(--theme-primary-color) 14%, white);
}

.bonus-history-row--spent .bonus-history-row__operation-icon {
	color: #d9434a;
	background: #fff0f1;
}

.bonus-history-row--pending .bonus-history-row__operation-icon {
	color: #3678df;
	background: #edf4ff;
}

.bonus-history-row--refund .bonus-history-row__operation-icon {
	color: #078ea8;
	background: #e9f9fc;
}

.bonus-history-row__operation-meta {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.bonus-history-row__badge {
	color: #1d2433;
	font-size: 14px;
	font-weight: 750;
}

.bonus-history-row__status {
	overflow: hidden;
	color: #929caf;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bonus-history-row__amount {
	color: #20a960;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;
}

.bonus-history-row--reserved .bonus-history-row__amount { color: color-mix(in srgb, var(--theme-primary-color) 85%, black); }
.bonus-history-row--spent .bonus-history-row__amount { color: #dc454d; }
.bonus-history-row--pending .bonus-history-row__amount { color: #3678df; }
.bonus-history-row--refund .bonus-history-row__amount { color: #078ea8; }

.bonus-history-row__amount small {
	font-size: 11px;
	font-weight: 650;
}

.bonus-history-row__dates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.bonus-history-row__dates > div {
	min-width: 0;
	padding: 10px 12px;
	border-radius: 11px;
	background: #f7f8fa;
}

.bonus-history-row__dates span,
.bonus-history-row__dates strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bonus-history-row__dates span {
	margin-bottom: 4px;
	color: #9ba4b5;
	font-size: 11px;
}

.bonus-history-row__dates strong {
	color: #414a5c;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}

.bonus-history__state {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 150px;
	padding: 30px 24px;
}

.bonus-history__state > span {
	width: 54px;
	height: 54px;
	border-radius: 16px;
}

.bonus-history__state h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 750;
}

.bonus-history__state p {
	max-width: 620px;
	margin: 0;
	color: #7d879c;
	font-size: 14px;
	line-height: 1.5;
}

.bonus-history__state--unavailable > span {
	color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
	background: color-mix(in srgb, var(--theme-primary-color) 14%, white);
}

@media (max-width: 1199px) {
	.bonus-history-row {
		grid-template-columns: minmax(220px, 1fr) auto;
	}

	.bonus-history-row__dates {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.bonus-history__heading,
	.bonus-history__panel-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.bonus-history__heading h1 {
		font-size: 31px;
	}

	.bonus-history__guide-grid {
		grid-template-columns: 1fr;
	}

	.bonus-guide-card {
		min-height: 0;
	}

	.bonus-history__legend {
		justify-content: flex-start;
	}

	.bonus-history-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bonus-history-row__dates {
		grid-column: auto;
	}
}

@media (max-width: 479px) {
	.bonus-history__heading {
		margin-bottom: 22px;
	}

	.bonus-history__panel-head,
	.bonus-history-row,
	.bonus-history__state {
		padding-right: 18px;
		padding-left: 18px;
	}

	.bonus-history-row__dates {
		grid-template-columns: 1fr;
	}
}
