/* Isolate the editor shell from the account dashboard's fixed sidebar and form rules. */
body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) > :is(.sidebar,.contents) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) .vendor_sidebar {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  background: transparent;
}

body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) .vendor_sidebar_inner {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
}

body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) > .contents {
  background: #141119;
  overflow: visible;
}

@media (min-width: 992px) {
  body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) {
    grid-template-columns: minmax(13rem, .26fr) minmax(0, 1fr);
  }

  body.stx-account .stx .vendor_wrap:has(.stx-guided-editor) .dashboard_nav {
    height: auto;
    overflow: visible;
  }
}

.stx .stx-guided-editor {
  --editor-bg: #18151e;
  --editor-field: #201b28;
  --editor-line: #40364d;
  --editor-text: #f7f2fc;
  --editor-muted: #c6bbd2;
  --editor-accent: #ba94ff;
  color: var(--editor-text);
  min-width: 0;
  container-type: inline-size;
  background: transparent !important;
}

body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  box-sizing: border-box;
  gap: .8rem 1.25rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

.stx-guided-editor form > * { grid-column: 1; min-width: 0; }
.stx-guided-editor [hidden] { display: none !important; }
.stx-guided-editor .vendor_tab { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.stx-guided-editor .vendor_tab:not(:focus-within) { visibility: hidden; }
body.stx-account.stx-page .stx .vendor_wrap .contents .stx-guided-editor .stx-editor-heading h2 {
  color: var(--editor-text);
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.stx .stx-guided-editor .stx-editor-bar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.stx-editor-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 24rem;
  min-width: 0;
  gap: .4rem;
}

.stx .stx-guided-editor :is(.stx-editor-steps button,.stx-editor-options summary,.stx-editor-options button,.stx-editor-secondary,.stx-editor-primary) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: static;
  inset: auto;
  z-index: auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  white-space: normal;
  gap: .42rem;
  min-height: 44px;
  border: 1px solid var(--editor-line);
  border-radius: .6rem;
  padding: .5rem .7rem;
  background: var(--editor-bg);
  color: var(--editor-text);
  line-height: 1.2;
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.stx .stx-guided-editor :is(button,summary,a,input,select,textarea):focus-visible {
  outline: 2px solid var(--editor-accent);
  outline-offset: 3px;
}

.stx .stx-guided-editor [aria-current="step"] {
  border-color: #ad80ff;
  background: #322044;
  color: #fff;
}

.stx-editor-number { color: var(--editor-accent); font-variant-numeric: tabular-nums; }
.stx-editor-options { display: flex; align-self: flex-start; }
.stx-editor-options > summary { width: fit-content; }
.stx .stx-guided-editor .stx-editor-options button { margin-top: .35rem; width: 100%; }
body.stx-account.stx-page .stx .vendor_wrap .contents .stx-guided-editor :is(.stx-editor-step-title,.stx-editor-preview h3) {
  color: var(--editor-text);
}
.stx .stx-guided-editor .stx-editor-step-title { margin: .55rem 0 .3rem; scroll-margin-top: 5rem; }
.stx .stx-guided-editor .stx-editor-hint { margin: 0; color: var(--editor-muted); font-size: .95rem; }
.stx-editor-hint:empty { display: none; }

body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form > .tab-contents {
  display: none !important;
  box-sizing: border-box;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(.85rem, 2vw, 1.4rem);
  border: 1px solid var(--editor-line) !important;
  border-radius: .85rem;
  background: var(--editor-bg) !important;
}

body.stx-account .stx .vendor_wrap .contents .stx-guided-editor
form:is([data-stx-editor-step="details"],[data-stx-editor-step="schedule"],[data-stx-editor-step="review"]) > #mb_basic,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_calendar"] > #mb_calendar,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_ticket"] > #mb_ticket,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_coupon"] > #mb_coupon,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_api_key"] > #mb_api_key,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_cancel_booking"] > #mb_cancel_booking,
body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form[data-stx-editor-panel="mb_extra_service"] > #mb_extra_service {
  display: block !important;
}

