/* ==========================================================================
   Mengo Customer Account & Auth — Minimal Editorial (Bershka / Inditex Style)
   Pure white canvas, underline inputs, stark typography, zero decorative clutter
   ========================================================================== */

/* Buttons */
.mo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 32px;
  border: 1px solid #111111;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.mo-btn--solid {
  background: #111111;
  color: #ffffff;
}

.mo-btn--solid:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.mo-btn--outline {
  background: #ffffff;
  color: #111111;
}

.mo-btn--outline:hover {
  background: #111111;
  color: #ffffff;
}

/* Password field wrapper */
.mo-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mo-password-wrap .form-input {
  padding-right: 56px !important;
  width: 100%;
}

.mo-password-toggle {
  position: absolute;
  right: 0;
  bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #767676;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mo-password-toggle:hover {
  color: #111111;
}

/* ==========================================================================
   1. Login & Register (/kayit/)
   ========================================================================== */

.mo-auth-page {
  padding-bottom: 96px;
  color: #111111;
}

.mo-auth-page .register-page {
  padding-top: 0;
}

.mo-auth-page .breadcrumb.mo-account__crumbs,
.mo-account-page .breadcrumb.mo-account__crumbs {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 24px 0 0;
  margin: 0;
  color: #8a8a8a;
  font-size: 12px;
}

.mo-account__crumbs .link {
  color: #111111;
  text-decoration: none;
}

.mo-account__crumbs .separate {
  margin: 0 8px;
}

.mo-auth-tabs {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.mo-auth-tab {
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mo-auth-tab.is-active {
  color: #111111;
  border-bottom-color: #111111;
}

.mo-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 460px);
  justify-content: space-between;
  column-gap: 80px;
  max-width: 1000px;
  margin: 48px auto 0;
  align-items: start;
}

.register-page .mo-auth-col.sign-in,
.register-page .mo-auth-col.register {
  margin-top: 0 !important;
  padding: 0 !important;
}

.register-page .mo-auth-col .wrapper-content {
  padding: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

.mo-auth-col--register {
  padding-left: 80px !important;
  border-left: 1px solid #ebebeb;
}

.mo-auth-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111111;
}

.mo-auth-desc {
  margin: 0 0 32px;
  font-size: 13px;
  line-height: 20px;
  color: #767676;
}

.register-page .mo-auth-col .contact-form .form-input {
  max-width: none !important;
}

.mo-auth-legal {
  margin: 4px 0 24px;
  font-size: 12px;
  line-height: 18px;
  color: #767676;
}

.mo-auth-actions,
.register-page .mo-auth-col .button-register {
  margin-top: 28px !important;
  display: block !important;
}

.mo-auth-actions .mo-btn {
  width: 100%;
}

/* ==========================================================================
   2. Customer Account Area (/account/…)
   ========================================================================== */

.mo-account-page {
  padding-bottom: 96px;
  color: #111111;
}

.mo-account {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 72px;
  margin-top: 40px;
  align-items: start;
}

/* Sidebar */
.mo-account__nav {
  position: sticky;
  top: 110px;
  align-self: start;
}

.mo-account__hello {
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ebebeb;
}

.mo-account__hello-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111111;
}

.mo-account__hello-email {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 18px;
  color: #767676;
}

.mo-account__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mo-account__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: none;
  color: #767676;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .02em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
}

.mo-account__link:hover,
.mo-account__link.is-active {
  color: #111111;
}

.mo-account__link.is-active {
  font-weight: 600;
}

.mo-account__logout {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}

.mo-account__link--logout {
  color: #111111;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main Column */
.mo-account__main {
  min-width: 0;
}

.mo-account__header {
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid #ebebeb;
}

.mo-account__header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.mo-account__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111111;
}

.mo-account__lead {
  margin: 0;
  font-size: 13px;
  color: #767676;
}

.mo-account__lead strong {
  color: #111111;
}

.mo-tracking {
  margin-bottom: 28px;
}

.mo-back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #767676;
  text-decoration: none;
}

.mo-back:hover {
  color: #111111;
}

/* Notices */
.mo-account__messages {
  margin-bottom: 24px;
}

.mo-notice {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-left: 2px solid #111111;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 20px;
  color: #111111;
}

.mo-notice--success {
  border-color: #1e6f2d;
}

.mo-notice--error {
  border-color: #c62828;
  color: #c62828;
}

/* Links & Small UI */
.mo-link {
  padding: 0;
  border: 0;
  background: none;
  color: #111111;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mo-link:hover {
  color: #000000;
}

.mo-link--danger {
  color: #b3261e;
}

