.admin-quick-drawer {
  --drawer-handle-height: 34px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1051;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translateY(calc(-100% + var(--drawer-handle-height)));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.admin-quick-drawer.is-open {
  transform: translateY(0);
}

.admin-quick-drawer__panel {
  width: 100%;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #26312c;
  border-bottom: 2px solid #85bd43;
  box-shadow: 0 18px 42px rgba(18, 25, 21, 0.3);
  pointer-events: auto;
}

.admin-quick-drawer__content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 14px 22px 16px;
}

.admin-quick-drawer__toggle {
  height: var(--drawer-handle-height);
  padding: 0 16px;
  color: #f4f7f5;
  background: #26312c;
  border: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 14px rgba(18, 25, 21, 0.24);
  font-size: 12px;
  font-weight: 600;
  line-height: var(--drawer-handle-height);
  letter-spacing: 0.01em;
  pointer-events: auto;
  transition: color 160ms ease, background-color 160ms ease;
}

.admin-quick-drawer__toggle:hover,
.admin-quick-drawer__toggle:focus {
  color: #fff;
  background: #34423b;
  outline: none;
}

.admin-quick-drawer__toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(133, 189, 67, 0.42), 0 5px 14px rgba(18, 25, 21, 0.24);
}

.admin-quick-drawer__toggle .fa-anchor {
  margin-right: 7px;
  color: #9dce62;
}

.admin-quick-drawer__chevron {
  margin-left: 9px;
  font-size: 9px;
  transition: transform 220ms ease;
}

.admin-quick-drawer.is-open .admin-quick-drawer__chevron {
  transform: rotate(180deg);
}

.admin-quick-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(17, 24, 20, 0.22);
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

body.admin-quick-drawer-open .admin-quick-drawer__backdrop {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.admin-quick-drawer__content > .panel {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-quick-drawer__content > .panel > .panel-heading {
  min-height: 30px;
  padding: 0 8px 10px;
  color: #f4f7f5;
  background: transparent;
  border: 0;
}

.admin-quick-drawer__content .panel-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.admin-quick-drawer__content .panel-title .fa {
  margin-right: 7px;
  color: #9dce62;
}

.admin-quick-drawer__content .shortcuts {
  grid-template-columns: repeat(10, minmax(92px, 1fr));
  gap: 6px;
  padding: 0;
}

.admin-quick-drawer__content .shortcuts .shortcut {
  min-width: 0;
  min-height: 62px;
  padding: 8px 5px 7px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 4px;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.admin-quick-drawer__content .shortcuts .shortcut:hover {
  background: rgba(157, 206, 98, 0.1);
  border-color: rgba(157, 206, 98, 0.56);
  transform: translateY(-1px);
}

.admin-quick-drawer__content .shortcuts .shortcut a {
  width: 100%;
  color: #edf2ef;
  font-size: 11px;
  line-height: 1.22;
}

.admin-quick-drawer__content .shortcuts .shortcut a:hover,
.admin-quick-drawer__content .shortcuts .shortcut a:focus {
  color: #fff;
  text-decoration: none;
  outline: none;
}

.admin-quick-drawer__content .shortcuts .shortcut a:focus-visible {
  box-shadow: 0 0 0 2px #9dce62;
}

.admin-quick-drawer__content .shortcuts .shortcut svg {
  width: 21px;
  height: 21px;
  margin-bottom: 5px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1099px) {
  .admin-quick-drawer__content .shortcuts {
    grid-template-columns: repeat(6, minmax(92px, 1fr));
  }
}

@media (max-width: 767px) {
  .admin-quick-drawer__panel {
    max-height: 74vh;
  }

  .admin-quick-drawer__content {
    padding: 12px 10px 14px;
  }

  .admin-quick-drawer__content .shortcuts {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

  .admin-quick-drawer__content .shortcuts .shortcut {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-quick-drawer,
  .admin-quick-drawer__backdrop,
  .admin-quick-drawer__chevron,
  .admin-quick-drawer__content .shortcuts .shortcut,
  .admin-quick-drawer__content .shortcuts .shortcut svg {
    transition: none !important;
  }
}
