/* Customer accounts: A-Login / Desk-Login, A-Account / Desk-Account, plus profile, address and reset screens. */

/* ----------------------------------------------------- segmented tabs */
.seg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--c-segment-bg); }
.seg-tabs a {
  min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--c-promo-text); text-decoration: none;
}
.seg-tabs a[aria-current="page"] { background: var(--c-white); font-weight: 800; color: var(--c-brown); }

/* ------------------------------------------------------------- login */
.auth { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.auth__side { display: none; }
.auth__main { flex: 1 1 480px; display: flex; justify-content: center; }
.auth__box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: 12px 20px 32px; }
.auth__back { align-self: flex-start; }
.auth__head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.auth__logo { width: 120px; height: 120px; object-fit: contain; }
.auth__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.auth__sub { margin: 0; font-size: 15px; color: var(--c-brown-light); }
.auth__form { display: flex; flex-direction: column; gap: 18px; }
.auth__input { height: 50px; background: var(--c-white); font-size: 16px; }
.auth__cc { height: 50px; }
.auth__forgot { align-self: flex-start; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; }
.auth__or { display: flex; align-items: center; gap: 10px; color: var(--c-muted); font-size: 13px; }
.auth__or span { flex: 1; height: 1px; background: var(--c-input-border); }
.auth__guest { min-height: 52px; font-size: 16px; }
.auth__box .alert { margin: 0; }

@media (min-width: 900px) {
  .auth__side {
    flex: 1 1 420px; min-height: 100vh; box-sizing: border-box; padding: 48px; background: var(--c-maroon); color: var(--c-cream);
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden;
  }
  .auth__brand { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--c-cream); text-decoration: none; }
  .auth__brand:hover { color: var(--c-cream); }
  .auth__art { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .auth__sun { width: 300px; height: 300px; border-radius: 50%; background: var(--c-saffron); display: flex; align-items: center; justify-content: center; }
  .auth__sun img { width: 320px; height: 320px; object-fit: contain; }
  .auth__side-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.35; }
  .auth__side-text { margin: 0; font-size: 17px; line-height: 1.7; color: var(--c-on-maroon-soft); max-width: 380px; }
  .auth__side-pay { font-size: 14px; color: var(--c-on-maroon-soft); }
  .auth__main { align-items: center; padding: 48px; }
  .auth__box { padding: 0; gap: 20px; }
  .auth__back, .auth__logo, .auth__sub { display: none; }
  .auth__head { align-items: flex-start; text-align: start; }
  .auth__title { font-size: 36px; }
  .seg-tabs a { min-height: 48px; font-size: 16px; }
  .auth__input, .auth__cc { height: 54px; font-size: 17px; }
  .auth__forgot { font-size: 15px; }
  .auth__submit { min-height: 58px; font-size: 18px; }
  .auth__or { font-size: 14px; }
  .auth__guest { min-height: 54px; }
}

/* ------------------------------------------------- header account icon */
.acct-btn { flex-shrink: 0; }
.acct-btn__initial {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c-saffron); color: var(--c-brown);
  font-family: var(--font-head); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.site-notice { padding-top: 12px; }
.site-notice .alert { margin: 0; }

