/* LELO storefront — auth / account UI. Black/white minimalist style.
   Kept completely separate from the hotel's override.css. All selectors
   are scoped to #custom-login-overlay, #lelo-user-menu, and
   #lelo-orders-modal so nothing here leaks into the main LELO page.
   IMPORTANT: we do NOT draw a floating user avatar — LELO's own
   person icon in the header acts as the trigger (see lelo-auth.js
   -> showUserMenu(triggerEl) called from the proxy's click
   interceptor). */

/* ---------- Login modal (injected styles already in the HTML work for
   most of it; this file adds anything global the HTML can't cover). */

#custom-login-overlay * {
  box-sizing: border-box;
}

/* ---------- User menu (dropdown anchored to LELO's person icon) -----
   Design principles (LELO brand):
   - absolute minimal chrome — pure white, no background fills, no
     rounded corners, no icons
   - strong uppercase typography with wide letter-spacing (same as
     official LELO header links)
   - thin hairline borders (1px, not 2)
   - black on white throughout — no accent colours */

#lelo-user-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  border: 1px solid #0c0c0c;
  border-radius: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  z-index: 2147483646;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0c0c0c;
  padding: 0;
  overflow: hidden;
}

#lelo-user-menu .lelo-menu-header {
  padding: 22px 28px 20px;
  background: #fff;
  border-bottom: 1px solid #0c0c0c;
}

#lelo-user-menu .lelo-menu-name {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0c0c0c;
  line-height: 1.3;
}

#lelo-user-menu .lelo-menu-email {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 6px;
  word-break: break-all;
  letter-spacing: 0.01em;
  text-transform: none;
}

#lelo-user-menu .lelo-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 28px;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0c0c0c;
  font-family: inherit;
  transition: background-color 0.15s ease, letter-spacing 0.15s ease;
  border-bottom: 1px solid #e5e5e5;
}

#lelo-user-menu .lelo-menu-item:last-child {
  border-bottom: none;
}

#lelo-user-menu .lelo-menu-item:hover {
  background: #fafafa;
  letter-spacing: 0.22em;
}

/* Remove old icon rules — we no longer render SVG icons inside the
   menu items (pure-typography layout matches LELO's chrome). */
#lelo-user-menu .lelo-menu-item svg {
  display: none;
}

/* Log out is NOT styled as a danger colour — LELO keeps secondary
   actions black-on-white with only a hairline separator. */
#lelo-user-menu .lelo-menu-item--danger {
  color: #0c0c0c;
}
#lelo-user-menu .lelo-menu-item--danger:hover {
  background: #fafafa;
}

/* ---------- Orders modal -------------------------------------------- */

#lelo-orders-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 20px;
}

#lelo-orders-modal .lelo-orders-panel {
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

#lelo-orders-modal .lelo-orders-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #0c0c0c;
  font-family: inherit;
  padding: 0;
  z-index: 2;
}

#lelo-orders-modal .lelo-orders-title {
  margin: 0;
  padding: 36px 40px 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0c0c;
  border-bottom: 2px solid #0c0c0c;
}

#lelo-orders-modal .lelo-orders-body {
  padding: 20px 40px 32px;
  overflow-y: auto;
  color: #0c0c0c;
  font-size: 14px;
  flex: 1;
}

#lelo-orders-modal .lelo-orders-loading,
#lelo-orders-modal .lelo-orders-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b6b6b;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#lelo-orders-modal .lelo-orders-empty--error {
  color: #c0392b;
}

#lelo-orders-modal .lelo-order-card {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

#lelo-orders-modal .lelo-order-card:last-child {
  border-bottom: none;
}

#lelo-orders-modal .lelo-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#lelo-orders-modal .lelo-order-date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}

#lelo-orders-modal .lelo-order-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: #f5f5f5;
  color: #0c0c0c;
  border: 1px solid #e5e5e5;
}

#lelo-orders-modal .lelo-order-status--paid,
#lelo-orders-modal .lelo-order-status--completed,
#lelo-orders-modal .lelo-order-status--success {
  background: #0c0c0c;
  color: #fff;
  border-color: #0c0c0c;
}

#lelo-orders-modal .lelo-order-status--pending {
  background: #fff;
  color: #a0560e;
  border-color: #e5c98a;
}

#lelo-orders-modal .lelo-order-status--shipped,
#lelo-orders-modal .lelo-order-status--delivered {
  background: #0c0c0c;
  color: #fff;
  border-color: #0c0c0c;
}
#lelo-orders-modal .lelo-order-status--fulfilling {
  background: #fff;
  color: #1a5490;
  border-color: #bcd4e8;
}

#lelo-orders-modal .lelo-order-status--failed,
#lelo-orders-modal .lelo-order-status--cancelled {
  background: #fff;
  color: #c0392b;
  border-color: #f3c7c1;
}

#lelo-orders-modal .lelo-order-title {
  font-size: 15px;
  font-weight: 600;
  color: #0c0c0c;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
#lelo-orders-modal .lelo-order-more {
  font-weight: 400;
  color: #6b6b6b;
  font-size: 12px;
}
#lelo-orders-modal .lelo-order-subtitle {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 4px;
}

#lelo-orders-modal .lelo-order-price {
  font-size: 14px;
  color: #0c0c0c;
  font-weight: 600;
  margin-top: 6px;
}

#lelo-orders-modal .lelo-order-tracking {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e5e5;
}
#lelo-orders-modal .lelo-order-tracking-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b6b;
  font-weight: 600;
  margin-bottom: 4px;
}
#lelo-orders-modal .lelo-order-tracking-number {
  font-family: 'Courier New', Menlo, monospace;
  font-size: 13px;
  color: #0c0c0c;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#lelo-orders-modal .lelo-order-tracking-number a {
  color: #0c0c0c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#lelo-orders-modal .lelo-order-tracking-number a:hover {
  opacity: 0.7;
}

#lelo-orders-modal .lelo-order-ref {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-top: 6px;
}

@media (max-width: 767px) {
  #lelo-orders-modal .lelo-orders-title {
    padding: 28px 24px 20px;
    font-size: 16px;
  }
  #lelo-orders-modal .lelo-orders-body {
    padding: 16px 24px 28px;
  }
}
