:root {
  --bs-primary: #e10600;
  --bs-primary-rgb: 225, 6, 0;
  --bs-primary-text-emphasis: #b50400;
  --bs-primary-bg-subtle: #ffe7dc;
  --bs-primary-border-subtle: #f4c7b0;
  --bs-info: #f28c00;
  --bs-info-rgb: 242, 140, 0;
  --bs-info-text-emphasis: #b85f00;
  --bs-info-bg-subtle: #fff1e1;
  --bs-info-border-subtle: #f6d1a8;
  --bs-link-color: #e10600;
  --bs-link-hover-color: #b50400;
}

body {
  background: #fff4ee;
  padding-bottom: 88px;
}

.btn-primary {
  --bs-btn-bg: #e10600;
  --bs-btn-border-color: #e10600;
  --bs-btn-hover-bg: #c20500;
  --bs-btn-hover-border-color: #c20500;
  --bs-btn-active-bg: #a90400;
  --bs-btn-active-border-color: #a90400;
}

.btn-outline-primary {
  --bs-btn-color: #e10600;
  --bs-btn-border-color: #e10600;
  --bs-btn-hover-bg: #e10600;
  --bs-btn-hover-border-color: #e10600;
  --bs-btn-active-bg: #c20500;
  --bs-btn-active-border-color: #c20500;
}

.btn-link {
  --bs-btn-color: #e10600;
  --bs-btn-hover-color: #b50400;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e10600, #f28c00);
  color: #fff;
  font-weight: 700;
}

.logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.hero-box {
  background: #fff;
  border: 1px solid #f2d3c3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(165, 42, 0, 0.12);
}

.muted {
  color: #6b5b53;
}

.order-card {
  border: 1px solid #f2d3c3;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.map-box {
  position: relative;
  width: 100%;
  height: 360px;
  border: 1px solid #f2d3c3;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

#suggestions {
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #f2d3c3;
  border-radius: 0 0 12px 12px;
}

.form-card {
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.address-card {
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  padding: 16px;
  background: #fff7f2;
}

.cabinet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 4px;
  border: 1px solid #f2d3c3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f2, #ffe7dc);
}

.cabinet-cta-title {
  font-weight: 700;
  color: #2f241f;
  margin-bottom: 4px;
}

.cabinet-cta-text {
  color: #6b5b53;
  font-size: 14px;
}

.cabinet-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-top-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
}

.cabinet-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cabinet-action:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.cabinet-action-secondary {
  border: 1px solid #f2d3c3;
  background: #fff;
  color: #2f241f;
  box-shadow: 0 8px 24px rgba(165, 42, 0, 0.06);
}

.cabinet-action-secondary:hover {
  border-color: #e5b89f;
  box-shadow: 0 12px 26px rgba(165, 42, 0, 0.1);
  color: #2f241f;
}

.cabinet-action-accent {
  border: 1px solid #f4c7b0;
  background: linear-gradient(135deg, #fff7f2, #ffe7dc);
  color: #2f241f;
  box-shadow: 0 10px 28px rgba(225, 6, 0, 0.08);
}

.cabinet-action-accent:hover {
  border-color: #efb391;
  box-shadow: 0 14px 30px rgba(225, 6, 0, 0.12);
  color: #2f241f;
}

.cabinet-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff4ee;
  color: #e10600;
  font-size: 18px;
}

.cabinet-action-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.cabinet-action-title {
  font-weight: 700;
  color: #2f241f;
  line-height: 1.2;
}

.cabinet-action-text {
  margin-top: 4px;
  color: #6b5b53;
  font-size: 13px;
  line-height: 1.35;
}

.cabinet-action-arrow {
  color: #ad7a61;
  font-size: 16px;
}

.bonus-card-compact {
  border: 1px solid #f2d3c3;
  box-shadow: 0 10px 28px rgba(165, 42, 0, 0.08);
}

.bonus-card-balance {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #2f241f;
  margin-bottom: 8px;
}

.bonus-card-history {
  margin-top: 8px;
}

.bonus-card-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f3e0d6;
}

.support-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e10600, #f28c00);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(225, 6, 0, 0.28);
  z-index: 2400;
  font-size: 24px;
}

