html,
body,
#container {
  background: #212c37 !important;
  --font-family-base: "Open Sans", Arial, sans-serif !important;
  --heading-font-family: "Montserrat", Arial, sans-serif !important;
  --font-family-monospaced: "Fira Code", monospace !important;
  --color-warm-grey-1: #212c37 !important;
  --color-warm-grey-2: #25303b !important;
  --color-warm-grey-3: #2c3741 !important;
  --color-warm-grey-4: #3c464f !important;
  --color-warm-grey-5: #656d74 !important;
  --color-warm-grey-6: #8f979d !important;
  --color-warm-grey-7: #bfbfbf !important;
  --color-warm-grey-8: #d9dcde !important;
  --color-warm-grey-9: #e9ebec !important;
  --color-warm-grey-10: #f2f3f4 !important;
  --color-warm-grey-11: #f5f5f5 !important;
  --color-blue-6: #5d89ed !important;
  --color-blue-7: #79a0f2 !important;
  --color-blue-8: #a6bef6 !important;
  --color-green-6: #73df87 !important;
  --color-green-7: #9be9a8 !important;
  --color-red-6: #ee695d !important;
  --color-red-7: #f18b82 !important;
  --color-carrot-6: #faa61a !important;
  --bg-color: #212c37 !important;
  --bg-color-hover: #2c3741 !important;
  --bg-color-active: #3c464f !important;
  --bg-color-raised: #25303b !important;
  --layer-color: #2c3741 !important;
  --layer-color-hover: #3c464f !important;
  --layer-color-active: #656d74 !important;
  --border-color-primary: #3c464f !important;
  --border-color-secondary: #323d47 !important;
  --text-color-primary: #f5f5f5 !important;
  --text-color-secondary: #f5f5f5 !important;
  --text-color-description: #bfbfbf !important;
  --link-color-primary: #5d89ed !important;
  --link-color-primary-hover: #79a0f2 !important;
  --tree-content-color-default: #f5f5f5 !important;
  --tree-content-color-hover: #f5f5f5 !important;
  --tree-bg-color-hover: #2c3741 !important;
  --tree-bg-color-active: #3c464f !important;
  --input-bg-color: #2c3741 !important;
  --input-border-color: #3c464f !important;
  --input-content-color-active: #f5f5f5 !important;
  --tooltip-bg-color: #37414b !important;
  --tooltip-text-color: #f5f5f5 !important;
  --tooltip-border-color: rgba(255, 255, 255, 0.12) !important;
  --tooltip-arrow-color: #37414b !important;
  --tooltip-border-width: 1px !important;
  --segmented-buttons-bg-color-main: #3b454f !important;
  --segmented-buttons-bg-color-inner: #3c464f !important;
  --segmented-buttons-content-color: #bfbfbf !important;
  --sidebar-width: 280px !important;
  --sidebar-margin-horizontal: 16px !important;
  --sidebar-offset-top: 16px !important;
  --sidebar-logo-max-width: 150px !important;
  --sidebar-logo-max-height: 30px !important;
  --sidebar-text-color: #f5f5f5 !important;
  --menu-item-text-color: #f5f5f5 !important;
  --menu-item-color-hover: #f5f5f5 !important;
  --menu-item-color-active: #f5f5f5 !important;
  --menu-item-bg-color-hover: #2c3741 !important;
  --menu-item-bg-color-active: rgba(255, 255, 255, 0.08) !important;
  --menu-item-label-border-radius: 4px !important;
  --search-trigger-bg-color: #2c3741 !important;
  --search-trigger-border-color: #3c464f !important;
  --search-trigger-border-color-hover: #656d74 !important;
  --search-trigger-border-radius: 18px !important;
  --search-modal-bg-color: #212c37 !important;
  --search-modal-header-bg-color: #25303b !important;
  --search-modal-border: 1px solid #3c464f !important;
  --search-item-bg-color-hover: #2c3741 !important;
  --panel-border: 1px solid #323d47 !important;
  --panel-border-radius: 7px !important;
  --panel-bg-color: #25303b !important;
  --panel-heading-text-color: #f5f5f5 !important;
  --panel-heading-padding: 4px 16px !important;
  --panel-body-padding: 16px !important;
  --panel-samples-bg-color: #25303b !important;
  --panel-samples-body-bg-color: #25303b !important;
  --panel-samples-heading-bg-color: #25303b !important;
  --panel-response-heading-padding: 12px 18px !important;
  --panel-response-success-border-color: #73df87 !important;
  --panel-response-success-heading-bg-color: transparent !important;
  --panel-response-success-heading-text-color: #73df87 !important;
  --panel-response-error-border-color: #ee695d !important;
  --panel-response-error-heading-bg-color: transparent !important;
  --panel-response-error-heading-text-color: #ee695d !important;
  --code-block-bg-color: #25303b !important;
  --code-block-controls-border: 1px solid #3c464f !important;
  --code-block-tokens-number-color: #3385ff !important;
  --code-block-tokens-string-color: #44d45e !important;
  --code-block-tokens-property-string-color: #44d45e !important;
  --code-block-tokens-boolean-color: #44d45e !important;
  --code-block-tokens-keyword-color: #ee695d !important;
  --code-block-tokens-default-color: #bfbfbf !important;
  --http-tag-width: 35px !important;
  --http-tag-height: 14px !important;
  --http-tag-font-size: 8px !important;
  --http-tag-font-weight: 600 !important;
  --http-tag-line-height: 10px !important;
  --http-tag-padding: 0 4px !important;
  --http-tag-margin: 0 4px 0 0 !important;
  --http-tag-border: 1px solid #49525b !important;
  --http-tag-bg-color: #303a44 !important;
  --tag-operation-color-get: #73df87 !important;
  --tag-operation-bg-color-get: rgba(115, 223, 135, 0.12) !important;
  --tag-operation-color-post: #5d89ed !important;
  --tag-operation-bg-color-post: rgba(93, 137, 237, 0.12) !important;
  --tag-operation-color-put: #5d89ed !important;
  --tag-operation-bg-color-put: rgba(93, 137, 237, 0.12) !important;
  --tag-operation-color-patch: #faa61a !important;
  --tag-operation-bg-color-patch: rgba(250, 166, 26, 0.12) !important;
  --tag-operation-color-delete: #ee695d !important;
  --tag-operation-bg-color-delete: rgba(238, 105, 93, 0.12) !important;
  --schema-inline-code-text-color: #74ab8c !important;
  --schema-inline-bg-color: #3d4754 !important;
  --schema-inline-border-color: #3c464f !important;
  --schema-enum-bg-color: #3d4754 !important;
  --schema-enum-border-color: #656d74 !important;
  --schema-enum-text-color: #f5f5f5 !important;
  --schema-default-bg-color: #3d4754 !important;
  --schema-default-border-color: transparent !important;
  --schema-default-text-color: #f5f5f5 !important;
  --schemas-lines-color: #3c464f !important;
  --schemas-property-name-font-weight: 600 !important;
  --schema-nested-bg-color: #2c3741 !important;
  --schema-type-title-text-color: #f5f5f5 !important;
  --schema-type-text-color: #f5f5f5 !important;
  --schema-labels--text-color: #f5f5f5 !important;
  --md-table-header-bg-color: #2c3741 !important;
  --md-table-border-color: #3c464f !important;
  --wallester-mobile-header-height: 56px;
  color-scheme: dark;
}

