
/* ==========================================
   YANKEE MOTORS — RESPONSIVE ACCOUNT MENUS
   ========================================== */

/* DESKTOP DROPDOWN */

.ym-account-popup {
  position: fixed;
  z-index: 300000;
  display: flex;
  flex-direction: column;
  width: 275px;
  padding: 8px;
  border: 1px solid #e9eaed;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(20,35,55,.13);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.ym-account-popup-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 11px 16px;
  border-bottom: 1px solid #ededed;
}

.ym-account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #30343a;
  font-size: 16px;
  font-weight: 800;
}

.ym-account-popup-header > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.ym-account-popup-header strong {
  color: #292d32;
  font-size: 12px;
}

.ym-account-popup-header small {
  color: #858b93;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ym-account-popup-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 7px;
}

.ym-account-popup .ym-account-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #343b42;
  text-align: left;
  font: 600 12px "Inter", sans-serif;
  cursor: pointer;
  transition: background .2s ease;
}

.ym-account-popup .ym-account-option:hover {
  background: #f6f6f6;
}

.ym-account-option-icon {
  width: 20px;
  text-align: center;
  color: #747d87;
  font-size: 16px;
}

.ym-account-option-arrow {
  margin-left: auto;
  color: #a0a6ad;
  font-size: 20px;
}

.ym-account-popup .ym-account-signout {
  margin-top: 5px;
  border-top: 1px solid #ededed;
  border-radius: 0 0 9px 9px;
  color: #b84b4b;
}

/* MOBILE SIDE MENU ACCOUNT LINKS */

.ym-mobile-account-list {
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid #ededed;
}

.ym-mobile-account-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ym-mobile-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #30373e;
  text-align: left;
  font: 600 12px "Inter", sans-serif;
  cursor: pointer;
}

.ym-mobile-account-item:hover {
  background: #f7f7f7;
}

.ym-mobile-account-icon {
  width: 22px;
  color: #747d87;
  text-align: center;
  font-size: 17px;
}

.ym-mobile-account-arrow {
  margin-left: auto;
  color: #a0a6ad;
  font-size: 22px;
}

/* ACCOUNT CONTENT MODAL */

.ym-account-view {
  position: fixed;
  inset: 0;
  z-index: 300001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9,24,39,.55);
  box-sizing: border-box;
}

.ym-account-view-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(0,0,0,.15);
  box-sizing: border-box;
}

.ym-account-view-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f4;
  color: #30343a;
  font-size: 23px;
  cursor: pointer;
}

.ym-account-view-panel h2 {
  margin: 0 36px 12px 0;
  color: #292d32;
  font: 800 23px "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.ym-account-view-description {
  color: #747b84;
  font: 400 12px/1.7 "Inter", sans-serif;
}

.ym-profile-details {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #ededed;
  border-radius: 11px;
  background: #fafafa;
}

.ym-profile-details > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ym-profile-details span {
  color: #818891;
  font-size: 10px;
}

.ym-profile-details strong {
  color: #292d32;
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .ym-account-popup {
    display: none;
  }
}

@media (max-width: 600px) {
  .ym-account-view-panel {
    padding: 24px 19px;
  }
}
/* ==========================================
   MOBILE ACCOUNT FIRST — CLEAN NAVIGATION
   ========================================== */

@media (max-width: 900px) {

  /* Account section appears first */
  .ym-mobile-account-list {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border-top: none;
    border-bottom: 1px solid #ededed;
  }

  /* Account links remain neatly arranged */
  .ym-mobile-account-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .ym-mobile-account-item {
    min-height: 46px;
    padding: 12px 13px;
  }
}
/* Mobile: Account first, Explore second */
@media (max-width: 900px) {
  .ym-mobile-account-list {
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-top: 0;
    border-bottom: 1px solid #ededed;
  }

  .ym-mobile-account-list > .ym-menu-label {
    display: block !important;
    margin-bottom: 14px;
  }

  /* Remove unnecessary empty space around old account footer */
  .ym-menu-account {
    margin-top: 14px;
  }
}