.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}

.toast--error {
  background: #c0392b;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background: var(--color-footer-bg);
}

.footer__inner {
  display: grid;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 16px 32px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__logo-image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.footer__brand p,
.footer__copy {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer__nav a {
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
}

.footer__nav a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-btn-primary-hover);
}

.btn--ghost {
  background: var(--color-search-bg);
  color: var(--color-text);
}

.btn--wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty {
  margin-top: 24px;
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--color-search-bg);
}

.empty p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

body.backend-offline {
  overflow: hidden;
}

.backend-offline {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-overlay);
}

.backend-offline__card {
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--color-search-bg);
  text-align: center;
}

.backend-offline__title {
  margin: 0 0 12px;
  font-size: 28px;
}

.backend-offline__text {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 10px;
  background: var(--color-bg);
  overflow: hidden;
}

.qty[hidden] {
  display: none !important;
}

.qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty__btn {
  width: 36px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.qty__value {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.qty--card {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .qty--card {
    flex: 0 0 auto;
  }
}

.qty--page {
  height: 48px;
  border: 1px solid var(--color-border);
}

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-bg);
  box-shadow: 0 12px 32px var(--color-card-shadow);
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item:focus {
  background: var(--color-search-bg);
}

.search-suggest__item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.search-suggest__item span {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__item strong {
  color: var(--color-price);
  font-size: 13px;
  white-space: nowrap;
}

.cart {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.cart__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--color-search-bg);
}

.cart__media,
.cart__media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cart__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  text-decoration: none;
}

.cart__price,
.cart__hint,
.cart__continue {
  color: var(--color-muted);
  font-size: 13px;
}

.cart__qty {
  grid-column: 1 / -1;
}

.cart__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
}

.cart__remove {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.cart__summary {
  padding: 20px;
  border-radius: 20px;
  background: var(--color-search-bg);
}

.cart__summary h2 {
  margin: 0;
  font-size: 16px;
}

.cart__total {
  margin: 8px 0 4px;
  color: var(--color-price);
  font-size: 28px;
  font-weight: 800;
}

.cart__continue {
  display: inline-block;
  margin-top: 12px;
}

.auth {
  max-width: 420px;
  margin: 12px auto 0;
}

.auth .page__title {
  margin-bottom: 16px;
}

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: var(--color-search-bg);
  text-decoration: none;
}

.auth__tab.is-active {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.auth__form,
.order {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: var(--color-search-bg);
}

.page--fullbleed .account__back,
.page--fullbleed .page__title {
  display: block;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.page--fullbleed .account__back {
  margin: 0 0 16px;
}

.password-form {
  --password-wave-size: 72px;
  --password-wave-gap: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 20px;
  padding: 20px calc(var(--password-wave-size) + var(--password-wave-gap));
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-search-bg);
}

.password-form__wave {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--password-wave-size);
  overflow: hidden;
  pointer-events: none;
}

.password-form__wave--left {
  left: 0;
}

.password-form__wave--right {
  right: 0;
  transform: scaleX(-1);
}

.password-form__wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--password-wave-size);
  height: 200%;
  min-height: 640px;
}

.password-form__wave-a {
  fill: color-mix(in srgb, var(--color-badge) 48%, transparent);
}

.password-form__wave-b {
  fill: color-mix(in srgb, var(--color-badge) 24%, var(--color-price) 16%);
}

[data-theme="dark"] .password-form__wave-a {
  fill: color-mix(in srgb, var(--color-badge) 56%, transparent);
}

[data-theme="dark"] .password-form__wave-b {
  fill: color-mix(in srgb, #8ec5ff 34%, var(--color-price) 10%);
}

.password-form .field,
.password-form .btn {
  position: relative;
  z-index: 1;
}

.password-form .btn {
  width: 100%;
  min-height: 48px;
}

.password-form .field__error {
  position: relative;
  z-index: 1;
}

@media (max-width: 520px) {
  .password-form {
    --password-wave-size: 52px;
    --password-wave-gap: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .password-form__wave--left svg {
    animation: password-wave 12s linear infinite;
  }

  .password-form__wave--right svg {
    animation: password-wave 15s linear infinite reverse;
  }
}

@keyframes password-wave {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}

.field textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-badge);
}

.field__error {
  min-height: 1.2em;
  margin: 0;
  color: #c0392b;
  font-size: 13px;
  font-weight: 400;
}

.auth__hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.auth__hint a {
  color: inherit;
}

.auth__flash {
  margin: 0 0 12px;
  color: var(--color-price);
  font-size: 14px;
  font-weight: 600;
}

