/* Menu */
@media (max-width: 767px) {
  #developer-documentation-menu {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: -100%;
    z-index: 1001;
    width: 100%;
    max-width: 344px;
    overflow-y: auto;
    border-right: 1px solid #cecece;
    background: #fff;
  }

  .developer-documentation-menu-opened #developer-documentation-menu {
    left: 0;
  }

  .admin-bar #developer-documentation-menu {
    top: 118px;
  }
}

@media (min-width: 768px) {
  #developer-documentation-menu {
    position: sticky;
    top: 48px;
    align-self: flex-start;
  }

  .admin-bar #developer-documentation-menu {
    top: 80px;
  }
}

.menu-developer-documentation {
  position: relative;
  width: 344px;
  min-height: calc(100vh - 48px);
  border-right: 1px solid #e5e7eb;
  background: #fff;
  font-family: "Codec Pro", sans-serif;
  transition: width 0.3s ease;
}

.admin-bar .menu-developer-documentation {
  min-height: calc(100vh - 80px);
}

.menu-developer-documentation.collapsed {
  width: 56px;
}

.menu-developer-documentation-mobile__toggle {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none !important;
  background: none !important;
  cursor: pointer;
}

.admin-bar .menu-developer-documentation-mobile__toggle {
  top: 68px;
}

.menu-developer-documentation-mobile__toggle svg {
  fill: var(--e-global-color-f9ca464);
}

.menu-developer-documentation-mobile__toggle:hover svg {
  fill: var(--e-global-color-afa89fe);
}

.menu-developer-documentation-mobile__toggle svg.opened,
.developer-documentation-menu-opened .menu-developer-documentation-mobile__toggle svg.closed {
  display: none;
}

.menu-developer-documentation-mobile__toggle svg.closed,
.developer-documentation-menu-opened .menu-developer-documentation-mobile__toggle svg.opened {
  display: block;
}

.menu-developer-documentation__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 70px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: auto 0 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-developer-documentation__toggle:active,
.menu-developer-documentation__toggle:focus,
.menu-developer-documentation__toggle:hover {
  background: transparent;
}

.menu-developer-documentation__toggle::after {
  content: "";
  position: absolute;
  inset: 0 10px 0 0;
  display: block;
  width: 1px;
  height: 1px;
  margin: auto;
  border: 10px solid transparent;
  border-right-color: var(--e-global-color-f9ca464);
}

.menu-developer-documentation__toggle:hover::after {
  border-right-color: var(--e-global-color-afa89fe);
}

.menu-developer-documentation.collapsed .menu-developer-documentation__toggle {
  transform: rotate(180deg);
}

.menu-developer-documentation-section {
  --color-menu-100: var(--e-global-color-a8b9448);
  --color-menu-200: var(--e-global-color-fcdd009);
  --color-menu-700: var(--e-global-color-8534a03);
  --color-menu-800: var(--e-global-color-f8fa748);
  border-bottom: 1px solid #cecece;
}

.menu-developer-documentation-section.yellow {
  --color-menu-100: var(--e-global-color-1ed9ad6);
  --color-menu-200: var(--e-global-color-99a09eb);
  --color-menu-700: var(--e-global-color-810e9b4);
  --color-menu-800: var(--e-global-color-eed9670);
}

.menu-developer-documentation-section.pink {
  --color-menu-100: var(--e-global-color-0873894);
  --color-menu-200: var(--e-global-color-0d5478b);
  --color-menu-700: var(--e-global-color-f5efc6f);
  --color-menu-800: var(--e-global-color-ded7340);
}

.menu-developer-documentation-section.active,
.menu-developer-documentation:not(.collapsed) .menu-developer-documentation-section.expanded {
  background: #f3f3f3;
}

.menu-developer-documentation-section.active:not(.has-subitems),
.menu-developer-documentation.collapsed .menu-developer-documentation-section.active {
  background: var(--color-menu-200);
}

.menu-developer-documentation-items__title {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 0;
  color: #696969;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-developer-documentation-items__title:hover {
  background-color: #f3f3f3;
}

.menu-developer-documentation-section.active:not(.has-subitems) .menu-developer-documentation-items__title:hover,
.menu-developer-documentation.collapsed .menu-developer-documentation-section.active .menu-developer-documentation-items__title:hover {
  background-color: var(--color-menu-100);
}

.menu-developer-documentation-section.expanded .menu-developer-documentation-items__title:hover {
  background-color: #fff;
}

.menu-developer-documentation-items__title-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 4px;
  color: #696969;
}

.menu-developer-documentation-items__title-text {
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  opacity: 1;
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title-text {
  width: 0;
  opacity: 0;
}

.menu-developer-documentation-items__title-chevron {
  width: 24px;
  height: 24px;
  margin-left: auto;
  color: #696969;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.menu-developer-documentation-items__title:hover :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron) {
  color: var(--color-menu-700);
}

.menu-developer-documentation-items__title.active :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron),
.menu-developer-documentation:not(.collapsed) .menu-developer-documentation-items__title.expanded :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron) {
  color: var(--color-menu-800);
}

