/* Login, registration, password — split layout matching contact. */

body#authentication .breadcrumb,
body#password .breadcrumb,
body#registration .breadcrumb,
body#authentication .page-header,
body#password .page-header,
body#registration .page-header {
  display: none !important;
}

body#authentication #wrapper,
body#password #wrapper,
body#registration #wrapper,
body#authentication #wrapper > .container,
body#password #wrapper > .container,
body#registration #wrapper > .container,
body#authentication #content,
body#password #content,
body#registration #content,
body#authentication .page-content,
body#password .page-content,
body#registration .page-content,
body#authentication .card,
body#password .card,
body#registration .card,
body#authentication #login-form,
body#registration #customer-form,
body#password .forgotten-password {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body#authentication #content,
body#password #content,
body#registration #content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto 5rem !important;
  padding: 0 !important;
}

body#authentication #notifications,
body#password #notifications,
body#registration #notifications {
  max-width: 1180px;
}

.eleos-auth {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 1.35rem 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
  color: var(--eleos-muted);
  font-family: var(--eleos-font-body);
}

.eleos-auth--login {
  min-height: calc(100vh - var(--eleos-header-h) - 7rem);
  align-items: stretch;
}

.eleos-auth__aside,
.eleos-auth__panel {
  background: var(--eleos-bg-2);
  border: 1px solid var(--eleos-line);
  padding: 1.85rem 1.7rem 2rem;
}

.eleos-auth--login .eleos-auth__aside,
.eleos-auth--login .eleos-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eleos-auth--register .eleos-auth__aside {
  position: sticky;
  top: calc(var(--eleos-header-h) + 1.25rem);
}

.eleos-auth__aside h2,
.eleos-auth__panel h1 {
  font-family: var(--eleos-font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--eleos-white);
  line-height: 1.02;
  margin: 0 0 1rem;
}

.eleos-auth__aside h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.eleos-auth__panel h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}

.eleos-auth__aside p,
.eleos-auth__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.eleos-auth__facts {
  margin: 1.5rem 0 0;
}

.eleos-auth__facts div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--eleos-line);
}

.eleos-auth__facts dt {
  font-family: var(--eleos-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eleos-red-2);
  margin: 0;
}

.eleos-auth__facts dd {
  margin: 0;
  color: var(--eleos-white);
  line-height: 1.5;
}

.eleos-auth__facts a {
  color: var(--eleos-white);
  text-decoration: none;
}

.eleos-auth__facts a:hover {
  color: var(--eleos-red-2);
}

.eleos-auth__switch {
  margin: 1.35rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--eleos-line);
  font-size: 0.95rem;
}

.eleos-auth__switch--top {
  margin: 0 0 1.5rem;
  padding: 0 0 1.2rem;
  border-top: 0;
  border-bottom: 1px solid var(--eleos-line);
}