.mo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #999999;
  vertical-align: 1px;
}

.mo-dot--success { background: #1e6f2d; }
.mo-dot--danger { background: #c62828; }
.mo-dot--info { background: #111111; }

.mo-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #d4d4d4;
  color: #545454;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mo-tag--dark {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.mo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mo-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #e5e5e5;
  font-size: 12px;
  line-height: 18px;
}

/* Overview Hub Grid (Dashboard) */
.mo-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mo-overview-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  transition: border-color .18s ease;
}

.mo-overview-tile:hover {
  border-color: #111111;
  color: #111111;
}

.mo-overview-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mo-overview-tile__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111111;
}

.mo-overview-tile__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #767676;
}

.mo-overview-tile__arrow {
  font-size: 15px;
  color: #111111;
  transition: transform .18s ease;
}

.mo-overview-tile:hover .mo-overview-tile__arrow {
  transform: translateX(3px);
}

/* Sections */
.mo-section + .mo-section,
.mo-overview-grid + .mo-section {
  margin-top: 44px;
}

.mo-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mo-section__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111111;
}

/* Orders Table */
.mo-orders__head,
.mo-orders__row {
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr 1fr 1fr 1.25fr 64px;
  align-items: center;
  column-gap: 16px;
}

.mo-orders__head {
  padding-bottom: 10px;
  border-bottom: 1px solid #111111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #767676;
}

.mo-orders__row {
  padding: 18px 0;
  border-bottom: 1px solid #ebebeb;
  color: #111111;
  font-size: 13px;
  text-decoration: none;
}

.mo-orders__row:hover {
  color: #111111;
}

.mo-orders__cell--number,
.mo-orders__cell--total {
  font-weight: 600;
}

.mo-orders__cell--more {
  text-align: right;
  font-size: 12px;
  color: #111111;
}

.mo-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 12px;
  color: #767676;
}

/* Empty State */
.mo-empty-state {
  padding: 48px 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  text-align: left;
}

.mo-empty-state[hidden] {
  display: none !important;
}

.mo-empty-state p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #767676;
}

/* Order Detail Timeline */
.mo-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.mo-timeline__step {
  position: relative;
  padding: 20px 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #999999;
}

.mo-timeline__step::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.mo-timeline__step:last-child::before {
  display: none;
}

.mo-timeline__marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  background: #ffffff;
}

.mo-timeline__label {
  display: block;
}

.mo-timeline__date {
  display: block;
  font-size: 11px;
  color: #8a8a8a;
}

.mo-timeline__step.is-done {
  color: #111111;
}

.mo-timeline__step.is-done::before,
.mo-timeline__step.is-done .mo-timeline__marker {
  background: #111111;
  border-color: #111111;
}

.mo-timeline__step.is-current .mo-timeline__label {
  font-weight: 600;
}

.mo-timeline__step.is-cancelled .mo-timeline__marker {
  background: #c62828;
  border-color: #c62828;
}

.mo-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: 56px;
  align-items: start;
}

.mo-detail__side .mo-section + .mo-section {
  margin-top: 32px;
}

.mo-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ebebeb;
}

.mo-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #ebebeb;
}

.mo-line__media {
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f7f7;
}

.mo-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mo-line__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mo-line__brand {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #767676;
}

.mo-line__name {
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
}

.mo-line__variant,
.mo-line__qty {
  font-size: 12px;
  color: #767676;
}

.mo-line__total {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.mo-sums,
.mo-facts {
  margin: 16px 0 0;
}

.mo-facts {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid #ebebeb;
}

.mo-sums > div,
.mo-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 13px;
}

.mo-sums dt,
.mo-facts dt {
  font-weight: 400;
  color: #767676;
}

.mo-sums dd,
.mo-facts dd {
  margin: 0;
  text-align: right;
}

.mo-sums .mo-sums__total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #111111;
  font-size: 14px;
  font-weight: 700;
}

.mo-sums .mo-sums__total dt {
  color: #111111;
  font-weight: 700;
}

.mo-address {
  margin: 0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  color: #111111;
}

.mo-address__name {
  display: block;
  font-weight: 600;
}

.mo-address__muted {
  font-size: 12px;
  color: #767676;
}

/* ==========================================================================
   3. Forms — Bershka Underline Input System
   ========================================================================== */

.mo-form--narrow {
  max-width: 440px;
}

.mo-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.mo-form__group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.mo-form__group + .mo-form__group {
  padding-top: 28px;
  border-top: 1px solid #ebebeb;
}

.mo-form__legend {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111111;
}

.mo-field {
  margin-bottom: 24px;
}

.mo-field--wide {
  grid-column: 1 / -1;
}

