/* Astra menu overlay treatment. Scoped so the host keeps its existing behavior. */
.astra-menu-drawer.astra-menu-drawer--approved {
  --menu-ink: #181916;
  --menu-paper: #fffdf8;
  --menu-cream: #f3f2f9;
  --menu-gold: #cec6f6;
  --menu-line: #d8d4e2;
  --menu-muted: #6d6a75;
  background: rgba(20, 20, 18, .54);
  backdrop-filter: blur(3px);
}

.astra-menu-drawer.astra-menu-drawer--approved .panel {
  inline-size: min(100%, 460px);
  min-block-size: 100%;
  margin-inline-start: auto;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--menu-ink);
  background: var(--menu-paper);
  box-shadow: -20px 0 48px rgba(0, 0, 0, .23);
}

.astra-menu-drawer--approved .panel-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 78px;
  padding: 14px 18px;
  color: #f8f6fc;
  background: linear-gradient(122deg, #20211f, #171816 68%, #26252b);
  border-block-end: 1px solid rgba(206, 198, 246, .27);
}

.astra-menu-drawer--approved .panel-head h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.astra-menu-drawer--approved .panel-head p { margin: 3px 0 0; color: #d4d1de; font-size: 12px; }
.astra-menu-drawer--approved .menu-profile-heading { display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 10px; }
.astra-menu-drawer--approved .menu-profile-mark { display: grid; place-items: center; inline-size: 42px; block-size: 42px; color: #201e26; background: var(--menu-gold); border: 1px solid #e2dcfb; border-radius: 50%; }
.astra-menu-drawer--approved .menu-profile-mark .menu-local-icon { inline-size: 23px; block-size: 23px; }

.astra-menu-drawer--approved .menu-search-trigger,
.astra-menu-drawer--approved .menu-search-field {
  inline-size: calc(100% - 32px);
  min-block-size: 48px;
  margin: 16px;
  padding: 0 14px;
  color: var(--menu-ink);
  background: var(--menu-cream);
  border: 1px solid var(--menu-line);
  border-radius: 14px;
}
.astra-menu-drawer--approved .menu-search-trigger { display: flex; align-items: center; gap: 10px; text-align: start; }
.astra-menu-drawer--approved .menu-search-field { display: block; padding-block: 8px; font-size: 12px; color: var(--menu-muted); }
.astra-menu-drawer--approved .menu-search-field input { display: block; inline-size: 100%; margin-block-start: 3px; padding: 5px 0; color: inherit; background: transparent; border: 0; outline: 0; }

.astra-menu-drawer--approved .recruitment-code {
  inline-size: calc(100% - 32px);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1px 10px;
  margin: 0 16px 18px;
  padding: 13px 14px;
  text-align: start;
  color: #24231e;
  background: linear-gradient(135deg, #f3f2fa, #e1dcfa);
  border: 1px solid #c3bbf0;
  border-radius: 14px;
}
.astra-menu-drawer--approved .recruitment-code > span { grid-column: 1 / -1; font-size: 12px; }
.astra-menu-drawer--approved .recruitment-code strong { grid-column: 1 / -1; direction: ltr; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; }
.astra-menu-drawer--approved .recruitment-code small { grid-column: 1 / -1; color: #5e5188; font-size: 11px; }
.astra-menu-drawer--approved .recruitment-code:disabled { color: #6a6773; background: #edebf3; border-color: var(--menu-line); opacity: 1; }

.astra-menu-drawer--approved .menu-list { padding: 0 10px calc(24px + env(safe-area-inset-bottom, 0px)); }
.astra-menu-drawer--approved .menu-group { border-block-start: 1px solid var(--menu-line); }
.astra-menu-drawer--approved .menu-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 100%;
  min-block-size: 54px;
  padding: 0 8px;
  color: #37353c;
  background: transparent;
  font-weight: 700;
  text-align: start;
}
.astra-menu-drawer--approved .menu-group-toggle > svg { inline-size: 16px; transition: transform .18s ease; }
.astra-menu-drawer--approved .menu-group-toggle[aria-expanded="true"] > svg { transform: rotate(-90deg); }
.astra-menu-drawer--approved .menu-group-body { display: grid; gap: 3px; padding-block-end: 10px; }

.astra-menu-drawer--approved .menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 10px;
  inline-size: 100%;
  min-block-size: 54px;
  padding: 9px 10px;
  color: var(--menu-ink);
  background: transparent;
  border-radius: 12px;
  text-align: start;
}
.astra-menu-drawer--approved .menu-item:hover { background: #f0eff6; }
.astra-menu-drawer--approved .menu-item > strong { grid-column: 2; font-size: 14px; font-weight: 600; }
.astra-menu-drawer--approved .menu-item > small { grid-column: 2; margin-block-start: 2px; color: var(--menu-muted); font-size: 11px; }
.astra-menu-drawer--approved .menu-item > .menu-local-icon { grid-column: 1; grid-row: 1 / span 2; color: #7a69d3; }
.astra-menu-drawer--approved .menu-item > svg:not(.menu-local-icon) { grid-column: 3; grid-row: 1 / span 2; inline-size: 16px; opacity: .58; }
.astra-menu-drawer--approved .menu-item:disabled { color: #938f9d; background: transparent; opacity: 1; }
.astra-menu-drawer--approved .menu-item.danger-button { color: #9d3633; }
.astra-menu-drawer--approved .menu-item.danger-button > .menu-local-icon { color: #b24740; }

.astra-menu-drawer--approved button:focus-visible,
.astra-menu-drawer--approved input:focus-visible { outline: 3px solid #2e7b96; outline-offset: 2px; }
@media (max-width: 600px) {
  .astra-menu-drawer.astra-menu-drawer--approved { align-items: end; }
  .astra-menu-drawer.astra-menu-drawer--approved .panel { inline-size: 100%; min-block-size: min(88svh, 760px); max-block-size: 92svh; border-radius: 22px 22px 0 0; }
  .astra-menu-drawer--approved .panel-head { border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .astra-menu-drawer--approved *, .astra-menu-drawer--approved *::before, .astra-menu-drawer--approved *::after { transition: none !important; animation: none !important; } }

.astra-menu-drawer--approved .panel-head :is(h2,p){color:inherit!important}