/* ----------------------------------------------------------- account */
.acc { display: flex; flex-direction: column; gap: 16px; padding-block: 16px 24px; }
.acc__aside, .acc__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc-hero { padding: 18px; border-radius: var(--r-card-lg); background: var(--c-maroon); color: var(--c-cream); display: flex; align-items: center; gap: 14px; }
.acc-hero__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--c-saffron); color: var(--c-brown);
  font-family: var(--font-head); font-weight: 700; font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.acc-hero__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-hero__name { font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.acc-hero__phone { font-size: 14px; color: var(--c-on-maroon-soft); }
[dir="rtl"] .acc-hero__phone { text-align: right; }
.acc-hero__hello-d { display: none; }

.acc-h2 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.acc-h1 { display: none; }
.acc-sec { display: flex; flex-direction: column; gap: 10px; }

.acc-order { padding: 14px; border-radius: var(--r-card); background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 8px; }
.acc-order__top, .acc-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-order__no { font-weight: 800; font-size: 16px; }
.acc-order__items { font-size: 14px; color: var(--c-brown-light); line-height: 1.5; }
.acc-order__meta { font-size: 14px; }
.acc-order__meta strong { font-weight: 800; }
.acc-btn { min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.acc-orders-table { display: none; }
.acc-empty { padding: 18px; border-radius: var(--r-card); background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.acc-empty p { margin: 0; color: var(--c-brown-light); }

.acc-addrs { display: flex; flex-direction: column; gap: 10px; }
.acc-addr { padding: 12px 14px; border-radius: 16px; background: var(--c-white); border: 1px solid var(--c-border); display: flex; align-items: center; gap: 12px; }
.acc-addr > .icon { color: var(--c-maroon); flex-shrink: 0; }
.acc-addr__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-addr__name { font-weight: 800; font-size: 15px; }
.acc-addr__line { font-size: 13px; color: var(--c-brown-light); overflow-wrap: anywhere; }
.acc-addr__edit { min-height: 44px; padding: 0 10px; display: flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--c-maroon); text-decoration: none; }
.acc-addr-add {
  min-height: 48px; border-radius: 16px; border: 1.5px dashed var(--c-dashed); background: transparent;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--c-maroon); text-decoration: none;
}
.acc-addrs__hint { margin: 0; font-size: 13px; color: var(--c-brown-light); }

.acc-menu { border-radius: var(--r-card); background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; }
.acc-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--c-border); font-weight: 700; font-size: 15px; color: var(--c-brown); text-decoration: none; }
.acc-menu__row:last-child { border-bottom: 0; }
a.acc-menu__row:hover { color: var(--c-maroon); }
.acc-menu__row--danger, .acc-menu__row--danger:hover { color: var(--c-red); }
.acc-menu form { margin: 0; }
.acc-menu button.acc-menu__row { width: 100%; background: none; border: 0; border-top: 0; font-family: inherit; cursor: pointer; text-align: start; }
.lang-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--c-segment-bg); }
.lang-seg button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--c-promo-text); cursor: pointer; }
.lang-seg button[aria-pressed="true"] { background: var(--c-white); font-weight: 800; color: var(--c-brown); }
.acc-nav { display: none; }

@media (min-width: 900px) {
  .acc { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 28px; padding-block: 32px 64px; }
  .acc__aside { flex: 1 1 240px; max-width: 280px; gap: 14px; }
  .acc__main { flex: 999 1 560px; gap: 24px; }
  .acc-hero { flex-direction: column; text-align: center; padding: 22px; gap: 8px; }
  .acc-hero__avatar { width: 64px; height: 64px; font-size: 28px; }
  .acc-hero__text { align-items: center; }
  [dir="rtl"] .acc-hero__phone { text-align: center; }
  .acc-hero__hello-m { display: none; }
  .acc-hero__hello-d { display: inline; }
  .acc-h1 { display: block; margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 34px; }
  .acc-sec--orders > .acc-h2 { display: none; }
  .acc-h2 { font-size: 26px; }
  .acc-sec { gap: 14px; }
  .acc-order { display: none; }
  .acc-orders-table { display: block; border-radius: var(--r-card-lg); background: var(--c-white); border: 1px solid var(--c-border); overflow-x: auto; }
  .acc-orders-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
  .acc-orders-table th { background: #FBF1E3; font-weight: 800; text-align: start; padding: 14px 18px; }
  .acc-orders-table td { padding: 14px 18px; border-top: 1px solid var(--c-border); vertical-align: middle; }
  .acc-orders-table td.acc-td-no { font-weight: 800; }
  .acc-orders-table td.acc-td-date { color: var(--c-brown-light); white-space: nowrap; }
  .acc-orders-table td.acc-td-total { font-weight: 700; white-space: nowrap; }
  .acc-orders-table td.acc-td-act { padding-block: 10px; }
  .acc-orders-table .acc-btn { min-height: 42px; }
  .acc-addrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .acc-addr { padding: 18px; flex-direction: column; align-items: stretch; gap: 6px; }
  .acc-addr > .icon { display: none; }
  .acc-addr__top { display: flex; justify-content: space-between; align-items: center; }
  .acc-addr__name { font-size: 17px; }
  .acc-addr__line { font-size: 14px; }
  .acc-addr-add { min-height: 96px; border-radius: var(--r-card); font-size: 16px; }
  .acc-menu--m { display: none; }
  .acc-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 20px; background: var(--c-white); border: 1px solid var(--c-border); }
  .acc-nav a, .acc-nav button {
    min-height: 46px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; font-weight: 700; font-size: 15px;
    color: var(--c-brown); text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: start;
  }
  .acc-nav a:hover, .acc-nav button:hover { background: var(--c-selected-bg); color: var(--c-maroon); }
  .acc-nav [aria-current="page"] { background: var(--c-selected-bg); color: var(--c-maroon); font-weight: 800; }
  .acc-nav .acc-nav__out { color: var(--c-red); }
  .acc-nav form { margin: 0; }
}
@media (max-width: 899px) {
  .acc-addr__top { display: contents; }
  .acc-addr__top .acc-addr__edit { order: 3; }
}

