/*
 * Əlçatanlıq menyusu: floating button + side panel (narmin-majid-web).
 * UserWay-style sheet (asan.gov.az) in the site's deep gold. Sizes are px on purpose:
 * the panel must not grow with the page's text-size levels (a11y-effects.css).
 */

/* ---------------------------------------------------------------- root + resets */

.uwa {
  --uwa-main: #8A6718;
  --uwa-main-rgb: 138, 103, 24;
  --uwa-ink: #353334;
  --uwa-body: #F3F0E8;
  --uwa-line: #E4DFD3;
  --uwa-off: #4A4748;
  --uwa-font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: block;
  position: static;
  width: auto;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font: 400 15px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
  text-indent: 0;
  text-transform: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.uwa *,
.uwa *::before,
.uwa *::after { box-sizing: border-box; }
.uwa [hidden] { display: none !important; }
.uwa svg { display: block; flex: none; overflow: visible; pointer-events: none; }
.uwa :where(button) {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.uwa :where(h2, p, label, section, header) { margin: 0; padding: 0; }

.uwa .uwa-sr,
.uwa .uwa-vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ------------------------------------------------------------- floating button */

.uwa .uwa-fab {
  position: fixed;
  left: 13px;
  right: auto;
  bottom: 13px;
  top: auto;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--uwa-main);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: transform .1s, box-shadow .1s;
  box-shadow: 0 2px 8px rgba(53, 51, 52, .25);
}
.uwa .uwa-fab::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border-radius: 50%;
}
.uwa .uwa-fab:hover { transform: scale(1.06); }
.uwa .uwa-fab:focus-visible {
  outline: 2px solid var(--uwa-main);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(var(--uwa-main-rgb), .22);
}
.uwa .uwa-fab > svg { width: 26px; height: 26px; }
html[data-uwa-fab="right"] .uwa .uwa-fab { left: auto; right: 13px; }
html[data-uwa-fab="hidden"] .uwa .uwa-fab { display: none; }

.uwa .uwa-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(var(--uwa-main-rgb), .88);
  color: #fff;
  pointer-events: none;
}
.uwa .uwa-badge svg { width: 9px; height: 9px; }
.uwa .uwa-fab__badge { top: -4px; right: -4px; }

/* ----------------------------------------------------------------------- panel */

.uwa .uwa-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 100vw;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--uwa-main);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 8px 0 32px rgba(53, 51, 52, .18);
  font: 400 15px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
  outline: none;
  transform: translateX(-100%);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1);
}
.uwa.uwa--right .uwa-panel {
  left: auto;
  right: 0;
  transform: translateX(100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), -8px 0 32px rgba(53, 51, 52, .18);
}
.uwa .uwa-panel.uwa-panel--open { transform: none; }

.uwa .uwa-panel__head {
  position: static;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 63px;
  width: auto;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.uwa .uwa-panel__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: 500 15px/1.3 var(--uwa-font);
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
}
.uwa .uwa-panel__title:focus { outline: none; }

.uwa .uwa-close {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .36);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: background-color .15s;
}
.uwa .uwa-close::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
}
.uwa .uwa-close:hover { background: rgba(0, 0, 0, .5); }
.uwa .uwa-close:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255, 255, 255, .3); }
.uwa .uwa-close svg { width: 14px; height: 14px; }

.uwa .uwa-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--uwa-body);
  border-radius: 16px 16px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--uwa-main-rgb), .45) transparent;
}

/* --------------------------------------------------------------- oversized row */