.eleos-auth__switch a {
  color: var(--eleos-white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

.eleos-auth .form-group.row,
.eleos-auth .form-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  height: auto !important;
  min-width: 0;
  margin: 0 0 1.15rem;
}

body#authentication .eleos-auth .form-group [class*="col-"],
body#password .eleos-auth .form-group [class*="col-"],
body#registration .eleos-auth .form-group [class*="col-"],
.eleos-auth .form-group [class*="col-"],
.eleos-auth .form-footer,
.eleos-auth .offset-md-3,
.eleos-auth .js-input-column {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  text-align: left !important;
  position: relative !important;
}

.eleos-auth label,
.eleos-auth .form-control-label {
  display: block;
  flex: 0 0 auto !important;
  height: auto !important;
  font-family: var(--eleos-font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eleos-white) !important;
  font-weight: 500;
  margin: 0 0 0.45rem;
}

.eleos-auth .form-control,
.eleos-auth input[type="email"],
.eleos-auth input[type="password"],
.eleos-auth input[type="text"],
.eleos-auth input[type="tel"],
.eleos-auth select {
  width: 100%;
  max-width: 100%;
  background: #1a1a1a !important;
  border: 1px solid var(--eleos-line) !important;
  color: var(--eleos-white) !important;
  min-height: 48px;
  border-radius: 0;
  padding: 0.65rem 0.85rem;
}

.eleos-auth .form-control:focus,
.eleos-auth input:focus {
  border-color: var(--eleos-red) !important;
  outline: none;
  box-shadow: none;
}

.eleos-auth .form-control-comment,
.eleos-auth .form-control-comment.rtl-comment {
  display: none;
}

.eleos-auth .field-password-policy .password-requirements,
.eleos-auth .password-strength-feedback,
.eleos-auth .help-block {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.eleos-auth .input-group {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  overflow: visible;
}

.eleos-auth .input-group .form-control,
.eleos-auth .input-group input[type="password"],
.eleos-auth .input-group input[type="text"],
body#authentication .eleos-auth .input-group input,
body#registration .eleos-auth .input-group input,
body#password .eleos-auth .input-group input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
}

.eleos-auth .input-group-btn {
  display: flex;
  flex: 0 0 auto;
  width: auto;
}

.eleos-auth .input-group-btn .btn,
.eleos-auth .input-group .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.75rem;
  min-height: 48px;
  padding: 0 0.95rem;
  white-space: nowrap;
  overflow: visible;
  background: #1a1a1a;
  border: 1px solid var(--eleos-line);
  border-left: 0;
  color: var(--eleos-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

.eleos-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem 1rem;
  align-items: start;
  margin: 0 0 1.15rem;
}

.eleos-auth-grid > .form-group {
  margin-bottom: 0;
  align-self: start;
}

.eleos-auth-block {
  margin: 0 0 1.35rem;
  padding: 1.15rem 0 0.15rem;
  border-top: 1px solid var(--eleos-line);
}

.eleos-auth-block[hidden],
.eleos-customer-form:not(.is-company) [data-eleos-company-field] {
  display: none !important;
}

.eleos-company-kicker {
  margin: 0 0 1rem;
}

.eleos-reg-switch-wrap,
.eleos-auth-pills {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--eleos-line);
}

.eleos-reg-switch-wrap .form-control-label,
.eleos-auth-pills .form-control-label {
  color: var(--eleos-red-2) !important;
}

.eleos-reg-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--eleos-muted);
}

.eleos-reg-switch-wrap .radio-inline,
.eleos-auth-pills .radio-inline {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0 1.1rem;
  border: 1px solid var(--eleos-line);
  background: #1a1a1a;
  color: var(--eleos-white);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}

.eleos-reg-switch-wrap .radio-inline input,
.eleos-auth-pills .radio-inline input,
.eleos-reg-switch-wrap .custom-radio,
.eleos-auth-pills .custom-radio {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0;
  pointer-events: none;
}

.eleos-auth .password-requirements {
  display: none;
}

.eleos-reg-switch-wrap .radio-inline:has(input:checked),
.eleos-auth-pills .radio-inline:has(input:checked) {
  border-color: var(--eleos-red);
  background: #2a1214;
}

.eleos-auth-footer {
  margin-top: 0.5rem;
}

.eleos-auth .btn-primary,
.eleos-auth .form-control-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  background: var(--eleos-red) !important;
  border: 1px solid var(--eleos-red) !important;
  color: var(--eleos-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.82rem;
  float: none !important;
}

.eleos-auth .btn-primary:hover,
.eleos-auth .form-control-submit:hover {
  background: var(--eleos-red-2) !important;
  border-color: var(--eleos-red-2) !important;
}

.eleos-auth .forgot-password {
  margin: 0.9rem 0 0;
  text-align: center;
}

.eleos-auth .forgot-password a {
  color: var(--eleos-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.eleos-auth .forgot-password a:hover {
  color: var(--eleos-white);
}

.eleos-auth .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: #cfcfcf;
  line-height: 1.5;
}

.eleos-auth .custom-checkbox label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--eleos-font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: #cfcfcf !important;
  margin: 0;
}