.stx-guided-editor :is(
  [data-stx-editor-step]:not([data-stx-editor-step="details"]) [data-stx-stage="details"],
  [data-stx-editor-step]:not([data-stx-editor-step="schedule"]) [data-stx-stage="schedule"],
  [data-stx-editor-step]:not([data-stx-editor-step="review"]) [data-stx-stage="review"],
  form:not([data-stx-extras-open]) [data-stx-extra],
  [data-stx-editor-step]:is([data-stx-editor-step="schedule"],[data-stx-editor-step="review"]) [data-stx-basic-fields] > .heading_section
) { display: none !important; }

.stx .stx-guided-editor .tab-contents :is(.basic_info,.event_type_section,.location,.vimeo_link_container,.image_feature,.contact,#mb_gallery) {
  background: transparent !important;
  border: 0;
  padding: 0;
  margin: 0 0 1.2rem;
  box-shadow: none;
}

.stx .stx-guided-editor .tab-contents :is(.basic_info,.event_type_section,.location,.image_feature):last-child { margin-bottom: 0; }
.stx .stx-guided-editor .tab-contents :is(.heading_ticket,.item_calendar) {
  background: var(--editor-field);
  color: var(--editor-text);
  border-color: var(--editor-line);
  border-radius: .5rem;
}
.stx .stx-guided-editor .tab-contents :is(label,legend,.text_title,.el_icon_help,small) { color: var(--editor-text); }
.stx .stx-guided-editor .tab-contents .heading_ticket :is(.name_ticket,i) { color: var(--editor-text); }
.stx .stx-guided-editor .tab-contents :is(.top_ticket,.date_ticket,.country_city,.input_radio_group) { flex-wrap: wrap; gap: .6rem; }
.stx .stx-guided-editor .tab-contents :is(.top_ticket,.country_city) > * { min-width: min(100%, 9rem); flex: 1 1 9rem; margin-inline: 0; }
.stx .stx-guided-editor .tab-contents .image_feature img.image-preview {
  max-height: 20rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.stx-editor-preview {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid var(--editor-line);
  border-radius: .85rem;
  background: var(--editor-bg);
  overflow-wrap: anywhere;
}

.stx .stx-guided-editor .stx-editor-preview h3 { margin: 0 0 .25rem; font-size: 1rem; }
.stx-editor-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .55rem;
  background: #110e16;
  color: var(--editor-muted);
  font-size: .85rem;
}
.stx-editor-poster img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.stx-editor-preview-title { line-height: 1.3; }
.stx-editor-preview :is(.stx-editor-preview-category,.stx-editor-preview-date,.stx-editor-preview-place,.stx-editor-preview-tickets,.stx-editor-preview-status) {
  color: var(--editor-muted);
  font-size: .85rem;
}
.stx-editor-preview > span:empty { display: none; }

.stx-guided-editor .stx-editor-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.stx .stx-guided-editor :is(.stx-editor-primary,.wrap_btn_submit .el_edit_event_submit) {
  background: #7840d9 !important;
  border: 1px solid #aa83ef;
  border-radius: .6rem;
  color: #fff !important;
  min-height: 44px;
}
.stx-guided-editor form:not([data-stx-editor-step="review"]) > .wrap_btn_submit { display: none !important; }
.stx-guided-editor form[data-stx-editor-step="review"] > .wrap_btn_submit { margin: 0; }
.stx-guided-editor form:not([data-stx-editor-step="review"]) > .stx-editor-preview { display: none; }
.stx-guided-editor form[data-stx-editor-step="review"] > .stx-editor-preview { grid-row: 3; }

@container (min-width: 34rem) {
  .stx-editor-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@container (min-width: 46rem) {
  body.stx-account .stx .vendor_wrap .contents .stx-guided-editor form.content { grid-template-columns: minmax(0, 1fr) minmax(12rem, .39fr); }
  .stx-guided-editor form > .stx-editor-bar { grid-column: 1 / -1; }
  .stx-guided-editor form[data-stx-editor-step] > .stx-editor-preview {
    display: grid;
    position: sticky;
    top: 1rem;
    grid-column: 2;
    grid-row: 2 / span 4;
  }
}

.stx .contents:has(> .stx-guided-editor) > .vendor_heading { display: none; }
.stx-editor-poster { position: relative; }
.stx-editor-poster img { position: absolute; inset: 0; }