.auth__presets-label {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth__question {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.auth__question + .auth__question {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.auth__question .field__error:empty {
  display: none;
}

.auth__question-add,
.security-prompt__actions .btn--ghost {
  background: var(--color-surface);
}

.auth__question-remove {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 28px;
  padding: 0 2px;
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
}

.auth__question-remove[hidden],
.auth__question-add[hidden] {
  display: none;
}

.auth__question-add {
  width: 100%;
}

.auth__question-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth__preset {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.auth__preset:hover,
.auth__preset:focus-visible {
  box-shadow: 0 0 0 2px var(--color-badge);
}

body.security-prompt-open {
  overflow: hidden;
}

.security-prompt {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 136px 16px 16px;
  background: color-mix(in srgb, #000 46%, transparent);
}

.security-prompt__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 520px);
  max-height: calc(100vh - 152px);
  margin: 0;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-search-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.security-prompt__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.security-prompt__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.security-prompt__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.security-prompt__editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.security-prompt__scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.security-prompt__editor [data-security-list] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-prompt__error:empty {
  display: none;
}

.security-prompt__error:not(:empty) {
  margin: 0;
}

.security-prompt__actions {
  display: flex;
  gap: 8px;
}

.security-prompt__actions .btn--ghost {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 48px;
}

.security-prompt__actions .btn--primary {
  flex: 1 1 auto;
  min-height: 48px;
}

@media (max-width: 560px) {
  .security-prompt {
    align-items: flex-end;
    padding: 8px;
  }

  .security-prompt__card {
    width: 100%;
    max-height: 78vh;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .security-prompt__head {
    gap: 4px;
  }

  .security-prompt__title {
    font-size: 18px;
  }

  .security-prompt__text {
    font-size: 13px;
    line-height: 1.35;
  }

  .security-prompt__editor,
  .security-prompt__scroll,
  .security-prompt__editor [data-security-list] {
    gap: 8px;
  }

  .auth__question {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .security-prompt .field {
    gap: 4px;
    font-size: 13px;
  }

  .security-prompt .field input {
    height: 40px;
  }

  .auth__presets-label {
    font-size: 12px;
  }

  .auth__question-presets {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  }

  .auth__preset {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .auth__question-add,
  .security-prompt__actions .btn--ghost,
  .security-prompt__actions .btn--primary {
    min-height: 40px;
  }
}

.account {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}

.account__widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: var(--color-search-bg);
  text-align: left;
}

.account__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.account__avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-badge-soft-bg);
  color: var(--color-badge);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.account__profile-text {
  min-width: 0;
  flex: 1 1 auto;
}

.account__profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.account__profile-text h2,
.account__widget h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.account__profile-name h2 {
  min-width: 0;
}

.account__profile-text h2,
.account__email p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__email {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
}

.account__profile-text p,
.account__password-link,
.account__role {
  margin: 0;
  color: var(--color-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.account__password-link {
  flex-shrink: 0;
}

.account__password-link:hover,
.account__password-link:focus-visible {
  color: var(--color-text);
}

.account__role {
  margin-top: 4px;
}

.account__back {
  display: inline-flex;
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 14px;
  text-decoration: none;
}

.account__back:hover {
  color: var(--color-text);
}

.account__widget-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account__widget-actions .btn {
  justify-content: center;
}

.account__widget .btn--ghost {
  background: var(--color-surface);
}

.field--check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.field--check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.auth__admin[hidden] {
  display: none;
}

.btn--danger {
  background: #c0392b;
  color: #fff;
}

.btn--danger:hover {
  background: #a93226;
}

.manage-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}

.manage-tabs__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--color-search-bg);
  text-decoration: none;
}

.manage-tabs__item.is-active {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.manage-grid {
  display: grid;
  gap: 24px;
}

.manage-form h2,
.manage-list h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.manage-preview img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.manage-list__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.manage-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.manage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.manage-table th,
.manage-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.manage-table thead th {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.manage-table tbody tr {
  border-top: 1px solid var(--color-table-border);
}

.manage-table tbody tr:first-child {
  border-top: 0;
}

.manage-table img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.manage-table__sort {
  color: inherit;
  text-decoration: none;
}

.manage-table__sort:hover,
.manage-table__sort.is-active {
  color: var(--color-text);
}

.manage-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.manage-list__head h2 {
  margin: 0;
}

.manage-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-filter__label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.manage-filter__select {
  min-width: 200px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--color-search-bg);
  color: var(--color-text);
  font: inherit;
}

.manage-filter__select option,
.manage-filter__select optgroup,
.field select option,
.field select optgroup,
.order__status option {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.manage-table__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-badge-soft-bg);
  color: var(--color-badge);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}

.manage-table__sku {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.3;
}

.manage-table__actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.manage-table__actions .btn--compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.manage-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.manage-list__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--color-search-bg);
}

.manage-list__item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.manage-list__item p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.manage-list__item a {
  text-decoration: none;
}

.manage-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.order__status {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

@media (min-width: 900px) {
  .manage-grid {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: start;
  }

  .manage-list__item {
    grid-template-columns: 48px 1fr auto;
  }

  .manage-list__actions {
    grid-column: auto;
  }
}

.manage-form__row {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .manage-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.account__orders h2 {
  margin: 0;
  font-size: 18px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.order-list > li {
  display: flex;
  min-width: 0;
}

.order-list > li > .order-card {
  flex: 1 1 auto;
  width: 100%;
}

.account .order-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manage-orders .order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--color-search-bg);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.order-card:hover {
  background: var(--color-hover);
}

.order-card.is-new {
  box-shadow: 0 0 0 2px var(--color-badge);
}

.order-card__thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 52px;
}

.order-card__thumbs img,
.order-card__thumb-empty,
.order-card__more {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 0;
  border-radius: 14px;
  background: var(--color-surface);
  object-fit: contain;
}

.order-card__thumb-empty {
  display: inline-block;
}

.order-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

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

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card__head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card__status {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-badge-soft-bg);
  color: var(--color-badge);
  font-size: 12px;
  font-weight: 700;
}

.order-card__status.is-done {
  background: rgba(31, 168, 85, 0.14);
  color: var(--color-stock);
}

.order-card__status.is-stop {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.order-card__meta {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.order-card__total {
  font-weight: 700;
}

.order-card__more-link {
  color: var(--color-badge);
  font-size: 13px;
  font-weight: 600;
}

body.order-sheet-open {
  overflow: hidden;
}

.order-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.order-sheet[hidden] {
  display: none;
}

.order-sheet.is-open {
  display: block;
}

.order-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.36);
}

.order-sheet__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(440px, 100%);
  padding: 20px 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-bg);
  box-shadow: -16px 0 48px var(--color-card-shadow);
}