.eleos-auth .custom-checkbox small,
.eleos-auth .custom-checkbox .help-block,
.eleos-auth .custom-checkbox .form-control-comment {
  display: none;
}

.eleos-auth input[type="checkbox"],
.eleos-auth input[type="radio"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  max-width: 1.15rem !important;
  min-height: 0 !important;
  margin: 0.15rem 0 0;
  accent-color: #d42027;
}

.eleos-auth .custom-checkbox input[type="checkbox"] + span {
  background: #1a1a1a;
  border: 1px solid #8a8a8a !important;
}

.eleos-auth .custom-checkbox input[type="checkbox"]:checked + span {
  background: #d42027;
  border-color: #d42027 !important;
}

.eleos-auth .help-block,
.eleos-auth .ps-alert-error,
.eleos-auth .ps-alert-success {
  font-size: 0.88rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.eleos-auth .ps-alert-error {
  color: #f0b4b4;
}

.eleos-auth .ps-alert-success {
  color: #c8e6c8;
}

@media (max-width: 899px) {
  .eleos-auth,
  .eleos-auth--login {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1rem;
  }

  .eleos-auth--register .eleos-auth__aside,
  .eleos-auth--login .eleos-auth__aside,
  .eleos-auth--login .eleos-auth__panel {
    position: static;
    justify-content: flex-start;
  }

  .eleos-auth__aside,
  .eleos-auth__panel {
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .eleos-auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eleos-auth__facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}

body#my-account .breadcrumb,
body#identity .breadcrumb,
body#addresses .breadcrumb,
body#address .breadcrumb,
body#history .breadcrumb,
body#order-detail .breadcrumb,
body#my-account .page-header,
body#identity .page-header,
body#addresses .page-header,
body#address .page-header,
body#history .page-header,
body#order-detail .page-header {
  display: none !important;
}

body#my-account #content,
body#identity #content,
body#addresses #content,
body#address #content,
body#history #content,
body#order-detail #content,
body#my-account .page-content,
body#identity .page-content,
body#addresses .page-content,
body#address .page-content,
body#history .page-content,
body#order-detail .page-content,
.page-customer-account #content {
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--eleos-muted);
  font-family: var(--eleos-font-body);
}

.eleos-account {
  max-width: 720px;
  margin: 0 auto 5rem;
}

.eleos-account--wide {
  max-width: 980px;
}

.eleos-account h1 {
  font-family: var(--eleos-font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--eleos-white);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}

.eleos-account__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.eleos-account__panel {
  background: var(--eleos-bg-2);
  border: 1px solid var(--eleos-line);
  padding: 1.5rem 1.4rem 1.65rem;
  margin: 0 0 1.35rem;
}

.eleos-account__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.eleos-account__nav--footer {
  margin-top: 0.25rem;
}

.eleos-account__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--eleos-line);
  background: var(--eleos-bg-2);
  color: var(--eleos-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
}

.eleos-account__nav a:hover {
  border-color: var(--eleos-red);
  color: var(--eleos-white);
}

/* Forms inside account pages */
body#identity .eleos-account__panel .card,
body#address .eleos-account__panel .card,
body#identity .eleos-account-form .card,
.page-customer-account .eleos-account__panel .card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#identity .form-group.row,
body#address .form-group.row,
body#order-detail .form-group.row,
.eleos-account-form .form-group.row,
.page-customer-account .form-group.row {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 1rem;
  margin-left: 0;
  margin-right: 0;
}

body#identity .form-group [class*="col-"],
body#address .form-group [class*="col-"],
body#order-detail .form-group [class*="col-"],
.eleos-account-form .form-group [class*="col-"],
.page-customer-account .form-group [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  height: auto !important;
}

