/* Gidra.de mobile account drawer, v1.0.0.
   Scoped to #menu-options: does not change the dashboard, desktop dropdown,
   mobile user navigation or plugin output. */
body.gidra-menu-open { overflow: hidden; }
#menu-options.gidra-mobile-menu,
#menu-options.gidra-mobile-menu * { box-sizing: border-box; }
#menu-options.gidra-mobile-menu {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  color: #26334c;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}
#menu-options.gidra-mobile-menu .gm-icon {
  display: block;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Header stays visible while only the menu content scrolls. */
#menu-options.gidra-mobile-menu .head {
  height: 80px;
  min-height: 80px;
  padding: 12px 60px 12px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #eff1f5;
  color: #19263b;
  text-align: left;
  z-index: 3;
}
#menu-options.gidra-mobile-menu .head .image {
  position: static;
  left: auto;
  top: auto;
  width: 48px;
  height: 48px;
  margin: 0;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f2f8;
}
#menu-options.gidra-mobile-menu .head .image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
#menu-options.gidra-mobile-menu .gidra-menu-heading {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
#menu-options.gidra-mobile-menu .head .gidra-menu-heading strong {
  display: block;
  max-height: none;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#menu-options.gidra-mobile-menu .gidra-menu-heading > span {
  color: #8290a5;
  font-size: 12px;
  line-height: 1.25;
}
#menu-options.gidra-mobile-menu .head a.close {
  position: absolute;
  top: 18px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5b6;
  background: transparent;
  text-decoration: none;
}
#menu-options.gidra-mobile-menu .head a.close:hover,
#menu-options.gidra-mobile-menu .head a.close:focus-visible {
  background: #f4f6fa;
  color: #26334c;
}
#menu-options.gidra-mobile-menu .head a.close .gm-icon { width: 23px; height: 23px; }
#menu-options.gidra-mobile-menu .body {
  position: absolute;
  top: 80px;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 13px 16px 16px;
  background: #fff;
}
#menu-options.gidra-mobile-menu.gidra-menu-guest .body {
  bottom: calc(102px + env(safe-area-inset-bottom, 0px));
}
/* Compact wallet card, with one accessible action and balance. */
#menu-options.gidra-mobile-menu .gidra-menu-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 15px;
  border-radius: 13px;
  background: #f0ebff;
}
#menu-options.gidra-mobile-menu .gidra-menu-wallet-info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
#menu-options.gidra-mobile-menu .gidra-menu-wallet-label {
  font-size: 12px;
  line-height: 1.25;
  color: #695c8b;
  font-weight: 600;
}
#menu-options.gidra-mobile-menu .gidra-menu-wallet-balance {
  display: block;
  color: #2d2250;
  font-size: clamp(20px, 5.5vw, 25px);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-topup {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  float: none;
  clear: none;
  gap: 4px;
  border-radius: 9px;
  background: #5429bd;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-topup .gm-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-topup:hover,
#menu-options.gidra-mobile-menu .body a.gidra-menu-topup:focus-visible {
  background: #43209b;
  color: #fff;
}
/* Section headings and 48px thumb-friendly rows. */
#menu-options.gidra-mobile-menu .gidra-menu-section {
  display: block;
  margin: 0;
  padding: 6px 0 10px;
  border-bottom: 1px solid #eef0f5;
}
#menu-options.gidra-mobile-menu .gidra-menu-section + .gidra-menu-section {
  padding-top: 15px;
}
#menu-options.gidra-mobile-menu .gidra-menu-section-last {
  border-bottom: 0;
  padding-bottom: 12px;
}
#menu-options.gidra-mobile-menu .gidra-menu-section h2 {
  margin: 0 0 6px;
  padding: 0 11px;
  border: 0;
  background: none;
  color: #8793a8;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-weight: 750;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 9px 10px;
  float: none;
  clear: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #36425b;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-item > .gm-icon:first-child {
  width: 21px;
  height: 21px;
  color: #8390a7;
}
#menu-options.gidra-mobile-menu .gidra-menu-item-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#menu-options.gidra-mobile-menu .gm-icon.gm-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #c1c8d3;
  stroke-width: 1.75;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-item:hover,
#menu-options.gidra-mobile-menu .body a.gidra-menu-item:focus-visible {
  background: #f4f2fb;
  color: #43208f;
}
#menu-options.gidra-mobile-menu .body a.gidra-menu-item:active {
  background: #ede7ff;
}
#menu-options.gidra-mobile-menu .gidra-menu-count {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  background: #5429bd;
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
#menu-options.gidra-mobile-menu .gidra-menu-count.muted {
  color: #5c4a83;
  background: #eee8fb;
}
/* The bottom action is deliberately quiet rather than a full-width red CTA. */
#menu-options.gidra-mobile-menu .foot {
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  min-height: 68px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eef0f5;
  text-align: left;
  z-index: 3;
}
#menu-options.gidra-mobile-menu .foot a.gidra-menu-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  margin: 0;
  border-radius: 11px;
  background: transparent;
  color: #69768b;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
}
#menu-options.gidra-mobile-menu .foot a.gidra-menu-logout:hover,
#menu-options.gidra-mobile-menu .foot a.gidra-menu-logout:focus-visible {
  background: #f5f6f9;
  color: #3b4960;
}
#menu-options.gidra-mobile-menu.gidra-menu-guest .foot {
  height: calc(102px + env(safe-area-inset-bottom, 0px));
  padding-top: 10px;
}
#menu-options.gidra-mobile-menu .foot a.gidra-menu-login {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 5px;
  min-height: 43px;
  font-size: 14px;
}
#menu-options.gidra-mobile-menu .foot .row {
  font-size: 12px;
  line-height: 18px;
  color: #8a95a8;
  text-align: center;
  margin: 0;
}
#menu-options.gidra-mobile-menu .foot .row a {
  color: #5429bd;
}
#menu-options.gidra-mobile-menu a:focus-visible {
  outline: 2px solid #7858cf;
  outline-offset: -2px;
}
@media (max-width: 340px) {
  #menu-options.gidra-mobile-menu .body { padding-left: 10px; padding-right: 10px; }
  #menu-options.gidra-mobile-menu .gidra-menu-wallet { gap: 8px; padding: 12px; }
  #menu-options.gidra-mobile-menu .body a.gidra-menu-topup { padding: 8px; font-size: 12px; }
  #menu-options.gidra-mobile-menu .body a.gidra-menu-item { gap: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #menu-options.gidra-mobile-menu * { scroll-behavior: auto !important; }
}