.menu-developer-documentation-items__title.expanded:hover :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron) {
  color: var(--e-global-color-f9ca464);
}

.menu-developer-documentation-section.active:not(.has-subitems) .menu-developer-documentation-items__title:hover :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron),
.menu-developer-documentation.collapsed .menu-developer-documentation-section.active .menu-developer-documentation-items__title:hover :is(.menu-developer-documentation-items__title-text, .menu-developer-documentation-items__title-icon, .menu-developer-documentation-items__title-chevron) {
  color: var(--color-menu-800);
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title-chevron {
  opacity: 0;
}

.menu-developer-documentation-items__title.expanded .menu-developer-documentation-items__title-chevron {
  transform: rotate(180deg);
}

.menu-developer-documentation-subitems {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  transition: max-height 0.3s ease;
}

.menu-developer-documentation-subitems.expanded {
  max-height: 500px;
}

.menu-developer-documentation.collapsed .menu-developer-documentation-subitems {
  display: none;
}

.menu-developer-documentation-subitem {
  padding: 0;
}

.menu-developer-documentation .item__wrap {
  display: block;
  padding: 10px 20px 10px 56px;
  font-size: 16px;
  font-weight: 500;
  color: #696969;
  text-decoration: none;
  transition: all 0.2s ease;
}

.menu-developer-documentation .item__wrap:hover,
.menu-developer-documentation .item__wrap.active:hover {
  background-color: var(--color-menu-100);
  text-decoration: none;
}

.menu-developer-documentation .item__wrap.active {
  background-color: var(--color-menu-200);
}

.menu-developer-documentation .item__title {
  font-weight: 500;
  color: #696969;
}

.menu-developer-documentation .item__wrap:hover .item__title {
  color: var(--color-menu-700);
}

.menu-developer-documentation .item__wrap.active .item__title {
  color: var(--color-menu-800);
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title::before,
.menu-developer-documentation.collapsed .menu-developer-documentation-items__title::after {
  position: absolute;
  top: 50%;
  left: 100%;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title::after {
  content: attr(data-tooltip);
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #1f2937;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title::before {
  content: "";
  margin-left: 3px;
  border: 5px solid transparent;
  border-right-color: #1f2937;
}

.menu-developer-documentation.collapsed .menu-developer-documentation-items__title:hover::after,
.menu-developer-documentation.collapsed .menu-developer-documentation-items__title:hover::before {
  opacity: 1;
}

@media (min-width: 768px) {
  .menu-developer-documentation-mobile__toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu-developer-documentation,
  .menu-developer-documentation.collapsed {
    width: 100%;
    min-height: auto !important;
    border-right: none;
  }

  .menu-developer-documentation__toggle {
    display: none;
  }
}

/* Content grid */
.developer-documentation-grid {
  grid-template-columns: calc(100% - 335px) 295px !important;
}

@media (max-width: 1023px) {
  .developer-documentation-grid {
    grid-template-columns: 100% !important;
  }

  .developer-documentation-grid > div:nth-child(2) {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body:not(.menu-developer-documentation-is-collapsed) .developer-documentation-grid {
    grid-template-columns: 100% !important;
  }

  body:not(.menu-developer-documentation-is-collapsed) .developer-documentation-grid > div:nth-child(2) {
    display: none;
  }
}

/* Hub grid */
.developer-documentation-hub-grid {
  --e-con-grid-template-columns: repeat(1, 1fr) !important;
}

@media (min-width: 641px) {
  .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .menu-developer-documentation-is-collapsed .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1200px) {
  .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(3, 1fr) !important;
  }

  .menu-developer-documentation-is-collapsed .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1600px) {
  .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(4, 1fr) !important;
  }

  .menu-developer-documentation-is-collapsed .developer-documentation-hub-grid {
    --e-con-grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Table */
.developer-documentation-content-table__container {
  width: 100%;
  overflow-x: auto;
}

.developer-documentation-content-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Codec Pro", sans-serif;
  font-size: 16px;
  text-align: left;
}

.developer-documentation-content-table th,
.developer-documentation-content-table td {
  border: 0;
  background: transparent !important;
  color: var(--e-global-color-f9ca464);
}

.developer-documentation-content-table th {
  padding: 10px 20px;
  font-weight: 500;
}

.developer-documentation-content-table thead th {
  border: 0 !important;
  background-color: var(--e-global-color-2cdf855) !important;
  color: var(--e-global-color-f13c05f);
}

.developer-documentation-content-table tbody tr:not(:first-child) th {
  border-top: 1px solid var(--e-global-color-500f07c);
}

.developer-documentation-content-table td {
  padding: 10px 20px;
  border-bottom: 1px solid var(--e-global-color-500f07c);
  vertical-align: top;
}

.developer-documentation-content-table tr:last-child td {
  border-bottom: none;
}

/* Tabs */
.developer-documentation-tabs {
  position: sticky;
  top: 48px;
  z-index: 10;
  margin: 0 0 20px;
  padding: 20px 0 0 40px;
  background-color: #fff;
  font-family: "Codec Pro", sans-serif;
}

.admin-bar .developer-documentation-tabs {
  top: 80px;
}

/* Unwrap the shortcode's Elementor wrappers so the tabs have room to stick. */
.e-con:has(> .elementor-widget-shortcode > .elementor-widget-container > .elementor-shortcode > .developer-documentation-tabs),
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > .developer-documentation-tabs),
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > .developer-documentation-tabs) > .elementor-widget-container,
.elementor-shortcode:has(> .developer-documentation-tabs) {
  display: contents;
}

.developer-documentation-tabs::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 60px;
  height: 100%;
  background: linear-gradient(270deg, #fff 37.4%, rgba(255, 255, 255, 0) 103.72%);
  pointer-events: none;
}

.developer-documentation-tabs.no-overflow {
  padding-right: 40px;
}

.developer-documentation-tabs.no-overflow::after {
  display: none;
}

.developer-documentation-tabs__container {
  display: flex;
  justify-content: start;
  padding: 0 60px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--e-global-color-500f07c);
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.developer-documentation-tabs__container::-webkit-scrollbar {
  display: none;
}

.developer-documentation-tabs.is-scrollable .developer-documentation-tabs__container {
  cursor: grab;
}

.developer-documentation-tabs__container.active-drag,
.developer-documentation-tabs__container.active-drag * {
  cursor: grabbing;
  user-select: none;
}

.developer-documentation-tabs.no-overflow .developer-documentation-tabs__container {
  padding: 0;
}

.developer-documentation-tabs__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  overflow: visible;
  border-radius: 4px 4px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--e-global-color-f9ca464) !important;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.developer-documentation-tabs__item.active {
  color: var(--global-color-700) !important;
}

