/**
 * Logged-in customer experience — header account menu & account area.
 * Depends on project-theme.css :root variables.
 */

/* ------------------------------------------------------------------ header */
.tm-logged-nav {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.tm-logged-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font-family: var(--tm-font, inherit);
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text, #1e293b);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  user-select: none;
}

.tm-logged-trigger:hover,
.tm-logged-trigger:focus {
  outline: none;
  border-color: var(--tm-primary, #7c3aed);
  box-shadow: 0 0 0 3px var(--tm-ring, rgba(124, 58, 237, 0.25));
}

.tm-logged-trigger.is-open {
  border-color: var(--tm-primary, #7c3aed);
  background: #fff;
}

.tm-logged-trigger__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--tm-primary, #7c3aed) 0%, var(--tm-primary-dark, #5b21b6) 100%);
  flex-shrink: 0;
}

.tm-logged-trigger__label {
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-logged-trigger__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--tm-primary, #7c3aed);
  margin-left: 2px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.tm-logged-trigger.is-open .tm-logged-trigger__caret {
  transform: rotate(180deg);
}

a.tm-logged-trigger--dashboard {
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 16px;
}

a.tm-logged-trigger--dashboard:hover {
  color: var(--tm-text, #1e293b);
}

/* Dropdown panel */
.tm-logged-nav .account.tm-account-dropdown {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 0;
  margin: 0;
  text-align: left;
  background: #fff;
  border-radius: var(--tm-radius, 12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--tm-shadow, 0 12px 40px rgba(15, 23, 42, 0.12));
  overflow: hidden;
}

.tm-logged-nav .account.tm-account-dropdown.is-open {
  display: block;
}

.tm-account-dropdown__header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(13, 148, 136, 0.06) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tm-account-dropdown__name {
  display: block;
  font-family: var(--tm-font, inherit);
  font-size: 15px;
  font-weight: 700;
  color: var(--tm-text, #1e293b);
  line-height: 1.3;
}

.tm-account-dropdown__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--tm-muted, #64748b);
}

.tm-account-dropdown form > ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.tm-account-dropdown .myAccount_item {
  padding: 0;
  margin: 0;
  background: transparent;
}

.tm-account-dropdown .myAccount_item a {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tm-text, #1e293b);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tm-account-dropdown .myAccount_item a:hover,
.tm-account-dropdown .myAccount_item a:focus {
  background: rgba(124, 58, 237, 0.06);
  color: var(--tm-primary-dark, #5b21b6);
}

.tm-account-dropdown .myAccount_itemIcon {
  width: 18px;
  text-align: center;
  color: var(--tm-primary, #7c3aed);
}

.tm-customer-online .whiteBG {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ------------------------------------------------------------------ my account page */
.tm-account-page .myPofileBannerWrapper {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12) 0%, rgba(13, 148, 136, 0.1) 50%, rgba(248, 250, 252, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tm-account-page .myPofileBannerWrapper .item-content ul li {
  font-family: var(--tm-font, inherit);
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--tm-text, #1e293b) !important;
  letter-spacing: -0.02em;
}

.tm-account-page .profileSideBar {
  border-radius: var(--tm-radius, 12px) !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--tm-shadow, 0 12px 40px rgba(15, 23, 42, 0.08)) !important;
}

.tm-account-page .profileSideBar .sideBarItem.active {
  background: rgba(124, 58, 237, 0.12) !important;
  color: var(--tm-primary-dark, #5b21b6) !important;
}

.tm-account-page .profileSideBar .profilelImageBox {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2) !important;
}

.tm-account-page .profileSideBar .profilelImageBox_nameInitials {
  background: linear-gradient(135deg, var(--tm-primary, #7c3aed) 0%, var(--tm-accent, #0d9488) 100%) !important;
}

.tm-account-page .guestName {
  font-family: var(--tm-font, inherit) !important;
}

.tm-account-page .guestNameTag {
  color: var(--tm-muted, #64748b) !important;
}

@media (max-width: 991px) {
  .tm-logged-nav .account.tm-account-dropdown {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 24px));
  }
}

/* ------------------------------------------------------------------ My Trips (logged-in) */
.tm-customer-online .tm-trips-page .myBookingBreadCrumpCont {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.1) 0%, rgba(13, 148, 136, 0.08) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 12px;
  padding-bottom: 12px;
}

.tm-customer-online .tm-trips-page .myBookingBreadCrump {
  font-family: var(--tm-font, inherit);
  font-weight: 600;
  color: var(--tm-text, #1e293b);
}

.tm-customer-online .tm-trips-page .tripHeading .tripStatus {
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.tm-customer-online .tm-trips-page .tripHeading .tripStatus:hover {
  color: var(--tm-primary-dark, #5b21b6);
}

/* My Trips (logged-in) */
.tm-customer-online .myBookingBreadCrumpCont {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.1) 0%, rgba(13, 148, 136, 0.08) 100%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tm-customer-online .myBookingBreadCrump {
  font-family: var(--tm-font, inherit) !important;
  font-weight: 600 !important;
  color: var(--tm-text, #1e293b) !important;
}

.tm-customer-online .tripHeading .tripStatus {
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.tm-customer-online .tripHeading .tripStatus:hover {
  color: var(--tm-primary-dark, #5b21b6);
}