.order-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-sheet__head h2 {
  margin: 0;
  font-size: 20px;
}

.order-sheet__head p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.order-sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--color-search-bg);
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.order-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-track__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--color-muted);
}

.order-track__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 10px);
  right: calc(-50% + 10px);
  height: 2px;
  background: var(--color-border);
}

.order-track__step.is-done:not(:last-child)::after {
  background: var(--color-badge);
}

.order-track__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
}

.order-track__step.is-done .order-track__dot,
.order-track__step.is-current .order-track__dot {
  background: var(--color-badge);
}

.order-track__step.is-current .order-track__label,
.order-track__step.is-done .order-track__label {
  color: var(--color-text);
}

.order-track__label {
  font-size: 11px;
  line-height: 1.3;
}

.order-sheet__alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
  font-weight: 600;
}

.order-sheet__buyer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--color-search-bg);
}

.order-sheet__buyer p {
  margin: 0;
}

.order-sheet__section {
  margin: 0;
  font-size: 16px;
}

.order-sheet__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-sheet__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.order-sheet__media,
.order-sheet__media img,
.order-sheet__media .order-card__thumb-empty {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--color-search-bg);
  object-fit: contain;
}

.order-sheet__info p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.order-sheet__name {
  font-weight: 600;
  text-decoration: none;
}

.order-sheet__name:hover {
  text-decoration: underline;
}

.order-sheet__sum {
  white-space: nowrap;
}

.order-sheet__totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.order-sheet__totals p {
  margin: 0;
}

.order-sheet__panel > .btn {
  width: 100%;
}

@media (max-width: 767px) {
  .account__widget--profile {
    width: 100%;
    max-width: none;
  }

  .account .order-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    align-content: start;
  }

  .manage-orders .order-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .account .order-card__thumbs img,
  .account .order-card__thumb-empty,
  .account .order-card__more {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .manage-orders .order-card__thumbs {
    min-height: 40px;
  }

  .manage-orders .order-card__thumbs img,
  .manage-orders .order-card__thumb-empty,
  .manage-orders .order-card__more {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .account .order-card__head,
  .manage-orders .order-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }

  .account .order-card__head strong,
  .manage-orders .order-card__head strong {
    font-size: 13px;
  }

  .account .order-card__status,
  .manage-orders .order-card__status {
    font-size: 11px;
    padding: 2px 6px;
  }

  .account .order-card__meta {
    display: none;
  }

  .account .order-card__foot,
  .manage-orders .order-card__foot {
    margin-top: 6px;
  }

  .account .order-card__more-link,
  .manage-orders .order-card__more-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .order-sheet__panel {
    top: auto;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
    padding: 36px 24px 40px;
  }

  .cart {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .cart__item {
    grid-template-columns: 88px 1fr auto auto;
    align-items: center;
  }

  .cart__media,
  .cart__media img {
    width: 88px;
    height: 88px;
  }

  .cart__qty,
  .cart__sum {
    grid-column: auto;
  }

  .account {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .account__widget--profile {
    grid-column: 1;
    grid-row: 1;
  }

  .account__orders {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .account .order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.footer__nav--legal a {
  font-size: 13px;
}

.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 12px 32px var(--color-card-shadow);
}

.cookie-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice__text a {
  color: inherit;
}

.cookie-notice__accept {
  align-self: stretch;
}

@media (min-width: 768px) {
  .cookie-notice {
    right: 24px;
    bottom: 24px;
    left: auto;
    flex-direction: row;
    align-items: center;
    max-width: 620px;
  }

  .cookie-notice__accept {
    align-self: auto;
    flex-shrink: 0;
  }
}