/* ------------------------------------------------ forms (profile, address) */
.acc-form { display: flex; flex-direction: column; gap: 16px; }
.acc-card { padding: 16px; border-radius: 20px; background: var(--c-white); border: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 12px; }
.acc-card__title { margin: 0; font-family: var(--font-head); font-size: 19px; }
.acc-card__hint { margin: 0; font-size: 13px; color: var(--c-brown-light); }
.acc-form__actions { display: flex; flex-direction: column; gap: 10px; }
.acc-form__del { margin: 0; }
.acc-form__del button { width: 100%; }
.btn--danger-ghost { background: transparent; color: var(--c-red); border: 1.5px solid #F0C9CC; }
.btn--danger-ghost:hover { color: var(--c-red); border-color: var(--c-red); }
.acc-page { padding-block: 16px 24px; }
.acc-page-title { display: none; }
@media (min-width: 900px) {
  .acc-page { padding-block: 32px 64px; }
  .acc-page-title { display: block; margin: 0 0 16px; font-family: var(--font-head); font-weight: 700; font-size: 34px; }
  .acc-form__actions { flex-direction: row; align-items: center; }
  .acc-form__actions .btn { width: auto; padding-inline: 32px; }
  .acc-form__del button { width: auto; }
}

/* ----------------------------------------------- checkout account bits */
.co-mode { margin-bottom: 16px; }
.co-logged { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--c-selected-bg); font-size: 15px; margin-bottom: 16px; }
.co-logged form { margin: 0; }
.co-logged button { background: none; border: 0; padding: 0 4px; min-height: 44px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--c-maroon); cursor: pointer; text-decoration: underline; }
.co-saved { display: flex; flex-wrap: wrap; gap: 8px; }
.co-saved__opt { position: relative; }
.co-saved__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-saved__opt span {
  min-height: 44px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--c-input-border); background: var(--c-white);
  display: flex; flex-direction: column; justify-content: center; font-size: 14px; line-height: 1.3;
}
.co-saved__opt small { color: var(--c-brown-light); font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-saved__opt input:checked + span { border: 2px solid var(--c-maroon); background: var(--c-selected-bg); font-weight: 800; }
.co-saved__opt input:focus-visible + span { outline: 3px solid var(--c-saffron); outline-offset: 2px; }
.co-acct { display: flex; flex-direction: column; gap: 8px; }
.co-acct__pass[hidden] { display: none; }
.auth__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--c-brown-light); }
