/* PCO Demo Switcher v3 */

.pco-demo-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.pco-demo-switcher-inline {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  margin: 1rem 0;
}

.pco-demo-switcher__label {
  padding: 0 7px 0 8px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}

.pco-demo-switcher__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #333;
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.pco-demo-switcher__button:hover {
  background: rgba(0, 0, 0, .06);
}

.pco-demo-switcher__button[aria-pressed="true"] {
  background: #333;
  color: #fff;
}

body.pco-mode-dummy,
body.pco-mode-structure {
  --pco-placeholder-bg: #d9d9d9;
  --pco-placeholder-bg-2: #ececec;
  --pco-placeholder-border: #b8b8b8;
  --pco-placeholder-text: #666;
  --pco-label-bg: rgba(255,255,255,.94);
  --pco-label-border: rgba(0,0,0,.22);
  --pco-label-text: #555;
}

body.pco-mode-dummy .pco-original-visual,
body.pco-mode-structure .pco-original-visual {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.pco-mode-dummy .pco-image-wrap,
body.pco-mode-structure .pco-image-wrap,
body.pco-mode-dummy .pco-media-wrap,
body.pco-mode-structure .pco-media-wrap {
  position: relative !important;
  overflow: hidden;
  min-height: var(--pco-placeholder-min-height, 90px);
  border-radius: inherit;
}

body.pco-mode-dummy .pco-image-placeholder,
body.pco-mode-structure .pco-image-placeholder,
body.pco-mode-dummy .pco-media-placeholder,
body.pco-mode-structure .pco-media-placeholder {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px;
  min-height: 32px;
  border: 1px dashed var(--pco-placeholder-border) !important;
  border-radius: inherit;
  background-color: var(--pco-placeholder-bg) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%, transparent) !important;
  background-size: 22px 22px !important;
  color: var(--pco-placeholder-text) !important;
  pointer-events: none !important;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif !important;
}

body.pco-mode-dummy .pco-image-placeholder .pco-placeholder-label,
body.pco-mode-dummy .pco-media-placeholder .pco-placeholder-label {
  display: none;
}

body.pco-mode-dummy.pco-show-image-labels .pco-image-placeholder .pco-placeholder-label,
body.pco-mode-dummy.pco-show-image-labels .pco-media-placeholder .pco-placeholder-label,
body.pco-mode-structure .pco-image-placeholder .pco-placeholder-label,
body.pco-mode-structure .pco-media-placeholder .pco-placeholder-label {
  display: inline-block;
}

body.pco-mode-structure .pco-image-placeholder .pco-placeholder-label,
body.pco-mode-structure .pco-media-placeholder .pco-placeholder-label,
body.pco-mode-dummy.pco-show-image-labels .pco-image-placeholder .pco-placeholder-label,
body.pco-mode-dummy.pco-show-image-labels .pco-media-placeholder .pco-placeholder-label {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--pco-placeholder-text) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body.pco-mode-dummy .pco-bg-placeholder,
body.pco-mode-structure .pco-bg-placeholder,
body.pco-mode-dummy .tp-bgimg,
body.pco-mode-structure .tp-bgimg,
body.pco-mode-dummy .slotholder,
body.pco-mode-structure .slotholder,
body.pco-mode-dummy rs-sbg,
body.pco-mode-structure rs-sbg {
  background-image: none !important;
  background-color: var(--pco-placeholder-bg) !important;
}

body.pco-mode-dummy .pco-bg-placeholder,
body.pco-mode-structure .pco-bg-placeholder {
  border-color: var(--pco-placeholder-border);
}

body.pco-mode-structure .pco-bg-placeholder::after {
  content: attr(data-pco-bg-label);
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1000;
  display: inline-block;
  max-width: calc(100% - 20px);
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.13);
  color: var(--pco-placeholder-text);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  pointer-events: none;
}

body.pco-mode-dummy .pco-svg-placeholder,
body.pco-mode-structure .pco-svg-placeholder {
  background: var(--pco-placeholder-bg-2) !important;
  border-radius: 6px;
}

body.pco-mode-structure .pco-structure-target {
  position: relative !important;
  outline: 1px dashed rgba(0,0,0,.16);
  outline-offset: 2px;
}

body.pco-mode-structure .pco-structure-target[data-pco-label]::before {
  content: attr(data-pco-label);
  position: absolute;
  top: -10px;
  left: 10px;
  z-index: 2147482000;
  display: inline-block;
  max-width: min(320px, calc(100% - 20px));
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--pco-label-bg);
  border: 1px solid var(--pco-label-border);
  color: var(--pco-label-text);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

body.pco-mode-structure h1.pco-structure-target::before,
body.pco-mode-structure h2.pco-structure-target::before,
body.pco-mode-structure h3.pco-structure-target::before,
body.pco-mode-structure p.pco-structure-target::before,
body.pco-mode-structure a.pco-structure-target::before,
body.pco-mode-structure span.pco-structure-target::before {
  top: -22px;
  left: 0;
}

body.pco-mode-dummy .pco-force-placeholder,
body.pco-mode-structure .pco-force-placeholder {
  color: transparent !important;
  background: var(--pco-placeholder-bg) !important;
  border: 1px dashed var(--pco-placeholder-border) !important;
}

body.pco-mode-dummy .pco-force-placeholder::after,
body.pco-mode-structure .pco-force-placeholder::after {
  content: attr(data-pco-label);
  color: var(--pco-placeholder-text);
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body.pco-mode-dummy .pco-preserve,
body.pco-mode-structure .pco-preserve,
body.pco-mode-dummy .pco-ignore,
body.pco-mode-structure .pco-ignore {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 640px) {
  .pco-demo-switcher {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
    border-radius: 14px;
  }

  .pco-demo-switcher__label {
    display: none;
  }

  .pco-demo-switcher__button {
    flex: 1;
  }
}
