/* ---- Preview-only chrome. Not part of the page designs. ---- */

/* Disabled links keep their styling but stop behaving like links. */
a[data-preview-disabled] { cursor: default; }

/* ---- Page switcher ---- */
#spa-preview-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  font-family: "Lexend Deca", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#spa-preview-switcher .spa-ps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
#spa-preview-switcher .spa-ps-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5);
}
#spa-preview-switcher .spa-ps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B62925;
  flex: none;
}
#spa-preview-switcher .spa-ps-panel {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: calc(100vw - 36px);
  max-height: min(72vh, 620px);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .5);
  overflow: hidden;
}
#spa-preview-switcher .spa-ps-panel[hidden] { display: none; }

#spa-preview-switcher .spa-ps-search {
  flex: none;
  padding: 9px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}
#spa-preview-switcher .spa-ps-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 9px;
  background: #fafafa;
  color: #333;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#spa-preview-switcher .spa-ps-input:focus {
  border-color: #B62925;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(182, 41, 37, .12);
}

#spa-preview-switcher .spa-ps-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .25) transparent;
}
#spa-preview-switcher .spa-ps-list::-webkit-scrollbar { width: 9px; }
#spa-preview-switcher .spa-ps-list::-webkit-scrollbar-track { background: transparent; }
#spa-preview-switcher .spa-ps-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .22);
  border: 3px solid #fff;
  border-radius: 999px;
}
#spa-preview-switcher .spa-ps-list::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .38); }

#spa-preview-switcher .spa-ps-group { border-radius: 10px; }
#spa-preview-switcher .spa-ps-group + .spa-ps-group { margin-top: 2px; }
#spa-preview-switcher .spa-ps-group[hidden] { display: none; }
#spa-preview-switcher .spa-ps-group.is-open { background: #fafafa; }

#spa-preview-switcher .spa-ps-group-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4a4a4f;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
#spa-preview-switcher .spa-ps-group-toggle:hover { background: #f1f1f2; }
#spa-preview-switcher .spa-ps-group.is-open .spa-ps-group-toggle { color: #1f1f23; }
#spa-preview-switcher .spa-ps-group-name { flex: 1 1 auto; }

#spa-preview-switcher .spa-ps-caret {
  flex: none;
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 6px solid #a0a0a6;
  transition: transform .16s ease;
}
#spa-preview-switcher .spa-ps-group.is-open .spa-ps-caret {
  transform: rotate(90deg) translateX(1px);
  border-left-color: #B62925;
}

#spa-preview-switcher .spa-ps-count {
  flex: none;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  color: #76767c;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
#spa-preview-switcher .spa-ps-group.is-open .spa-ps-count {
  background: rgba(182, 41, 37, .1);
  color: #B62925;
}

#spa-preview-switcher .spa-ps-group-body { display: none; padding: 0 7px 7px 7px; }
#spa-preview-switcher .spa-ps-group.is-open .spa-ps-group-body { display: block; }

#spa-preview-switcher .spa-ps-item {
  display: block;
  padding: 8px 12px 8px 21px;
  border-radius: 8px;
  color: #45454a;
  font-weight: 400;
  text-decoration: none;
}
#spa-preview-switcher .spa-ps-item[hidden] { display: none; }
#spa-preview-switcher .spa-ps-item:hover { background: #ececee; color: #1f1f23; }
#spa-preview-switcher .spa-ps-item.is-current {
  color: #B62925;
  font-weight: 500;
  background: rgba(182, 41, 37, .08);
}
#spa-preview-switcher .spa-ps-empty {
  padding: 16px 12px;
  color: #8a8a8f;
  text-align: center;
}
#spa-preview-switcher .spa-ps-empty[hidden] { display: none; }

@media (max-width: 480px) {
  #spa-preview-switcher { right: 12px; bottom: 12px; left: 12px; align-items: flex-end; }
  #spa-preview-switcher .spa-ps-panel { width: 100%; max-width: none; max-height: 70vh; }
}

@media print {
  #spa-preview-switcher { display: none; }
}

/* Locked links are destinations outside this preview. They must still read as
   normal, enabled UI — only their click is inert. Without an href the theme's
   link colour never lands, which made titles grey and buttons look faded. */
a.spa-locked { opacity: 1 !important; cursor: default; }
a.elementor-button.spa-locked {
  background-color: var(--e-global-color-the7_accent) !important;
  background-image: var(--e-global-color-the7_accent) !important;
  color: var(--e-global-color-1dfbbe6c, #fff) !important;
}
a.elementor-button.spa-locked .elementor-button-text,
a.elementor-button.spa-locked .elementor-button-icon,
a.elementor-button.spa-locked i { color: inherit !important; }
.elementor-image-box-title a.spa-locked,
.eael-entry-title a.spa-locked,
h1 a.spa-locked, h2 a.spa-locked, h3 a.spa-locked, h4 a.spa-locked { color: inherit !important; }