.uwa .uwa-xlrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.uwa .uwa-xlrow__label {
  font: 500 15px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
  cursor: pointer;
}
.uwa .uwa-switch {
  position: relative;
  flex: none;
  width: 45px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--uwa-off);
  overflow: hidden;
  cursor: pointer;
  outline: none;
}
.uwa .uwa-switch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--uwa-main);
  transform: translateX(-100%);
  transition: transform .2s ease;
}
.uwa .uwa-switch[aria-checked="true"]::before { transform: none; }
.uwa .uwa-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--uwa-off);
  transition: transform .2s ease;
}
.uwa .uwa-switch[aria-checked="true"] .uwa-switch__knob { transform: translateX(21px); color: var(--uwa-main); }
.uwa .uwa-switch__knob svg { width: 10px; height: 10px; }
.uwa .uwa-switch .uwa-switch__on,
.uwa .uwa-switch[aria-checked="true"] .uwa-switch__off { display: none; }
.uwa .uwa-switch[aria-checked="true"] .uwa-switch__on { display: block; }
.uwa .uwa-switch:focus-visible {
  outline: 2px solid var(--uwa-main);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(var(--uwa-main-rgb), .22);
}

/* ----------------------------------------------------------------------- tiles */

.uwa .uwa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
}
.uwa .uwa-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 114px;
  margin: 0;
  padding: 5px 10px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #fff;
  font: 600 14px/1.2 var(--uwa-font);
  color: #000;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.uwa .uwa-tile:hover { border-color: rgba(var(--uwa-main-rgb), .35); }
.uwa .uwa-tile[aria-pressed="true"] {
  border-color: var(--uwa-main);
  box-shadow: 0 0 0 5px rgba(var(--uwa-main-rgb), .1);
  color: var(--uwa-main);
}
.uwa .uwa-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 32px;
  margin: 6px 0 8px;
  color: var(--uwa-ink);
}
.uwa .uwa-tile[aria-pressed="true"] .uwa-tile__icon { color: var(--uwa-main); }
.uwa .uwa-tile__icon svg { width: 26px; height: 26px; }
.uwa .uwa-tile__name {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}
.uwa .uwa-tile__steps {
  display: flex;
  flex: none;
  gap: 3px;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  padding: 0 6px;
  visibility: hidden;
}
.uwa .uwa-tile[aria-pressed="true"] .uwa-tile__steps { visibility: visible; }
.uwa .uwa-tile__steps i {
  flex: 1 1 0;
  height: 3px;
  border-radius: 10px;
  background: rgba(var(--uwa-main-rgb), .3);
}
.uwa .uwa-tile__steps i.is-on { background: var(--uwa-main); }
.uwa .uwa-tile__check { top: 10px; right: 10px; display: none; }
.uwa .uwa-tile[aria-pressed="true"] .uwa-tile__check { display: flex; }
.uwa .uwa-tile__info {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E8E1CF;
  color: var(--uwa-ink);
  font: 700 11px/16px var(--uwa-font);
  text-align: center;
}

/* Focus ring shared by tiles and the other panel buttons. */
.uwa .uwa-tile:focus-visible::after,
.uwa .uwa-reset:focus-visible::after,
.uwa .uwa-move__toggle:focus-visible::after,
.uwa .uwa-btn:focus-visible::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  border: 2px solid var(--uwa-main);
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(var(--uwa-main-rgb), .22);
  pointer-events: none;
}

/* ----------------------------------------------------------------------- reset */

.uwa .uwa-reset {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 20px 13px 44px;
  border: 0;
  border-radius: 10px;
  background: var(--uwa-main);
  color: #fff;
  font: 600 14px/1.3 var(--uwa-font);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color .15s;
}
.uwa .uwa-reset:hover { background: #7A5B15; }
.uwa .uwa-reset svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
}

/* ------------------------------------------------------------------ move / hide */

.uwa .uwa-move {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uwa .uwa-move__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  font: 500 15px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
  text-align: left;
  cursor: pointer;
  outline: none;
}
.uwa .uwa-move__gear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--uwa-main);
  color: #fff;
}
.uwa .uwa-move__gear svg { width: 14px; height: 14px; }
.uwa .uwa-move__text { flex: 1 1 auto; min-width: 0; }
.uwa .uwa-move__caret {
  width: 16px;
  height: 16px;
  color: var(--uwa-main);
  transition: transform .2s ease;
}
.uwa .uwa-move__toggle[aria-expanded="true"] .uwa-move__caret { transform: rotate(90deg); }