body#identity .form-control-label,
body#address .form-control-label,
body#order-detail .form-control-label,
.eleos-account-form .form-control-label,
.page-customer-account .form-control-label {
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 0 0.45rem;
  color: #ffffff !important;
  font-family: var(--eleos-font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

body#identity .form-control,
body#address .form-control,
body#order-detail .form-control,
.eleos-account-form input:not([type="checkbox"]):not([type="radio"]),
.eleos-account-form textarea,
.eleos-account-form select,
.page-customer-account input:not([type="checkbox"]):not([type="radio"]),
.page-customer-account textarea,
.page-customer-account select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  background: #1a1a1a !important;
  border: 1px solid var(--eleos-line) !important;
  color: var(--eleos-white) !important;
  font-family: var(--eleos-font-body);
  font-size: 0.95rem;
  border-radius: 0;
}

body#identity .form-control:focus,
body#address .form-control:focus,
.eleos-account-form input:focus,
.eleos-account-form textarea:focus,
.eleos-account-form select:focus {
  border-color: var(--eleos-red) !important;
  outline: none;
  box-shadow: none;
}

body#identity .form-control-comment,
body#address .form-control-comment,
.page-customer-account .form-control-comment {
  color: #9a9a9a;
  font-size: 0.82rem;
}

body#identity .btn-primary,
body#address .btn-primary,
body#order-detail .btn-primary,
.eleos-account-form .btn-primary,
.page-customer-account .btn-primary {
  background: var(--eleos-red);
  border-color: var(--eleos-red);
  color: var(--eleos-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  min-height: 48px;
  width: 100%;
  border-radius: 0;
  font-family: var(--eleos-font-body);
}

body#identity .btn-primary:hover,
body#address .btn-primary:hover,
.page-customer-account .btn-primary:hover {
  background: var(--eleos-red-2);
  border-color: var(--eleos-red-2);
}

.eleos-auth-footer,
.eleos-account-form .form-footer {
  margin-top: 1.25rem;
}

.eleos-account-actions {
  margin-top: 1.25rem;
}

.eleos-account-empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
  color: var(--eleos-muted);
}

.eleos-account-empty .eleos-btn {
  width: auto;
}

/* Addresses */
.eleos-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.eleos-address-grid--order {
  margin-top: 0.75rem;
}

.eleos-address-card {
  background: #161616;
  border: 1px solid var(--eleos-line);
  padding: 1.15rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.eleos-address-card__alias,
.eleos-address-card h2,
.eleos-address-card h3,
.eleos-address-card h4 {
  font-family: var(--eleos-font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eleos-white);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.eleos-address-card address {
  font-style: normal;
  line-height: 1.65;
  color: var(--eleos-muted);
  margin: 0;
  font-size: 0.95rem;
}

.eleos-address-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--eleos-line);
}

.eleos-address-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--eleos-line);
  color: var(--eleos-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
}

.eleos-address-card__actions a:hover {
  border-color: var(--eleos-red);
}

.eleos-address-card__actions a[data-link-action="delete-address"]:hover {
  border-color: #8a2020;
  color: #ffb4b4;
}

/* Order history cards */
.eleos-orders {
  display: grid;
  gap: 0.9rem;
}

.eleos-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  background: #161616;
  border: 1px solid var(--eleos-line);
  padding: 1.15rem 1.2rem;
}

.eleos-order-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

.eleos-order-card__ref {
  font-family: var(--eleos-font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--eleos-white);
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.04em;
}

.eleos-order-card__status,
.eleos-order-status-row__state,
.page-customer-account .label-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eleos-order-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.eleos-order-card__meta div {
  min-width: 0;
}

.eleos-order-card__meta dt {
  margin: 0 0 0.2rem;
  color: #9a9a9a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.eleos-order-card__meta dd {
  margin: 0;
  color: var(--eleos-white);
  font-size: 0.92rem;
  line-height: 1.4;
}

.eleos-order-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 140px;
}

