.cx-vui-component--has-macros .cx-vui-component__control {
  display: flex;
  position: relative;
  align-items: flex-start;
}

.jet-engine-query-builder-heading {
  display: flex;
  padding: 20px 0 20px;
  align-items: center;
  justify-content: space-between;
}
.jet-engine-query-builder-heading .cx-vui-component {
  padding: 0;
}
.jet-engine-query-builder-heading .cx-vui-component__meta {
  padding-right: 10px;
}

.cx-vui-component--has-ai-popup .cx-vui-component__control {
  position: relative;
}

.jet-engine-query-builder-fullscreen #adminmenumain,
.jet-engine-query-builder-fullscreen #wpadminbar,
.jet-engine-query-builder-fullscreen .cpt-header > .notice,
.jet-engine-query-builder-fullscreen #wpbody-content > .notice,
.jet-engine-query-builder-fullscreen .jet-engine-edit-page__actions-delete {
  display: none;
}
.jet-engine-query-builder-fullscreen #wpcontent {
  margin-left: 0;
}

.jet-ai-query__trigger {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 1px solid #DCDCDD;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 4px;
}
.jet-ai-query__trigger-tip {
  background: #23282D;
  padding: 4px;
  font-size: 12px;
  line-height: 14px;
  border-radius: 3px;
  position: absolute;
  text-align: center;
  bottom: 45px;
  color: #fff;
  font-weight: normal;
  width: 104px;
  left: 50%;
  margin-left: -52px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: all 100ms;
}
.jet-ai-query__trigger-tip:after {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #23282D transparent transparent transparent;
}
.jet-ai-query__trigger svg {
  display: block;
}
.jet-ai-query__trigger svg path {
  fill: #7B7E81;
}
.jet-ai-query__trigger:hover {
  background: #fff;
}
.jet-ai-query__trigger:hover .jet-ai-query__trigger-tip {
  visibility: visible;
  opacity: 1;
  bottom: 35px;
}
.jet-ai-query__trigger:hover svg path {
  fill: #23282D;
}
.jet-ai-query__popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.jet-ai-query__content {
  background: #fff;
  padding: 30px;
  border: 1px solid #ececec;
  box-shadow: 0 10px 26px rgba(35, 40, 45, 0.3);
  width: 900px;
  max-width: 90vw;
  border-radius: 6px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}
.jet-ai-query__content .cx-vui-component {
  padding: 0;
  display: block;
}
.jet-ai-query__content .cx-vui-component__meta, .jet-ai-query__content .cx-vui-component__control {
  max-width: 100% !important;
  padding: 5px 0;
}
.jet-ai-query__content .cx-vui-component__meta .cx-vui-component__label, .jet-ai-query__content .cx-vui-component__control .cx-vui-component__label {
  color: #7B7E81;
  font-weight: normal;
}
.jet-ai-query__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 15px;
}
.jet-ai-query__header-notice {
  flex: 1 1 auto;
}
.jet-ai-query__header-notice b {
  display: inline-block;
  margin: 0 0 0 10px;
  background: #23282d;
  color: #fff;
  line-height: 16px;
  padding: 4px 10px;
  border-radius: 12px;
}
.jet-ai-query__generated-notice {
  padding: 5px 0;
  font-style: italic;
  color: #7B7E81;
}
.jet-ai-query__close {
  padding: 2px;
  cursor: pointer;
}
.jet-ai-query__close svg {
  display: block;
}
.jet-ai-query__close svg path {
  fill: #DCDCDD;
}
.jet-ai-query__close:hover svg {
  display: block;
}
.jet-ai-query__close:hover svg path {
  fill: #7B7E81;
}
.jet-ai-query__error {
  color: #c92c2c;
  padding: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: rgba(201, 44, 44, 0.1);
  border-radius: 3px;
  font-weight: bold;
  line-height: 20px;
  margin: 7px 0 0 0;
}
.jet-ai-query__error svg {
  flex: 0 0 20px;
}
.jet-ai-query__error svg path {
  fill: currentColor;
}
.jet-ai-query__submit {
  padding: 5px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}