.developer-documentation-tabs__item.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  display: block;
  border-bottom: 3px solid var(--global-color-700);
}

.developer-documentation-tabs__item:hover {
  background-color: var(--global-color-100);
}

.developer-documentation-tabs__item:active {
  background-color: var(--global-color-200);
}

/* Table of contents */
.developer-documentation-toc {
  position: sticky;
  top: 68px;
  align-self: flex-start;
}

.admin-bar .developer-documentation-toc {
  top: 100px;
}

body:has(.developer-documentation-tabs) .developer-documentation-toc {
  top: 158px;
}

body.admin-bar:has(.developer-documentation-tabs) .developer-documentation-toc {
  top: 190px;
}

.developer-documentation-toc .elementor-toc__list-item {
  margin-bottom: 0;
  padding: 0;
  border-radius: 4px;
}

.developer-documentation-toc .elementor-toc__list-item.active {
  background: var(--global-color-200);
}

.developer-documentation-toc .elementor-toc__list-item:hover {
  background: var(--global-color-100);
}

.developer-documentation-toc .elementor-toc__list-item .elementor-toc__list-item-text-wrapper {
  display: inline-flex;
  width: 100%;
}

.developer-documentation-toc .elementor-toc__list-item .elementor-toc__list-item-text {
  width: 100%;
  padding: 8px 16px;
  color: var(--e-global-color-f9ca464);
}

.developer-documentation-toc .elementor-toc__list-item:hover .elementor-toc__list-item-text,
.developer-documentation-toc .elementor-toc__list-item.active .elementor-toc__list-item-text {
  color: var(--e-global-color-afa89fe);
}

/* Navigation buttons */
.dev-doc-navigation-buttons {
  --flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 60px;
}

@media (min-width: 641px) {
  .dev-doc-navigation-buttons {
    --flex-direction: row;
  }
}

.dev-doc-navigation-buttons .dev-doc-navigation-button {
  border: 2px solid var(--global-color-400);
  border-radius: 4px;
  background-color: var(--global-color-400);
  font-family: "Codec Pro", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  color: var(--e-global-color-afa89fe);
  fill: var(--e-global-color-afa89fe);
}

.dev-doc-navigation-buttons .dev-doc-navigation-button:hover {
  border-color: var(--global-color-500);
  background-color: var(--global-color-500);
  color: var(--e-global-color-afa89fe);
}

.dev-doc-navigation-buttons .dev-doc-navigation-button.dev-doc-navigation-button-previous {
  border-color: var(--e-global-color-afa89fe);
  background-color: transparent;
}

.dev-doc-navigation-buttons .dev-doc-navigation-button.dev-doc-navigation-button-previous:hover {
  background-color: var(--global-color-200);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 80px;
  left: 0;
  z-index: 9999;
  padding: 0 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top__button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #000;
  font-family: var(--e-global-typography-b5434da-font-family), sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top__button:focus,
.back-to-top__button:hover {
  background-color: #444;
}

.back-to-top__button:active {
  background-color: #696969;
}

.back-to-top__button:focus-visible {
  outline: none;
  background-color: #000;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.back-to-top__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .back-to-top {
    right: 24px;
    left: auto;
  }

  .back-to-top__button span {
    display: none;
  }
}
