/**
 * GIT-31A.3.1g — Premium account control + popover (presentation only).
 */

#wpadminbar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  pointer-events: none !important;
}

html.admin-bar,
html.admin-bar body,
body.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.navbar .navbar-nav > li.epicmiles-customer-account {
  position: relative;
}

.navbar .navbar-nav > li.epicmiles-customer-account:hover > .dropdown-menu,
.navbar .navbar-nav > li.epicmiles-customer-account.open > .dropdown-menu,
.navbar .navbar-nav > li.epicmiles-customer-account:focus-within > .dropdown-menu,
.navbar .navbar-nav > li.epicmiles-customer-account > ul.dropdown-menu {
  display: none !important;
}

/* Kill Embark/theme “cut” underline through the Mahim pill. */
.navbar .navbar-nav > li.epicmiles-customer-account > a,
.navbar .navbar-nav > li.epicmiles-customer-account > a:link,
.navbar .navbar-nav > li.epicmiles-customer-account > a:visited,
.navbar .navbar-nav > li.epicmiles-customer-account > a:hover,
.navbar .navbar-nav > li.epicmiles-customer-account > a:focus,
.navbar .navbar-nav > li.epicmiles-customer-account > a:active,
.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

.navbar .navbar-nav > li.epicmiles-customer-account > a::after,
.navbar .navbar-nav > li.epicmiles-customer-account > a.epicmiles-customer-account__trigger::after,
.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 0 !important;
  transform: none !important;
}

.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.2rem 0.65rem 0.2rem 0.22rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(196, 163, 90, 0.42) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f7f4ef !important;
  overflow: visible !important;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

/* Gold rounding on hover / open — replaces the cut underline. */
.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger:hover,
.epicmiles-customer-account--auth.is-open > a.epicmiles-customer-account__trigger,
.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger:focus-visible {
  border-color: rgba(212, 180, 110, 0.95) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 0 0 1px rgba(196, 163, 90, 0.35),
    0 0 0 4px rgba(196, 163, 90, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.18) !important;
  outline: none !important;
}

.epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger::before {
  content: attr(data-initial);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b3a4a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid rgba(196, 163, 90, 0.45);
  box-sizing: border-box;
  text-decoration: none !important;
}

.epicmiles-customer-account__label {
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
}

.epicmiles-customer-account__caret::before {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.epicmiles-customer-account--guest > a.epicmiles-customer-account__signin {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.28rem 0.85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(196, 163, 90, 0.5) !important;
  color: #f7f4ef !important;
  background: rgba(196, 163, 90, 0.14) !important;
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none !important;
}

.epicmiles-customer-account--guest > a.epicmiles-customer-account__signin::after {
  content: none !important;
  display: none !important;
}

.epicmiles-customer-account__panel[hidden] {
  display: none !important;
}

.epicmiles-customer-account__panel {
  box-sizing: border-box;
  width: min(17.5rem, calc(100vw - 1.25rem)) !important;
  max-width: min(17.5rem, calc(100vw - 1.25rem)) !important;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 163, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.92) 0%, #ffffff 42%, #ffffff 100%);
  box-shadow: 0 10px 28px rgba(8, 28, 36, 0.1);
  -webkit-overflow-scrolling: touch;
}

.epicmiles-customer-account__panel-head {
  padding: 0.55rem 0.7rem 0.5rem;
  margin: 0 0 0.15rem;
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
  border-radius: 9px 9px 0 0;
  background: linear-gradient(90deg, rgba(244, 234, 210, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
}

.epicmiles-customer-account__panel-head strong {
  display: block;
  color: #12202a;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.3;
}

.epicmiles-customer-account__panel-head span {
  display: block;
  margin-top: 0.12rem;
  color: #6b7a84;
  font-size: 0.75rem;
  font-weight: 400;
  word-break: break-all;
  line-height: 1.35;
}

.epicmiles-customer-account__panel-list {
  display: grid;
  gap: 0.05rem;
  padding: 0.15rem 0;
}

.epicmiles-customer-account__panel-list a {
  display: block;
  padding: 0.55rem 0.7rem !important;
  min-height: 40px;
  border-radius: 8px;
  color: #1a2a33 !important;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.3;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.epicmiles-customer-account__panel-list a:hover,
.epicmiles-customer-account__panel-list a:focus-visible {
  background: rgba(11, 58, 74, 0.05) !important;
}

.epicmiles-customer-account__panel-list a.is-active {
  background: rgba(11, 58, 74, 0.07) !important;
  color: #0b3a4a !important;
}

.epicmiles-customer-account__panel-list a.is-danger {
  color: #8a2f2f !important;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(11, 58, 74, 0.08);
  border-radius: 0 0 8px 8px;
  font-weight: 500;
}

@media (max-width: 991px) {
  .navbar .navbar-nav > li.epicmiles-customer-account {
    width: 100%;
  }
  .epicmiles-customer-account--auth > a.epicmiles-customer-account__trigger {
    width: 100%;
    justify-content: flex-start;
  }
}