.uwa .uwa-move__body {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}
.uwa .uwa-group { margin: 0; padding: 0; border: 0; }
.uwa .uwa-group + .uwa-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--uwa-line);
}
.uwa .uwa-group__label {
  margin: 0 0 4px;
  font: 600 14px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
}
.uwa .uwa-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  font: 400 15px/1.3 var(--uwa-font);
  color: var(--uwa-ink);
  cursor: pointer;
}
.uwa .uwa-opt + .uwa-opt { border-top: 1px solid var(--uwa-line); }
.uwa .uwa-opt input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--uwa-main);
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.uwa .uwa-opt input:checked {
  background: radial-gradient(circle, var(--uwa-main) 0 4px, #fff 4.6px);
}
.uwa .uwa-opt input:focus-visible {
  outline: 2px solid var(--uwa-main);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(var(--uwa-main-rgb), .22);
}

.uwa .uwa-move__actions {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 16px;
}
.uwa .uwa-btn {
  position: relative;
  width: calc(50% - 6px);
  padding: 11px 10px;
  border: 2px solid var(--uwa-main);
  border-radius: 10px;
  font: 600 14px/1.3 var(--uwa-font);
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: background-color .15s, color .15s;
}
.uwa .uwa-btn--fill { background: var(--uwa-main); color: #fff; }
.uwa .uwa-btn--line { background: #fff; color: var(--uwa-main); }
.uwa .uwa-btn--line:hover { background: rgba(var(--uwa-main-rgb), .06); }

/* --------------------------------------------------------------- oversized menu */

.uwa.uwa--xl .uwa-panel__title { font-size: 16px; }
.uwa.uwa--xl .uwa-xlrow__label { font-size: 16px; }
.uwa.uwa--xl .uwa-switch { width: 47px; height: 28px; border-radius: 14px; }
.uwa.uwa--xl .uwa-switch__knob { width: 24px; height: 24px; }
.uwa.uwa--xl .uwa-switch[aria-checked="true"] .uwa-switch__knob { transform: translateX(19px); }
.uwa.uwa--xl .uwa-tile { height: 154px; padding: 5px 6px; font-size: 20px; }
.uwa.uwa--xl .uwa-tile__icon { height: 42px; }
.uwa.uwa--xl .uwa-tile__icon svg { width: 34px; height: 34px; }
.uwa.uwa--xl .uwa-reset,
.uwa.uwa--xl .uwa-btn { font-size: 16px; }
.uwa.uwa--xl .uwa-move__toggle,
.uwa.uwa--xl .uwa-opt { font-size: 16px; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 480px) {
  .uwa .uwa-panel,
  .uwa.uwa--right .uwa-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }
  .uwa .uwa-tile { height: 104px; }
  .uwa.uwa--xl .uwa-tile { font-size: 18px; }
}

/* ------------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  .uwa *,
  .uwa *::before,
  .uwa *::after { transition: none !important; }
  .uwa .uwa-fab:hover { transform: none; }
}
html[data-uwa-pause] .uwa *,
html[data-uwa-pause] .uwa *::before,
html[data-uwa-pause] .uwa *::after { transition: none !important; }

/* ------------------------------------------------------- Windows high contrast */

@media (forced-colors: active) {
  .uwa .uwa-fab,
  .uwa .uwa-close,
  .uwa .uwa-switch,
  .uwa .uwa-reset { border: 2px solid ButtonText; }
  .uwa .uwa-panel { border-right: 1px solid CanvasText; }
  .uwa.uwa--right .uwa-panel { border-right: 0; border-left: 1px solid CanvasText; }
  .uwa .uwa-tile { border-color: ButtonText; }
  .uwa .uwa-tile[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -5px; }
  .uwa .uwa-tile__steps i { background: GrayText; }
  .uwa .uwa-tile__steps i.is-on { background: Highlight; }
  .uwa .uwa-switch[aria-checked="true"] { background: Highlight; }
  .uwa .uwa-fab:focus-visible,
  .uwa .uwa-close:focus-visible,
  .uwa .uwa-switch:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
}

/* ------------------------------------------------------------------------- print */

@media print {
  .uwa { display: none !important; }
}
