/* AMPER v17 — customer account, orders, promotions and responsive admin UI */

/* Shared account geometry */
.account-page .account-shell,
.account-page .account-content,
.account-page .account-content > *,
.account-page .account-grid > *,
.account-page .card-heading > *,
.account-page .sectionTitle > * {
  min-width: 0;
}

.account-page .account-shell {
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 24px;
}

.account-page .account-content {
  display: grid;
  gap: 20px;
}

.account-page .account-content > .catalog-head,
.account-page .account-content > .account-hero,
.account-page .account-content > .profile-loyalty-summary,
.account-page .account-content > .account-kpis,
.account-page .account-content > .account-grid,
.account-page .account-content > .profile-section,
.account-page .account-content > .order-kpis,
.account-page .account-content > .filter-chips,
.account-page .account-content > .account-card,
.account-page .account-content > .loyalty-current,
.account-page .account-content > .loyalty-conditions,
.account-page .account-content > .bonus-history {
  margin-block: 0;
}

.account-page .account-content h1,
.account-page .account-content h2,
.account-page .account-content h3,
.account-page .account-content p,
.account-page .account-content b,
.account-page .account-content strong,
.account-page .account-content dd,
.account-page .account-content a {
  overflow-wrap: anywhere;
}

.account-page .account-nav {
  top: 20px;
  border-color: #e0e5ea;
  border-radius: 18px;
}

.account-page .account-nav__title {
  min-width: 0;
}

.account-page .account-nav__title div,
.account-page .account-nav nav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page .account-nav nav a {
  grid-template-columns: 22px minmax(0, 1fr) 10px;
}

.account-page .catalog-head {
  align-items: flex-start;
  margin-bottom: 0;
  padding: 4px 0 2px;
}

.account-page .catalog-head > div {
  min-width: 0;
}

.account-page .catalog-head h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.account-page .catalog-head p {
  max-width: 760px;
  line-height: 1.55;
}

.account-page .catalog-head > .btn {
  flex: 0 0 auto;
}

/* Profile overview */
.account-profile-page .account-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(223, 0, 21, .32), transparent 30%),
    linear-gradient(135deg, #171d23, #2b333b);
}

.account-profile-page .account-hero::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.account-profile-page .account-hero > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.account-profile-page .account-hero h1 {
  margin: 7px 0 9px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
}

.account-profile-page .account-hero p {
  max-width: 690px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .76);
}

.account-profile-page .account-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
}

.account-profile-page .account-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
}

.account-profile-page .account-status {
  display: grid;
  flex: 0 0 min(250px, 34%);
  gap: 3px;
  max-width: 310px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(9px);
}

.account-profile-page .account-status small,
.account-profile-page .account-status span {
  color: rgba(255, 255, 255, .7);
}

.account-profile-page .account-status b {
  color: #fff;
  font-size: 20px;
}

.account-profile-page .profile-loyalty-summary {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .48fr) auto;
  gap: 18px;
  margin: 0;
  border-radius: 17px;
}

.account-profile-page .profile-loyalty-summary > div {
  min-width: 0;
}

.account-profile-page .profile-loyalty-summary dl {
  gap: 7px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f6f8fa;
}

.account-profile-page .profile-loyalty-summary dl > div {
  min-width: 0;
}

.account-profile-page .profile-loyalty-summary dd {
  text-align: right;
}

.account-page .account-kpis {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
}

.account-page .account-kpi {
  min-height: 108px;
  align-content: space-between;
  padding: 18px 19px;
  border-radius: 15px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.account-page .account-kpi:hover {
  border-color: #efb2b8;
  box-shadow: 0 12px 28px rgba(29, 38, 48, .08);
  transform: translateY(-2px);
}

.account-page .account-kpi span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-page .account-kpi b {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.15;
}

.account-profile-page .account-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 16px;
}

.account-page .account-card,
.account-page .profile-section {
  border-radius: 17px;
}

.account-page .account-card .sectionTitle {
  align-items: center;
  margin: 0 0 13px;
}

.account-page .account-card .sectionTitle h2,
.account-page .profile-section .card-heading h2 {
  font-size: clamp(20px, 2vw, 25px);
}

.account-profile-page .quick-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-page .quick-link {
  min-height: 92px;
  border: 1px solid transparent;
}

.account-profile-page .quick-link:hover {
  border-color: #efc2c6;
}

.account-profile-page .summaryBox {
  margin-top: 10px;
}