.mo-field[hidden] {
  display: none !important;
}

.mo-form .form-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #767676;
}

.mo-form .red-asterisk {
  margin-left: 2px;
  color: #111111;
}

.mo-form .form-input,
.register-page .mo-auth-col .contact-form .form-input {
  width: 100%;
  height: 40px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid #cccccc;
  border-radius: 0;
  background-color: transparent;
  color: #111111;
  font-size: 13px;
  box-shadow: none;
  transition: border-color .18s ease;
}

.mo-form .form-input::placeholder,
.register-page .mo-auth-col .contact-form .form-input::placeholder {
  color: #b0b0b0;
}

.mo-form textarea.form-input {
  height: auto;
  min-height: 76px;
  padding: 8px 0;
  line-height: 20px;
  resize: vertical;
}

.mo-form .form-input:focus,
.register-page .mo-auth-col .contact-form .form-input:focus {
  border-bottom-color: #111111;
  outline: none;
  box-shadow: none;
}

.mo-field.has-error .form-input {
  border-bottom-color: #c62828;
}

.mo-field__help,
.mo-field__error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
}

.mo-field__help {
  color: #767676;
}

.mo-field__error {
  color: #c62828;
}

.mo-radios,
.mo-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 6px;
}

.mo-form__checks .mo-field {
  margin-bottom: 0;
}

.mo-radio,
.mo-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #111111;
  cursor: pointer;
}

.mo-radio input,
.mo-check input {
  display: inline-block;
  position: static;
  clip: auto;
  overflow: visible;
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #111111;
}

.mo-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

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

.mo-address-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
}

.mo-address-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.mo-address-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mo-address-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mo-address-card .mo-address {
  flex: 1;
}

.mo-address-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ebebeb;
}

.mo-address-card__actions form {
  display: inline;
  margin: 0;
}

/* Sessions */
.mo-sessions {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ebebeb;
}

.mo-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
}

.mo-session__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}

.mo-session form {
  margin: 0;
}

/* Favourites */
.mo-favorites .product-item {
  margin-bottom: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .mo-auth-grid {
    column-gap: 48px;
  }

  .mo-auth-col--register {
    padding-left: 48px !important;
  }

  .mo-account {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    margin-top: 24px;
  }

  .mo-account__nav {
    position: static;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #ebebeb;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mo-account__nav::-webkit-scrollbar {
    display: none;
  }

  .mo-account__hello {
    display: none;
  }

  .mo-account__menu {
    display: flex;
    flex: none;
    gap: 24px;
  }

  .mo-account__link {
    padding: 12px 0;
    white-space: nowrap;
  }

  .mo-account__link.is-active {
    box-shadow: inset 0 -2px 0 #111111;
  }

  .mo-account__logout {
    flex: none;
    margin: 0 24px;
    padding: 0;
    border: 0;
  }

  .mo-detail {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }
}

@media (max-width: 767px) {
  .mo-account-page,
  .mo-auth-page {
    padding-bottom: 56px;
  }

  .mo-auth-tabs {
    display: grid;
  }

  .mo-auth-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .mo-auth-col--register {
    padding-left: 0 !important;
    border-left: 0;
  }

  .mo-auth-grid:not(.is-register-active) [data-auth-pane="register"] {
    display: none;
  }

  .mo-auth-grid.is-register-active [data-auth-pane="login"] {
    display: none;
  }

  .mo-account__title {
    font-size: 18px;
  }

  .mo-overview-grid,
  .mo-form__grid,
  .mo-address-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mo-orders__head {
    display: none;
  }

  .mo-orders__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
    padding: 14px 0;
  }

  .mo-orders__cell {
    font-size: 12px;
    color: #767676;
  }

  .mo-orders__cell--number,
  .mo-orders__cell--total {
    font-size: 13px;
    color: #111111;
  }

  .mo-orders__cell--total {
    text-align: right;
    grid-column: 2;
    grid-row: 1;
  }

  .mo-orders__cell:nth-child(3),
  .mo-orders__cell:nth-child(6) {
    text-align: right;
  }

  .mo-orders__cell--more {
    display: none;
  }

  .mo-form__actions .mo-btn {
    flex: 1 1 100%;
  }

  .mo-account__header--split > .mo-btn {
    width: 100%;
  }

  .mo-timeline {
    grid-auto-flow: row;
    row-gap: 14px;
  }

  .mo-timeline__step {
    padding: 0 0 0 24px;
  }

  .mo-timeline__step::before {
    top: 10px;
    bottom: -14px;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .mo-timeline__marker {
    top: 4px;
  }
}