.jet-ai-query__load {
  font-style: italic;
  color: #7B7E81;
}
.jet-ai-query__info {
  padding: 15px 0 0 0;
}
.jet-ai-query__info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #23282D;
  font-size: 15px;
  line-height: 20px;
  font-weight: bold;
}
.jet-ai-query__info-list {
  padding: 0 0 0 19px;
}
.jet-ai-query__info-list li {
  color: #7B7E81;
  list-style: disc;
}
.jet-ai-query__info-prompt {
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.jet-ai-query__license-warning {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  bottom: 5px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 30px 25%;
  background: rgba(255, 255, 255, 0.91);
}
.jet-ai-query__license-warning .cx-vui-subtitle {
  font-size: 24px;
  line-height: 32px;
  padding: 0 0 24px;
  margin: 0;
}
.jet-ai-query__license-warning p {
  font-size: 16px;
  line-height: 24px;
  color: #7B7E81;
}

.jet-engine-query-suggestions {
  position: relative;
}
.jet-engine-query-suggestions__list {
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.jet-engine-query-suggestions__item {
  padding: 5px;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.jet-engine-query-suggestions__item:hover {
  background: rgba(0, 0, 0, 0.05);
}
.jet-engine-query-suggestions__item:first-child {
  border-top: none;
}
.jet-engine-query-suggestions__close {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 28px;
  z-index: 99;
  cursor: pointer;
}

.jet-engine-query-preview {
  width: 430px;
  position: fixed;
  right: 10px;
  bottom: 10px;
  border: 1px solid #007cba;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  background: #fff;
}
body.rtl .jet-engine-query-preview {
  left: 10px;
  right: auto;
}
.jet-engine-query-preview .cx-vui-component--preview-control {
  flex-direction: column;
  padding: 10px;
}
.jet-engine-query-preview .cx-vui-component--preview-control .cx-vui-component__label {
  font-size: 14px;
}
.jet-engine-query-preview .cx-vui-component--preview-control .cx-vui-component__desc {
  font-size: 12px;
}
.jet-engine-query-preview__body {
  min-height: 10vh;
  max-height: 50vh;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) inset;
  padding: 12px;
  overflow: auto;
}
.jet-engine-query-preview__body-updating {
  opacity: 0.5;
}
.jet-engine-query-preview__items pre {
  white-space: pre-wrap;
}

.cx-vui-component.cx-vui-component--query-fullwidth {
  padding-left: 0;
  padding-right: 0;
}
.cx-vui-component.cx-vui-component--query-fullwidth .cx-vui-component__control {
  max-width: 100%;
  flex: 0 0 100%;
}

.cx-vui-inner-panel.query-panel {
  padding: 20px;
}
.cx-vui-inner-panel.query-panel .cx-vui-panel {
  margin-bottom: 20px;
}
.cx-vui-inner-panel.query-panel > .cx-vui-component__label {
  padding: 0 0 10px;
}
.cx-vui-inner-panel.query-panel > .cx-vui-component__label + .cx-vui-component__desc {
  margin: -5px 0 0 0;
  padding: 0 0 15px;
}

.cx-vui-component.cx-vui-component--has-macros {
  align-items: flex-start;
}

.jet-query-macros {
  width: 32px;
  height: 32px;
}
.jet-query-macros__config {
  text-align: right;
  margin: -12px -10px 10px 0;
}
.jet-query-macros__config-trigger {
  color: #007cba;
  text-decoration: underline;
  -webkit-text-decoration-style: dashed;
          text-decoration-style: dashed;
  cursor: pointer;
  font-size: 12px;
}
.jet-query-macros__config-trigger:hover {
  color: #7b7e81;
  text-decoration: none;
}
.jet-query-macros__trigger {
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
}
.jet-query-macros__trigger:hover svg path {
  fill: #007cba;
}
.jet-query-macros__trigger svg path {
  fill: #7b7e81;
}
.jet-query-macros__trigger-open {
  width: 24px;
  height: auto;
}
.jet-query-macros__trigger-close {
  width: 24px;
  height: auto;
}
.jet-query-macros__value {
  position: absolute;
  left: 0;
  top: 0;
  right: 30px;
  background: #fff;
  padding: 6px 15px 4px;
  border: 2px solid #f4f4f5;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 17px;
  color: #7b7e81;
  height: 100%;
  box-sizing: border-box;
}
.jet-query-macros__value i {
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.jet-query-macros__value-clear {
  cursor: pointer;
  padding: 5px;
  margin: -7px -12px -8px 0;
}
.jet-query-macros__value-clear svg {
  width: 20px;
  height: auto;
}
.jet-query-macros__value-clear svg path {
  fill: #007cba;
}
.jet-query-macros__value-clear:hover svg path {
  fill: #c92c2c;
}
.jet-query-macros__back {
  cursor: pointer;
  color: #007cba;
  font-weight: bold;
  text-decoration: underline;
}
.jet-query-macros__title {
  padding: 0 0 10px;
}
.jet-query-macros__popup {
  position: absolute;
  right: 0;
  left: 0;
  top: 36px;
  background: #fff;
  padding: 20px 25px;
  margin: 0;
  border: 1px solid #ececec;
  box-shadow: 0 2px 6px rgba(35, 40, 45, 0.07);
  border-radius: 6px;
  z-index: 9999;
}
.jet-query-macros__popup .cx-vui-button.cx-vui-button--style-accent {
  margin: 10px 0 5px 0;
}
.jet-query-macros__popup .cx-vui-component {
  padding: 7px 0;
}
.jet-query-macros__popup .cx-vui-component__meta {
  justify-content: center;
}
.jet-query-macros__popup .cx-vui-component__label {
  font-size: 13px;
}
.jet-query-macros__popup .cx-vui-component--mini-label {
  flex-direction: column;
  border-top: none !important;
}
.jet-query-macros__popup .cx-vui-component--mini-label .cx-vui-component__meta {
  max-width: 100%;
  flex: 0 0 100%;
}
.jet-query-macros__popup .cx-vui-component--mini-label .cx-vui-component__label {
  font-weight: bold;
  color: #7B7E81;
}
.jet-query-macros__popup .cx-vui-component--mini-label .cx-vui-component__control {
  flex: 1 1 auto !important;
  max-width: 100% !important;
}
.jet-query-macros__search[type=search] {
  padding: 3px 8px;
  margin-bottom: 10px;
}
.jet-query-macros__list {
  margin: 0 -25px;
  padding: 0 25px;
  overflow-y: auto;
  max-height: 250px;
}
.jet-query-macros-item__name {
  font-size: 13px;
  line-height: 17px;
  color: #7b7e81;
  padding: 2px 0;
  display: flex;
  align-content: flex-start;
  cursor: pointer;
}
.jet-query-macros-item__name:hover {
  color: #23282d;
  font-weight: bold;
}
.jet-query-macros-item__mark {
  font-size: 11px;
  line-height: 12px;
  padding: 3px 5px 0 0;
}

.cx-vui-component--api-url .cx-vui-component__control {
  flex: 0 0 100%;
}

.jet-engine-query-builder-api-url {
  position: relative;
  width: 100%;
}
.jet-engine-query-builder-api-url__copy {
  position: absolute;
  right: 10px;
  top: 12px;
  cursor: pointer;
  opacity: 0.6;
}
.jet-engine-query-builder-api-url__copy:hover {
  opacity: 1;
}
.jet-engine-query-builder-api-url pre {
  width: 100%;
}
.jet-engine-query-builder-api-url code {
  display: block;
  padding: 15px 35px 15px 15px;
}

.jet-engine-query-builder-api-error {
  color: #C92C2C;
  padding: 5px 0 0 0;
}

.jet-engine-query-builder-api-args__row {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 0 5px;
}
.jet-engine-query-builder-api-args__row-title {
  flex: 1 1 50%;
  color: #7B7E81;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
}
.jet-engine-query-builder-api-args__row.headings-row {
  padding: 0;
}
.jet-engine-query-builder-api-args__row.headings-row:after {
  content: "";
  width: 24px;
  height: 24px;
}
.jet-engine-query-builder-api-args__row .cx-vui-input {
  flex: 1 1 50%;
}
.jet-engine-query-builder-api-args__row .cx-vui-button {
  width: 24px;
  height: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jet-engine-query-builder-api-args__row .cx-vui-button .cx-vui-button__content svg {
  margin: 0;
}
.jet-engine-query-builder-api-args__row .cx-vui-button .cx-vui-tooltip {
  width: 80px;
}
.jet-engine-query-builder-api-args__actions .cx-vui-button {
  font-size: 13px;
}