.account-profile-page .summaryBox b {
  max-width: 58%;
  text-align: right;
}

.account-profile-page .profile-section .stack-form,
.account-profile-page .profile-section .formgrid {
  min-width: 0;
}

.account-profile-page .profile-section .form-actions {
  flex-wrap: wrap;
}

/* Recent orders */
.account-profile-page .profile-orders {
  gap: 0;
}

.account-profile-page .profile-order-row {
  grid-template-columns: minmax(185px, 1fr) max-content max-content minmax(110px, max-content) 16px;
  gap: 10px 14px;
  min-width: 0;
  padding: 15px 3px;
  border-radius: 10px;
  text-decoration: none;
}

.account-profile-page .profile-order-row:hover {
  padding-inline: 10px;
  color: inherit;
  background: #f8f9fa;
}

.account-profile-page .profile-order-row__main b,
.account-profile-page .profile-order-row__main small {
  min-width: 0;
}

.account-profile-page .profile-order-row__main small {
  line-height: 1.4;
}

.account-profile-page .profile-order-row > strong {
  font-size: 14px;
}

.account-profile-page .profile-order-row .status,
.account-page .orders-table .status,
.account-order-page .order-detail-head .status {
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.account-profile-page .profile-order-row > i {
  color: #aeb5bc;
}

/* Orders list */
.account-orders-page .order-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-orders-page .order-kpis > .card {
  min-height: 94px;
  justify-content: center;
  border-radius: 15px;
}

.account-orders-page .filter-chips {
  max-width: 100%;
  margin: 0;
  padding: 0 0 4px;
  scrollbar-width: thin;
}

.account-orders-page .filter-chips--statuses {
  margin-top: -10px;
}

.account-orders-page .orders-table-card {
  min-width: 0;
  border-radius: 17px;
}

.account-orders-page .orders-table {
  min-width: 880px;
  table-layout: fixed;
}

.account-orders-page .orders-table th:nth-child(1) { width: 13%; }
.account-orders-page .orders-table th:nth-child(2) { width: 18%; }
.account-orders-page .orders-table th:nth-child(3) { width: 15%; }
.account-orders-page .orders-table th:nth-child(4) { width: 11%; }
.account-orders-page .orders-table th:nth-child(5) { width: 22%; }
.account-orders-page .orders-table th:nth-child(6) { width: 15%; }
.account-orders-page .orders-table th:nth-child(7) { width: 52px; }

.account-orders-page .orders-table th,
.account-orders-page .orders-table td {
  overflow-wrap: anywhere;
}

.account-orders-page .orders-table td {
  line-height: 1.35;
}

.account-orders-page .orders-table td:last-child {
  padding-inline: 6px;
  text-align: center;
}

.account-orders-page .order-kind,
.account-orders-page .stock-now,
.account-orders-page .payment-ready {
  width: fit-content;
  max-width: 100%;
}

.account-orders-page .order-table-total {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

/* Order detail */
.account-order-page .order-created-notice,
.account-order-page .related-orders,
.account-order-page .reserve-wait-card,
.account-order-page .reserve-ready-card {
  min-width: 0;
}

.account-order-page .order-created-notice {
  margin-bottom: 14px;
  border-radius: 14px;
}

.account-order-page .related-orders {
  margin-bottom: 18px;
}

.account-order-page .related-orders a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.account-order-page .order-detail-head {
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #e2e7ec;
  border-radius: 17px;
  background: #fff;
}

.account-order-page .order-detail-head > * {
  min-width: 0;
}

.account-order-page .order-detail-head h1 {
  font-size: clamp(28px, 3vw, 38px);
}

.account-order-page .order-detail-head__status {
  flex: 0 0 auto;
  max-width: 300px;
}

.account-order-page .order-detail-head__status > b {
  font-size: clamp(22px, 2.5vw, 29px);
  text-align: right;
}

.account-order-page .reserve-wait-card,
.account-order-page .reserve-ready-card {
  border-radius: 17px;
}

.account-order-page .order-detail--v16 {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 18px;
}

.account-order-page .order-lines,
.account-order-page .order-summary--v16,
.account-order-page .order-timeline {
  min-width: 0;
  border-radius: 17px;
}

.account-order-page .order-lines {
  overflow: hidden;
}

.account-order-page .order-lines > .sectionTitle {
  margin: 0 0 14px;
}

.account-order-page .order-lines-table {
  min-width: 610px;
  table-layout: fixed;
}

.account-order-page .order-lines-table th:first-child { width: 55%; }
.account-order-page .order-lines-table th:not(:first-child) { width: 15%; }

.account-order-page .order-lines-table td,
.account-order-page .order-lines-table th {
  overflow-wrap: anywhere;
}

.account-order-page .order-lines-table .cart-product {
  min-width: 0;
}

.account-order-page .order-lines-table .cart-product > div,
.account-order-page .order-lines-table .cart-product a,
.account-order-page .order-lines-table .cart-product b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-order-page .order-summary--v16 {
  overflow: hidden;
}

.account-order-page .order-summary--v16 h2 {
  margin-top: 0;
}

.account-order-page .order-summary__row > span {
  min-width: 0;
  color: #667382;
}

.account-order-page .order-summary__row > b {
  max-width: 58%;
  text-align: right;
}

.account-order-page .order-summary--v16 > p {
  overflow-wrap: anywhere;
}

.account-order-page .order-timeline {
  margin-top: 0;
}

/* Documents */
.account-documents-page .account-card {
  overflow: hidden;
}

.account-documents-page .account-card + .account-card {
  margin-top: 0;
}

.account-documents-page .document-list {
  gap: 0;
}

.account-documents-page .document-row {
  grid-template-columns: 52px minmax(160px, 1fr) minmax(100px, max-content) max-content;
  gap: 12px 16px;
  min-width: 0;
  padding: 15px 2px;
}

.account-documents-page .document-row > div,
.account-documents-page .document-row > div b,
.account-documents-page .document-row > div small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-documents-page .document-row strong {
  text-align: right;
  white-space: normal;
}

.account-documents-page .document-row .smallbtn {
  justify-content: center;
  white-space: nowrap;
}

/* Saved legal entities */
.account-entities-page .entity-layout {
  grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.account-entities-page .entity-layout > *,
.account-entities-page .entity-card__head > *,
.account-entities-page .entity-card__details > span {
  min-width: 0;
}

.account-entities-page .entity-form {
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 17px;
  scrollbar-width: thin;
}

.account-entities-page .entity-form label,
.account-entities-page .entity-form input,
.account-entities-page .entity-form textarea {
  min-width: 0;
}

.account-entities-page .entity-card {
  overflow: hidden;
  border-radius: 17px;
}

.account-entities-page .entity-card__head h3 {
  margin: 0 0 3px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-entities-page .entity-card__head > div:first-child > div {
  min-width: 0;
}

.account-entities-page .entity-card__details > span {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-entities-page .entity-card__actions {
  flex-wrap: wrap;
}

/* Loyalty account */
.loyalty-page .bonus-hero {
  min-width: 0;
}

.loyalty-page .bonus-hero > * {
  min-width: 0;
}

.loyalty-page .bonus-hero h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.loyalty-page .bonus-balance-card {
  width: 100%;
  max-width: 360px;
}

.account-bonuses-page .loyalty-current,
.account-bonuses-page .loyalty-conditions,
.account-bonuses-page .bonus-history {
  min-width: 0;
  border-radius: 17px;
}

.account-bonuses-page .loyalty-current > *,
.account-bonuses-page .loyalty-current dl,
.account-bonuses-page .loyalty-current dl > div {
  min-width: 0;
}

.account-bonuses-page .loyalty-current dd {
  text-align: right;
  overflow-wrap: anywhere;
}

.account-bonuses-page .loyalty-conditions .table,
.account-bonuses-page .bonus-history .table {
  min-width: 680px;
}

.account-bonuses-page .loyalty-conditions td,
.account-bonuses-page .bonus-history td {
  overflow-wrap: anywhere;
}

.loyalty-page .loyalty-level-card {
  min-width: 0;
  overflow: hidden;
}

.loyalty-page .loyalty-level-card h3,
.loyalty-page .loyalty-level-card p,
.loyalty-page .loyalty-level-card dd {
  overflow-wrap: anywhere;
}

/* Public promotions */
.promotion-page .promo-hero--v17 {
  margin-bottom: 34px;
}

.promotion-page .promo-hero--v17 > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.promotion-page .promo-hero--v17 h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.promotion-page .promo-hero--v17 p {
  margin: 0;
  line-height: 1.65;
}

.promotion-page .promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.promotion-page .promo-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.promotion-page .promo-hero__facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 700;
}

.promotion-page .promotion-section {
  scroll-margin-top: 120px;
}

.promotion-page .promotion-section__head {
  align-items: flex-start;
  margin-top: 0;
}

.promotion-page .promotion-section__head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.promotion-page .promotion-grid--v17 {
  align-items: stretch;
}

.promotion-page .promotion-card--v17 {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  min-width: 0;
  border-radius: 19px;
}

.promotion-page .promotion-card--v17 .promotion-card__media {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #1c2329, #3a444d);
}

.promotion-page .promotion-card--v17 .promotion-card__media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .35));
}

.promotion-page .promotion-card--v17 .promotion-card__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotion-page .promotion-card--v17 .promotion-card__media > i {
  color: rgba(255, 255, 255, .78);
  font-size: 62px;
}

.promotion-page .promotion-card--v17 .promotion-card__media > .promotion-card__discount {
  top: 15px;
  left: 15px;
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.promotion-page .promotion-card--v17 .promotion-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
}

.promotion-page .promotion-card--v17 .promotion-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 12px;
  margin: 0;
  color: #697582;
  font-size: 11px;
}

