/* ========== Orderlist Global Styles (compact language popover & login button) ========== */
:root {
  --ol-radius: 14px;
  --ol-shadow: 0 8px 28px rgba(0, 0, 0, .15);
  --ol-border: 1px solid rgba(0, 0, 0, .12);
  --ol-bg: #fff;
  --ol-muted: #6c757d;
  --ol-z: 1000;
  --ol-primary: rgb(255, 123, 0);
  --o1-secundary: rgb(255, 106, 53);
  --bg_fade: #ff9068;
  /* Orange */
  --ol-primary-text: #fff;
  --light_bg: #f7f7f7;
  --light_fg: #5b5b5b;
  ;
  --nav_bg: var(--light_bg);
  --nav_fg: var(--light_fg);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

/* Globale Link-Styles */
a:not(.btn) {
  text-decoration: none;
  color: inherit;
  transition: color .15s ease;
}

a:not(.btn):hover {
  color: var(--ol-primary);
  /* Orange aus Theme */
  text-decoration: none;
}

/* Tastatur-Fokus sichtbar lassen */
a:focus-visible {
  outline: 2px solid var(--ol-primary);
  outline-offset: 2px;
}

/* Login page tweaks */
.shop-login .row.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-login .row.inline .btn {
  margin-left: auto;
}

/* Orange primary button */
.btn {
  background: var(--ol-primary);
  color: var(--ol-primary-text);
  border: none;
  padding: .6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn:disabled {
  opacity: .6;
  cursor: default;
}

.icon-btn {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, .12);
    padding: .45rem .55rem;
    border-radius: 10px;
    cursor: pointer;
    color: var(--o1-secundary);
}

.icon-btn:hover {
    filter: brightness(.98);
}

/* Keep "Passwort vergessen?" on one line */
.link-forgot {
  white-space: nowrap;
}

/* --- Brand header above login --- */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* links ausgerichtet */
  gap: 10px;
  margin: 16px 0 12px;
}

.shop-login .brand-logo {
  display: block;
  width: clamp(110px, 17.5vw, 180px);
  height: auto;
  object-fit: contain;
  aspect-ratio: 720 / 361;
}

.shop-login .brand-title {
  margin: 0;
  font: 700 26px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ol-primary);
  letter-spacing: .2px;
}

@media (min-width: 680px) {
  .shop-login .brand-title {
    font-size: 28px;
  }
}

/* Sprach Panel */
:root {
  --ol-edge: 8px;
  --ol-edge-mobile: 8px;
}

/* Right-side language rail trigger */
.ol-lang-rail {
  position: fixed;
  top: 50%;
  right: calc(var(--ol-edge) + env(safe-area-inset-right));
  transform: translateY(-50%);
  z-index: var(--ol-z);
}

.ol-lang-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .55rem;
  background: var(--ol-bg);
  border: var(--ol-border);
  border-radius: 999px;
  box-shadow: var(--ol-shadow);
  cursor: pointer;
  user-select: none;
}

.ol-lang-button .fi {
  width: 1.333em;
  height: 1em;
}

.ol-lang-button .ol-label {
  font: 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #222;
}

.ol-lang-button .ol-caret {
  margin-left: .1rem;
  border: 6px solid transparent;
  border-top-color: #666;
  transform: translateY(2px);
}

/* Compact popover panel */
.ol-lang-panel-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: transparent;
  z-index: calc(var(--ol-z) + 1);
}

.ol-lang-panel-backdrop[aria-hidden="false"] {
  display: block;
}

.ol-lang-panel {
  position: fixed;
  right: calc(var(--ol-edge) + env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-height: 320px;
  overflow: hidden;
  background: var(--ol-bg);
  border: var(--ol-border);
  box-shadow: var(--ol-shadow);
  border-radius: var(--ol-radius);
  display: grid;
  grid-template-rows: auto 1fr;
}

.ol-lang-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .75rem;
  border-bottom: var(--ol-border);
}

.ol-lang-panel header strong {
  font: 15px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.ol-lang-panel header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.ol-lang-list {
  list-style: none;
  margin: 0;
  padding: .35rem .4rem;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
}

.ol-lang-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: .5rem;
  padding: .4rem .5rem;
  border-radius: 10px;
  cursor: pointer;
}

.ol-lang-item:hover {
  background: #f7f7f7;
}

.ol-lang-item[aria-selected="true"] {
  background: #f3f7ff;
}

.ol-lang-item .fi {
  width: 1.333em;
  height: 1em;
}

.ol-lang-code {
  color: var(--ol-muted);
  font-size: 12px;
}

/* Mobile: place popover near bottom-right for reachability */
@media (max-width: 680px) {
  .ol-lang-rail {
    position: fixed;
    top: 50%;
    bottom: auto;
    right: calc(var(--ol-edge-mobile) + env(safe-area-inset-right));
    transform: none;
  }

  .ol-lang-panel {
    position: fixed;
    top: 50%;
    bottom: auto;
    right: calc(var(--ol-edge-mobile) + env(safe-area-inset-right));
    transform: translateY(-50%);
    /* auf kleinen Screens sicher im Viewport halten */
    max-width: min(320px, 92vw);
    z-index: calc(var(--ol-z) + 2);
  }
}

/* --- Vertical rail variant (hochkant) --- */
.ol-lang-rail--vertical {
  right: calc(6px + env(safe-area-inset-right));
}

.ol-lang-rail--vertical .ol-lang-button {
  flex-direction: column;
  padding: .5rem .45rem;
}

.ol-lang-rail--vertical .ol-label {
  writing-mode: vertical-rl;
  /* vertical text */
  transform: rotate(180deg);
  /* upright reading */
  letter-spacing: .06em;
}

.ol-lang-rail--vertical .ol-caret {
  display: none;
}

.ol-lang-rail--vertical .fi {
  margin: 0 auto;
}

/** --- rechts rail variant --- */
body.ol-left .ol-lang-panel {
  left: calc(var(--ol-edge) + env(safe-area-inset-left));
  right: auto;
}

/* Edge / IE: native Passwort-Auge + Clear-Button ausblenden */
.dx-texteditor input[type="password"]::-ms-reveal,
.dx-texteditor input[type="password"]::-ms-clear {
  display: none;
}