.eleos-order-card__actions .eleos-btn {
  width: 100%;
  min-height: 42px;
  font-size: 0.7rem;
  padding: 0.45rem 0.9rem;
}

/* Order detail */
.eleos-order-section {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--eleos-line);
}

.eleos-order-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.eleos-order-section h2,
.eleos-order-section h3,
.eleos-order-messages .box h3,
.eleos-order-messages .order-message-form h3 {
  font-family: var(--eleos-font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--eleos-white);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.95rem;
}

.eleos-order-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.eleos-order-section__head h2 {
  margin: 0;
}

.eleos-order-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.eleos-order-facts dt {
  margin: 0 0 0.2rem;
  color: #9a9a9a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.eleos-order-facts dd {
  margin: 0;
  color: var(--eleos-white);
  font-size: 0.95rem;
  line-height: 1.45;
}

.eleos-order-facts a,
.eleos-order-section a {
  color: var(--eleos-white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.eleos-order-facts a:hover,
.eleos-order-section a:hover {
  color: var(--eleos-red-2);
}

.eleos-order-note {
  margin: 0.9rem 0 0;
  color: var(--eleos-muted);
  line-height: 1.6;
}

.eleos-order-status-list {
  display: grid;
  gap: 0.55rem;
}

.eleos-order-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #161616;
  border: 1px solid var(--eleos-line);
}

.eleos-order-status-row__date {
  color: var(--eleos-muted);
  font-size: 0.9rem;
}

/* Product tables / classic boxes inside order detail */
body#order-detail .box,
body#order-detail .eleos-order-products .box,
body#order-detail .messages,
body#order-detail .order-message-form {
  background: #161616 !important;
  border: 1px solid var(--eleos-line) !important;
  box-shadow: none !important;
  padding: 1rem 1.05rem !important;
  margin: 0 0 0.85rem !important;
  color: var(--eleos-muted);
}

body#order-detail .table,
body#history .table {
  width: 100%;
  background: transparent;
  color: var(--eleos-muted);
  border-color: var(--eleos-line) !important;
  margin: 0;
}

body#order-detail .table th,
body#order-detail .table td,
body#history .table th,
body#history .table td {
  border-color: var(--eleos-line) !important;
  background: transparent !important;
  color: var(--eleos-muted);
  vertical-align: middle;
  padding: 0.75rem 0.65rem;
  font-family: var(--eleos-font-body);
}

body#order-detail .table thead th,
body#history .table thead th {
  color: var(--eleos-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
}

body#order-detail .table a {
  color: var(--eleos-white);
}

body#order-detail .order-items,
body#order-detail .order-totals {
  color: var(--eleos-muted);
}

body#order-detail .order-line,
body#order-detail .order-product {
  border-color: var(--eleos-line) !important;
}

body#order-detail .eleos-order-products .hidden-md-up,
body#order-detail .eleos-order-products .order {
  background: #161616;
  border: 1px solid var(--eleos-line);
  padding: 0.9rem;
  margin-bottom: 0.65rem;
}

/* Messages form */
body#order-detail .order-message-form header p {
  color: var(--eleos-muted);
  line-height: 1.6;
}

body#order-detail .messages .message {
  padding: 0.75rem 0;
  border-top: 1px solid var(--eleos-line);
  color: var(--eleos-muted);
}

body#order-detail .messages .message:first-of-type {
  border-top: 0;
}

/* Hide classic footer account links (replaced by eleos nav) */
body#identity #footer .account-link,
body#addresses #footer .account-link,
body#address #footer .account-link,
body#history #footer .account-link,
body#order-detail #footer .account-link,
#main .page-footer .account-link {
  display: none !important;
}

@media (max-width: 767px) {
  .eleos-account__panel {
    padding: 1.2rem 1.05rem 1.35rem;
  }

  .eleos-address-grid,
  .eleos-order-facts,
  .eleos-order-card__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .eleos-order-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .eleos-order-card__actions {
    min-width: 0;
  }
}

