/* ============================================
   SelfEvents V1 — Account Styles
   Sidebar navigation, order cards, status badges,
   section panels, profile forms
   ============================================ */

/* --- Ascunde CookieYes consent widget (activ doar cand body are .is-account) --- */
body.is-account .cky-btn-revisit,
body.is-account .cky-revisit-bottom-left,
body.is-account .cky-revisit-bottom-right,
body.is-account [data-cky-tag="revisit-consent"],
body.is-account .cky-consent-container,
body.is-account #cookieyes-widget { display: none !important; }

/* --- Account Layout --- */
.account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .account-layout {
    grid-template-columns: 260px 1fr;
    gap: 3rem;
  }
}

/* --- Sidebar Navigation --- */
.account-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .account-nav {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    position: sticky;
    top: 100px;
  }
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #7A6F68;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.account-nav-item:hover {
  background: #F5EDE4;
  color: #2D2926;
}

.account-nav-item.active {
  background: #FFFAF5;
  color: #BA2257;
  border-color: #E8DED4;
}

.account-nav-item svg {
  flex-shrink: 0;
}

/* --- Section Panel --- */
.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
}

/* --- Order Card --- */
.order-card {
  background: #fff;
  border: 1px solid #E8DED4;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.order-card:hover {
  box-shadow: 0 4px 20px rgba(45, 41, 38, 0.06);
}

/* --- Status Badges --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-processing {
  background: #FEF3C7;
  color: #92400E;
}

.status-shipped {
  background: #DBEAFE;
  color: #1E40AF;
}

.status-delivered {
  background: #D1FAE5;
  color: #065F46;
}

.status-completed {
  background: #F3F4F6;
  color: #374151;
}

/* --- Profile Form --- */
.profile-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E8DED4;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #2D2926;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-input:focus {
  outline: none;
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.08);
}

/* --- Favorites Grid --- */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* --- Address Card --- */
.address-card {
  border: 1px solid #E8DED4;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.address-card:hover {
  border-color: #C9A87C;
}

.address-card.default {
  border-color: #BA2257;
  background: rgba(186, 34, 87, 0.02);
}

/* --- Logout Button --- */
.logout-btn {
  color: #dc2626;
  transition: color 0.2s ease;
}

.logout-btn:hover {
  color: #b91c1c;
}

/* --- Mobile Bottom Nav Bar --- */
.account-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #E8DED4;
  box-shadow: 0 -4px 20px rgba(45, 41, 38, 0.07);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.account-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0;
  flex: 1;
  font-size: 0.6rem;
  font-weight: 500;
  color: #7A6F68;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.account-bottom-nav-item:hover,
.account-bottom-nav-item:active {
  color: #2D2926;
}

.account-bottom-nav-item.active {
  color: #BA2257;
}

/* --- "Mai mult" sheet overlay --- */
.account-more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.4);
  z-index: 48;
}

.account-more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(45, 41, 38, 0.12);
}

.account-more-handle {
  width: 2.5rem;
  height: 0.25rem;
  background: #E8DED4;
  border-radius: 9999px;
  margin: 0 auto 1.25rem;
}

.account-more-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid #E8DED4;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2D2926;
  text-decoration: none;
  transition: color 0.15s ease;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.account-more-item:last-child {
  border-bottom: none;
}

.account-more-item:hover {
  color: #BA2257;
}

.account-more-item.logout {
  color: #dc2626;
}

.account-more-item.logout:hover {
  color: #b91c1c;
}

/* --- extra bottom padding pt continut (sa nu fie acoperit de nav) --- */
.account-content-wrap {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

/* --- Order Timeline — responsive --- */
.order-timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.order-timeline-scroll::-webkit-scrollbar {
  display: none;
}

.order-timeline-inner {
  min-width: 360px;
}