.support-widget:hover {
  transform: translateY(-2px);
  color: #fff;
}

.support-widget .badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

.chat-bubble {
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff7f2;
  max-width: 85%;
  display: flex;
  gap: 10px;
}

.chat-left {
  margin-right: auto;
  background: #fff7f2;
}

.chat-right {
  margin-left: auto;
  background: #ffe0d1;
}

.typing {
  font-style: italic;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffd9c2;
  flex-shrink: 0;
}

.chat-avatar.support {
  display: grid;
  place-items: center;
  color: #e10600;
  font-weight: 700;
}

.price-list {
  display: grid;
  gap: 10px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  background: #fff7f2;
}

.price-range {
  font-weight: 600;
  color: #2f241f;
}

.price-value {
  color: #e10600;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-notes {
  display: grid;
  gap: 10px;
}

.price-note {
  border: 1px solid #f2d3c3;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #6b5b53;
  white-space: pre-line;
}

.order-steps-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.order-steps-nav::-webkit-scrollbar {
  display: none;
}

.order-step-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #f2d3c3;
  border-radius: 999px;
  background: #fff7f2;
  color: #7c665a;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.order-step-pill span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f2d3c3;
  color: #2f241f;
  font-size: 12px;
}

.order-step-pill.is-active {
  border-color: #e10600;
  background: #fff0ea;
  color: #2f241f;
}

.order-step-pill.is-active span,
.order-step-pill.is-complete span {
  background: #e10600;
  border-color: #e10600;
  color: #fff;
}

.order-step-card {
  border: 1px solid #f2d3c3;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
}

.order-step-head {
  margin-bottom: 18px;
}

.order-step-number {
  color: #e10600;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.order-step-title {
  margin: 0;
  font-size: 24px;
  color: #2f241f;
}

.order-step-text {
  color: #6b5b53;
  margin: 6px 0 0;
}

.order-address-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-mode-button.is-active {
  background: #e10600;
  color: #fff;
  border-color: #e10600;
}

.order-selected-address {
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  padding: 14px;
  background: #fff7f2;
}

.order-selected-address-title {
  font-weight: 700;
  color: #2f241f;
  margin-bottom: 4px;
}

.order-selected-address-text {
  color: #2f241f;
  margin-bottom: 4px;
}

.order-selected-address-meta {
  color: #6b5b53;
  font-size: 14px;
}

.order-map-shell {
  position: relative;
  border: 1px solid #f2d3c3;
  border-radius: 16px;
  padding: 14px;
  background: #fff7f2;
  z-index: 1;
}

.address-top-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.address-top-grid .form-text {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.region-picker {
  position: relative;
  z-index: 1200;
}

.region-native-shell,
.region-desktop-shell {
  width: 100%;
}

.region-picker-input {
  padding-right: 40px;
}

.region-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1300;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(47, 36, 31, 0.12);
  padding: 6px;
}

.region-picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2f241f;
}

.region-picker-option:hover,
.region-picker-option.is-active {
  background: #fff7f2;
}

.region-picker-option-name {
  display: block;
  font-weight: 600;
}

.region-picker-option-area {
  display: block;
  color: #8a6f61;
  font-size: 12px;
  margin-top: 2px;
}

.region-invalid-feedback {
  display: none;
  margin-top: 6px;
}

.region-invalid-feedback.is-visible {
  display: block;
}


.order-inline-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-inline-summary-item,
.order-confirm-row {
  border: 1px solid #f2d3c3;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff7f2;
}

.order-inline-summary-label,
.order-confirm-row span {
  display: block;
  color: #8a6f61;
  font-size: 13px;
  margin-bottom: 4px;
}

.order-inline-summary-value,
.order-confirm-row strong {
  color: #2f241f;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.order-confirm-row:last-child strong {
  color: #e10600;
}

.order-confirm-box {
  display: grid;
  gap: 10px;
}

.order-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.history-orders-list {
  display: grid;
  gap: 10px;
}

.history-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px;
  gap: 18px;
  align-items: start;
  border: 1px solid #f2d3c3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}