.promotion-page .promotion-card--v17 .promotion-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.promotion-page .promotion-card--v17 h2 {
  margin: 12px 0 9px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.promotion-page .promotion-card--v17 p {
  min-height: 0;
  margin: 0 0 20px;
  line-height: 1.55;
}

.promotion-page .promotion-card__action {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.promotion-page .promotion-empty {
  border-radius: 19px;
}

.promotion-page .promotion-cta {
  align-items: center;
  margin-top: 36px;
}

/* Promotions admin */
.admin-page .admin-promotion-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.admin-page .admin-promotion-stats > .card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 14px;
}

.admin-page .admin-promotion-stats span {
  color: var(--muted);
  font-size: 12px;
}

.admin-page .admin-promotion-stats b {
  font-size: 25px;
}

.admin-page .admin-promotions-layout {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 450px);
}

.admin-page .promotion-admin-list {
  align-content: start;
  min-width: 0;
}

.admin-page .promotion-admin-card {
  grid-template-columns: 180px minmax(0, 1fr);
  min-width: 0;
  border-radius: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.admin-page .promotion-admin-card.is-selected {
  border-color: #e79aa2;
  box-shadow: 0 0 0 2px rgba(223, 0, 21, .08);
}

.admin-page .promotion-admin-card > .promotion-admin-card__media {
  display: grid;
  min-height: 230px;
  overflow: hidden;
  padding: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #242c33, #4c5862);
}

.admin-page .promotion-admin-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-page .promotion-admin-card__media i {
  font-size: 46px;
  opacity: .7;
}

.admin-page .promotion-admin-card > .promotion-admin-card__content {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 18px;
}

.admin-page .promotion-admin-card__head {
  align-items: flex-start;
}

.admin-page .promotion-admin-card__head h3 {
  min-width: 0;
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-page .promotion-admin-card__head .status {
  flex: 0 0 auto;
}

.admin-page .promotion-admin-card__content > p {
  display: -webkit-box;
  min-height: 42px;
  margin: 9px 0 13px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-page .promotion-admin-card dl {
  margin: 0 0 14px;
}

.admin-page .promotion-admin-card dl > div {
  min-width: 0;
}

.admin-page .promotion-admin-card dd {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-page .promotion-admin-card__edit {
  justify-self: start;
}

.admin-page .promotion-admin-empty {
  align-self: start;
}

.admin-page .promotion-admin-editor {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border-radius: 16px;
  scrollbar-width: thin;
}

.admin-page .promotion-admin-editor .card-heading {
  margin-bottom: 0;
}

.admin-page .promotion-admin-editor .card-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-page .promotion-editor-options {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.admin-page .promotion-editor-options .checkline {
  min-width: 0;
  margin: 0;
}

.admin-page .promotion-products-input {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.admin-page .promotion-upload-box img[hidden] {
  display: none;
}

.admin-page .promotion-editor-actions {
  flex-wrap: wrap;
  margin-top: 1px;
}

.admin-page .promotion-editor-actions .smallbtn--danger {
  margin-left: auto;
}

/* Orders admin: preserve usable widths instead of squeezing text */
.admin-page .order-admin-toolbar {
  flex-wrap: wrap;
}

.admin-page .admin-orders-layout,
.admin-page .admin-orders-layout > * {
  min-width: 0;
}

.admin-page .admin-orders-layout .admin-table-card {
  overflow: hidden;
}

.admin-page .admin-orders-layout .table-wrap {
  overflow: auto;
}

.admin-page .admin-orders-layout .table {
  min-width: 1060px;
}

.admin-page .admin-orders-layout .table th,
.admin-page .admin-orders-layout .table td {
  overflow-wrap: anywhere;
}

.admin-page .admin-orders-layout .status {
  max-width: 180px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.admin-page .admin-order-editor,
.admin-page .admin-order-editor form,
.admin-page .admin-order-editor .form-section,
.admin-page .admin-order-items,
.admin-page .admin-order-items > div,
.admin-page .admin-order-items span {
  min-width: 0;
}

.admin-page .admin-order-editor {
  border-radius: 16px;
  scrollbar-width: thin;
}

.admin-page .admin-order-editor h3,
.admin-page .admin-order-items b,
.admin-page .admin-order-items small {
  overflow-wrap: anywhere;
}

.admin-page .admin-order-items strong {
  flex: 0 0 auto;
}

.admin-page .order-editor-kind {
  flex-wrap: wrap;
}

/* Responsive account navigation and layouts */
@media (max-width: 1240px) {
  .account-page .account-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-profile-page .profile-loyalty-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-profile-page .profile-loyalty-summary dl,
  .account-profile-page .profile-loyalty-summary > a {
    grid-column: 1 / -1;
  }

  .account-profile-page .profile-loyalty-summary dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-profile-page .profile-loyalty-summary dl > div {
    display: grid;
    gap: 2px;
  }

  .account-profile-page .profile-loyalty-summary dd {
    text-align: left;
  }

  .account-profile-page .profile-order-row {
    grid-template-columns: minmax(175px, 1fr) max-content max-content 16px;
  }

  .account-profile-page .profile-order-row__status {
    grid-column: 1 / 4;
  }
}

@media (max-width: 1040px) {
  .account-page .account-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .account-page .account-nav {
    position: static;
    overflow: hidden;
    padding: 8px;
  }

  .account-page .account-nav__title,
  .account-page .account-nav__logout {
    display: none;
  }

  .account-page .account-nav nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .account-page .account-nav nav a {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .account-page .account-nav nav a span {
    overflow: visible;
  }

  .account-page .account-nav nav a > i:last-child {
    display: none;
  }

  .account-profile-page .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-page .quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-entities-page .entity-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-entities-page .entity-form {
    position: static;
    max-height: none;
  }

  .admin-page .admin-promotions-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .promotion-admin-editor {
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .account-profile-page .account-hero {
    display: grid;
  }

  .account-profile-page .account-status {
    width: 100%;
    max-width: none;
  }

  .account-profile-page .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-page .order-detail--v16 {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-page .order-summary--v16 {
    position: static;
  }

  .promotion-page .promo-hero--v17 {
    gap: 24px;
  }

  .promotion-page .promotion-grid--v17 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .promotion-period-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .account-orders-page .orders-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .account-orders-page .orders-table thead {
    display: none;
  }

  .account-orders-page .orders-table tbody {
    display: grid;
    gap: 11px;
    padding: 11px;
  }

  .account-orders-page .orders-table tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    padding: 16px 52px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .account-orders-page .orders-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
  }

  .account-orders-page .orders-table td::before {
    display: block;
    margin-bottom: 4px;
    color: #778390;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .account-orders-page .orders-table td:last-child {
    position: absolute;
    top: 14px;
    right: 12px;
    width: auto;
  }

  .account-orders-page .orders-table td:last-child::before {
    display: none;
  }

  .account-order-page .order-detail-head {
    align-items: flex-start;
  }

  .account-order-page .order-lines-table {
    min-width: 0;
  }

  .account-order-page .order-lines-table tbody {
    display: grid;
    gap: 10px;
  }

  .account-order-page .order-lines-table tr {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .account-order-page .order-lines-table td:first-child {
    padding-bottom: 9px !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .account-order-page .order-lines-table .cart-product img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .account-documents-page .document-row {
    grid-template-columns: 48px minmax(0, 1fr) max-content;
  }

  .account-documents-page .document-row > .smallbtn,
  .account-documents-page .document-row > .muted {
    grid-column: 2 / -1;
  }

  .account-bonuses-page .loyalty-conditions .table,
  .account-bonuses-page .bonus-history .table {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .account-page .catalog-head > .btn {
    width: 100%;
  }

  .account-profile-page .profile-loyalty-summary dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-page .profile-order-row {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 8px;
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .account-profile-page .profile-order-row:hover {
    padding-inline: 14px;
  }

  .account-profile-page .profile-order-row .order-kind,
  .account-profile-page .profile-order-row > strong,
  .account-profile-page .profile-order-row__status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .account-profile-page .profile-order-row > i {
    grid-column: 2;
    grid-row: 1;
  }

  .account-profile-page .profile-order-row__status {
    min-width: 0;
  }

  .account-orders-page .order-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-documents-page .document-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 12px;
    margin-bottom: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .account-documents-page .document-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .account-documents-page .document-row > strong,
  .account-documents-page .document-row > .smallbtn,
  .account-documents-page .document-row > .muted {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .account-documents-page .document-row .smallbtn {
    width: 100%;
  }

  .account-entities-page .entity-card__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-entities-page .entity-card__actions,
  .account-entities-page .entity-card__actions form,
  .account-entities-page .entity-card__actions .smallbtn {
    width: 100%;
  }

  .account-entities-page .entity-card__actions .smallbtn {
    justify-content: center;
  }

  .account-bonuses-page .loyalty-conditions .table-wrap,
  .account-bonuses-page .bonus-history .table-wrap {
    overflow: visible;
  }

  .account-bonuses-page .loyalty-conditions .table,
  .account-bonuses-page .loyalty-conditions tbody,
  .account-bonuses-page .loyalty-conditions tr,
  .account-bonuses-page .loyalty-conditions td,
  .account-bonuses-page .bonus-history .table,
  .account-bonuses-page .bonus-history tbody,
  .account-bonuses-page .bonus-history tr,
  .account-bonuses-page .bonus-history td {
    display: block;
    width: 100%;
  }

  .account-bonuses-page .loyalty-conditions thead,
  .account-bonuses-page .bonus-history thead {
    display: none;
  }

  .account-bonuses-page .loyalty-conditions tbody,
  .account-bonuses-page .bonus-history tbody {
    display: grid;
    gap: 10px;
  }

  .account-bonuses-page .loyalty-conditions tr,
  .account-bonuses-page .bonus-history tr {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .account-bonuses-page .loyalty-conditions td,
  .account-bonuses-page .bonus-history td {
    display: grid;
    grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #edf0f2;
  }

  .account-bonuses-page .loyalty-conditions td:last-child,
  .account-bonuses-page .bonus-history td:last-child {
    border-bottom: 0;
  }

  .account-bonuses-page .loyalty-conditions td::before,
  .account-bonuses-page .bonus-history td::before {
    color: #768290;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
  }

  .promotion-page .promotion-grid--v17 {
    grid-template-columns: minmax(0, 1fr);
  }

  .promotion-page .promotion-card--v17 {
    grid-template-rows: 190px minmax(0, 1fr);
  }

  .admin-page .admin-promotion-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .promotion-admin-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .promotion-admin-card > .promotion-admin-card__media {
    min-height: 180px;
    max-height: 220px;
  }

  .admin-page .promotion-admin-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page .promotion-admin-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .promotion-editor-actions > * {
    width: 100%;
    justify-content: center;
  }

  .admin-page .promotion-editor-actions .smallbtn--danger {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .account-page .account-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-page .account-hero {
    padding: 23px 19px;
  }

  .account-profile-page .account-hero__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .account-profile-page .account-hero__meta span {
    width: 100%;
    border-radius: 10px;
  }

  .account-profile-page .quick-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-page .quick-link {
    min-height: 78px;
  }

  .account-profile-page .profile-loyalty-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-page .profile-loyalty-summary dl,
  .account-profile-page .profile-loyalty-summary > a {
    grid-column: auto;
  }

  .account-orders-page .orders-table tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-page .order-detail-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }

  .account-order-page .order-detail-head__status {
    align-items: flex-start;
    max-width: none;
  }

  .account-order-page .order-detail-head__status > b {
    text-align: left;
  }

  .account-order-page .reserve-wait-card,
  .account-order-page .reserve-ready-card {
    padding: 15px;
  }

  .account-order-page .order-repeat-actions > * {
    width: 100%;
  }

  .loyalty-page .promo-hero__actions,
  .loyalty-page .info-hero__actions,
  .promotion-page .promo-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .loyalty-page .promo-hero__actions > *,
  .loyalty-page .info-hero__actions > *,
  .promotion-page .promo-hero__actions > * {
    width: 100%;
  }

  .promotion-page .promo-hero__facts {
    align-items: stretch;
    flex-direction: column;
  }

  .promotion-page .promo-hero__facts span {
    width: 100%;
    border-radius: 10px;
  }
}