html,
body {
  margin: 0 !important;
}

[data-component-name="Tags/HttpTag"] {
  --tag-border-radius: 2px;
  --tag-content-padding: 0;
}

[data-component-name="Menu/MenuItem"] .tag-http {
  align-self: center !important;
  flex: 0 0 auto;
  justify-content: center !important;
  order: -1;
  margin: 0 8px 0 0 !important;
}

/* Reuse the legacy filled caret so group controls retain the Wallester sidebar hierarchy. */
[data-component-name="Menu/MenuItem"].menu-item-type-group > [data-testid="menu-item-label"] > div:first-child,
[data-component-name="Menu/MenuItem"].menu-item-type-group > a > [data-testid="menu-item-label"] > div:first-child {
  align-self: stretch;
  display: flex;
  flex: 0 0 40px;
  order: 4;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: #bfbfbf;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group
  > [data-testid="menu-item-label"] > div:first-child > svg,
[data-component-name="Menu/MenuItem"].menu-item-type-group
  > a > [data-testid="menu-item-label"] > div:first-child > svg {
  display: none;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group
  > [data-testid="menu-item-label"] > div:first-child::after,
[data-component-name="Menu/MenuItem"].menu-item-type-group
  > a > [data-testid="menu-item-label"] > div:first-child::after {
  display: block;
  width: 10px;
  height: 6px;
  background-color: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 0c.3 0 .5.1.7.3l3.3 3.3 3.3-3.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-4 4c-.4.4-1 .4-1.4 0l-4-4c-.4-.4-.4-1 0-1.4.2-.2.4-.3.7-.3z'/%3E%3C/svg%3E") center / 10px 6px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 0c.3 0 .5.1.7.3l3.3 3.3 3.3-3.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-4 4c-.4.4-1 .4-1.4 0l-4-4c-.4-.4-.4-1 0-1.4.2-.2.4-.3.7-.3z'/%3E%3C/svg%3E") center / 10px 6px no-repeat;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group
  > [data-testid="menu-item-label"]:hover > div:first-child,
[data-component-name="Menu/MenuItem"].menu-item-type-group
  > a > [data-testid="menu-item-label"]:hover > div:first-child {
  color: #f5f5f5;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group:has(
  > [data-testid="menu-item-label"] > div:first-child > [data-component-name="icons/ChevronDownIcon/ChevronDownIcon"]
)
  > [data-testid="menu-item-label"] > div:first-child::after,
[data-component-name="Menu/MenuItem"].menu-item-type-group:has(
  > a > [data-testid="menu-item-label"] > div:first-child > [data-component-name="icons/ChevronDownIcon/ChevronDownIcon"]
)
  > a > [data-testid="menu-item-label"] > div:first-child::after {
  transform: rotate(180deg);
}

[data-component-name="Menu/MenuItem"].menu-item-type-group > div:hover::before {
  content: none;
  display: none;
}

/* Keep documentation groups visually distinct from the endpoint navigation rows. */
[data-component-name="Menu/MenuItem"].menu-item-type-separator-primary {
  position: relative;
  height: auto;
  min-height: 32px;
  margin: 18px 12px 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid #3c464f;
}

[data-component-name="Menu/MenuItem"].menu-item-type-separator-primary::before {
  position: absolute;
  top: 5px;
  bottom: 11px;
  left: 0;
  width: 2px;
  border-radius: 1px;
  background: #73df87;
  content: "";
}

[data-component-name="Menu/MenuItem"].menu-item-type-separator-primary > [data-testid="menu-item-label"] {
  min-height: 25px;
  height: auto;
  padding: 0 6px 0 10px;
}

[data-component-name="Menu/MenuItem"].menu-item-type-separator-primary [data-testid="menu-item-label"] span {
  color: #e9ebec;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group > a {
  min-height: 34px;
  margin: 1px 8px;
  border-radius: 4px;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group > a > [data-testid="menu-item-label"] {
  min-height: 34px;
  height: auto;
  padding-left: 4px;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group > a:hover {
  background: #2c3741;
}

[data-component-name="Menu/MenuItem"].menu-item-type-group > a[aria-current="page"] {
  background: #3c464f;
}

.wallester-sidebar-logo {
  flex: 0 0 auto;
  width: 150px;
  margin: 16px 16px 0;
}

.wallester-sidebar-logo [data-component-name="SidebarLogo/SidebarLogo"] {
  text-align: left;
}

.wallester-sidebar-logo img {
  display: block;
  width: 150px;
  max-width: 150px;
  max-height: 30px;
  padding: 0;
}

[data-component-name="JsonViewer/JsonViewer"] .token.string {
  color: #44d45e;
}

[data-component-name="JsonViewer/JsonViewer"] .token.property.token.string {
  color: #f5f5f5;
}

[data-component-name="JsonViewer/JsonViewer"] .token.number {
  color: #3385ff;
}

[data-component-name="JsonViewer/JsonViewer"] .token.boolean {
  color: #44d45e;
}

[data-component-name="JsonViewer/JsonViewer"] .token.object {
  color: #ee695d;
}

.wallester-mobile-header {
  display: none;
}

@media screen and (min-width: 673px) {
  .redoc-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  [data-component-name="Layout/ThreePanelLayout"].api-content {
    flex: 1 1 auto !important;
    width: calc(100vw - var(--sidebar-width)) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    min-width: 0 !important;
  }

  [data-component-name="Layout/ThreePanelLayout"].api-content > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  [data-component-name="Markdown/Markdown"],
  [data-component-name="Markdown/Markdown"] * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 672px) {
  html,
  body,
  #container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .redoc-wrap,
  [data-component-name="Layout/ThreePanelLayout"].api-content {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  .menu-content {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
  }

  [data-component-name="Layout/ThreePanelLayout"].api-content > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .wallester-mobile-header {
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: var(--wallester-mobile-header-height);
    padding: 10px 16px;
    border-bottom: 1px solid #3c464f;
    background: #212c37;
  }

  .wallester-mobile-header__logo {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
  }

  .wallester-mobile-header__search {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
  }

  .wallester-mobile-header__search > div {
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  .wallester-mobile-header__menu {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3b454f;
    color: #bfbfbf;
    cursor: pointer;
  }

  .wallester-mobile-header__menu:hover,
  .wallester-mobile-header__menu:focus-visible {
    color: #f5f5f5;
  }

  .wallester-mobile-header__menu span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
  }

  .redoc-wrap {
    padding-top: var(--wallester-mobile-header-height);
  }

  .menu-content {
    padding-top: var(--wallester-mobile-header-height);
  }

  .wallester-sidebar-logo,
  [data-testid="floating-button"] {
    display: none !important;
  }
}