.history-order-main {
  min-width: 0;
}

.history-order-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.history-order-volume {
  font-size: 16px;
  font-weight: 800;
  color: #2f241f;
}

.history-order-address {
  font-size: 16px;
  color: #2f241f;
  word-break: break-word;
}

.history-order-meta {
  display: grid;
  gap: 4px;
  color: #6b5b53;
  font-size: 14px;
}

.history-order-label {
  color: #8a6f61;
  font-weight: 600;
}

.history-order-price {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.history-order-price-old {
  color: #8a8a8a;
  text-decoration: line-through;
  font-weight: 600;
  margin-bottom: 4px;
}

.history-order-price-current {
  color: #2f241f;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.history-order-actions {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: flex-end;
}

.history-order-repeat {
  min-width: 108px;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .cabinet-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cabinet-cta-button {
    width: 100%;
    justify-content: center;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .order-inline-summary {
    grid-template-columns: 1fr;
  }

  .order-step-actions {
    flex-direction: column;
  }

  .price-value {
    font-size: 21px;
  }

  .support-widget {
    bottom: 92px;
    right: 16px;
  }

  .cabinet-action {
    min-height: 78px;
  }

  .history-order-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-order-price,
  .history-order-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .history-order-price-current {
    font-size: 24px;
  }
}

.legal-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1900;
  border-top: 1px solid #f2d3c3;
  background: rgba(255, 247, 242, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(165, 42, 0, 0.08);
}

.legal-bar-inner {
  padding: 12px 0;
  color: #6b5b53;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.toast-container.position-fixed,
.toast.position-fixed,
.position-fixed.bottom-0.end-0.toast-container,
.position-fixed.bottom-0.end-0.toast {
  z-index: 2300 !important;
}

/* FINAL footer fix: footer must be after content, not overlay */
.legal-bar {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 32px 0 0 0 !important;
  padding: 16px 14px !important;
  background: #fff3ed !important;
  border-top: 1px solid #ffd8c8 !important;
  box-shadow: none !important;
  z-index: 1 !important;
}

.legal-bar-inner {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  text-align: center !important;
  color: #7a6258 !important;
}

body {
  padding-bottom: 0 !important;
  overflow-x: hidden !important;
}

@media (max-width: 640px) {
  .legal-bar {
    margin-top: 24px !important;
    padding: 14px 12px !important;
  }

  .legal-bar-inner {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}

/* FINAL mobile home adaptation */
@media (max-width: 640px) {
  body {
    overflow-x: hidden !important;
  }

  .hero-box {
    padding: 16px !important;
    margin: 10px 0 16px !important;
    border-radius: 18px !important;
  }

  .hero-box .row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 12px !important;
  }

  .hero-box h1,
  .hero-box .h3 {
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
  }

  .hero-box .badge {
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }

  .price-list {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .price-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 13px 14px !important;
    border-radius: 14px !important;
  }

  .price-range {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .price-value {
    font-size: 22px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
  }

  .price-notes,
  .price-note {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .hero-box .d-flex.gap-2 {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-box .btn {
    width: 100% !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }

  .hero-box .col-6 {
    width: 100% !important;
  }

  .hero-box .p-3 {
    padding: 14px !important;
  }

  .row.g-3 > .col-md-4 {
    width: 100% !important;
  }

  .card {
    border-radius: 16px !important;
  }

  .card-body {
    padding: 15px !important;
  }

  .legal-bar {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin-top: 28px !important;
    padding: 14px 12px !important;
    background: #fff3ed !important;
    border-top: 1px solid #ffd8c8 !important;
    box-shadow: none !important;
    z-index: 1 !important;
  }

  .legal-bar-inner {
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    padding: 0 !important;
  }
}

/* FINAL inner pages mobile fixes */
@media (max-width: 640px) {
  body {
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .card {
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .card-body {
    padding: 16px !important;
  }

  /* Cabinet header buttons */
  .card-body > .d-flex.justify-content-between.align-items-start {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .card-body > .d-flex.justify-content-between.align-items-start > .text-end {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    text-align: left !important;
  }

  .profile-top-button {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  /* Cabinet CTA */
  .cabinet-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
  }

  .cabinet-cta-button {
    width: 100% !important;
    min-height: 54px !important;
    justify-content: center !important;
  }

  /* Cabinet action cards */
  .cabinet-action {
    min-height: auto !important;
    padding: 14px !important;
  }

  .cabinet-action-title,
  .cabinet-action-text {
    overflow-wrap: anywhere !important;
  }

  /* Order steps */
  .order-steps-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-left: -2px !important;
    margin-right: -2px !important;
    scrollbar-width: none !important;
  }

  .order-steps-nav::-webkit-scrollbar {
    display: none !important;
  }

  .order-step-pill {
    flex: 0 0 auto !important;
    min-width: 108px !important;
    max-width: 128px !important;
    padding: 10px 12px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  .order-step-pill span {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .order-step-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .order-step-title {
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .order-step-text {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .order-step-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .order-step-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }

  /* History orders */
  .history-order-card {
    display: block !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .history-order-title-row {
    display: block !important;
    margin-bottom: 10px !important;
  }

  .history-order-volume,
  .history-order-address {
    display: inline !important;
    font-size: 18px !important;
  }

  .history-order-price {
    display: block !important;
    text-align: left !important;
    margin-top: 14px !important;
    min-height: 0 !important;
  }

  .history-order-price-current {
    font-size: 28px !important;
    white-space: normal !important;
  }

  .history-order-actions {
    display: block !important;
    margin-top: 14px !important;
    min-height: 0 !important;
  }

  .history-order-repeat {
    width: 100% !important;
    min-height: 48px !important;
  }

  /* Addresses / page top actions */
  .d-flex.justify-content-between.align-items-start,
  .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .d-flex.justify-content-between.align-items-start .btn,
  .d-flex.justify-content-between.align-items-center .btn {
    white-space: normal !important;
  }

  .address-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .address-card .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .address-card .btn {
    width: 100% !important;
  }

  /* Bonus history text/guid wrapping */
  .bonus-card-history-row,
  .bonus-card-history,
  .bonus-history-row,
  .bonus-history-item,
  .card,
  .card * {
    overflow-wrap: anywhere !important;
  }

  /* Floating support widget not over buttons */
  .support-widget {
    bottom: 18px !important;
    right: 14px !important;
    transform: scale(.9) !important;
    transform-origin: bottom right !important;
  }
}

@media (max-width: 640px) {

  .history-order-price {
    text-align: center !important;
    margin-top: 18px !important;
  }

  .history-order-price-current,
  .history-order-price-old {
    text-align: center !important;
  }

  .history-order-actions {
    display: flex !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }

  .history-order-repeat {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .order-step-pill {
    min-width: 56px !important;
    max-width: 56px !important;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 0 !important;
  }

  .order-step-pill span {
    margin: 0 !important;
    font-size: 16px !important;
  }

  .order-steps-nav {
    justify-content: flex-start !important;
    gap: 12px !important;
  }

}


@media (max-width: 640px) {

  .history-order-price {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .history-order-price > div {
    width: 100% !important;
    text-align: center !important;
  }

  .history-order-price-old,
  .history-order-price-current {
    width: 100% !important;
    text-align: center !important;
  }

}


/* FINAL history orders layout fix */
.history-order-card {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
}

.history-order-price {
  min-width: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.history-order-price-old,
.history-order-price-current {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.history-order-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 640px) {
  .history-order-card {
    display: block !important;
  }

  .history-order-price {
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 18px !important;
  }

  .history-order-actions {
    width: 100% !important;
    margin-top: 16px !important;
  }
}

@media (max-width: 640px) {

  .order-step-pill {
    border: none !important;
    background: transparent !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
  }

  .order-step-pill span {
    border: none !important;
    box-shadow: none !important;
  }

}


.history-order-repeat {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}


/* FINAL button text vertical align fix */
.btn,
button,
.profile-top-button,
.history-order-repeat,
.order-step-actions .btn,
.cabinet-cta-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .btn,
  button,
  .profile-top-button,
  .history-order-repeat,
  .order-step-actions .btn,
  .cabinet-cta-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    line-height: 1.15 !important;
  }
}
