/* Static mirror replacement for the WordPress/Unlimited Elements Cocoen slider. */
.cocoen.before-after-widget {
  --ba-position: 50%;
  --ba-full-width: 100%;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  line-height: 0;
}

.cocoen.before-after-widget > .static-ba-before {
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--ba-position) !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none;
}

.cocoen.before-after-widget > .static-ba-before > img {
  display: block !important;
  width: var(--ba-full-width) !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.cocoen.before-after-widget > img.static-ba-after {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  pointer-events: none;
}

.cocoen.before-after-widget > .cocoen-drag.static-ba-drag {
  position: absolute !important;
  z-index: 3 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: var(--ba-position) !important;
  width: 3px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  transform: translateX(-50%) !important;
  cursor: ew-resize !important;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.cocoen.before-after-widget > .cocoen-drag.static-ba-drag::before {
  content: "↔" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.30) !important;
  color: #fff !important;
  font: 700 20px/1 Arial, sans-serif !important;
  letter-spacing: 0 !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.25) !important;
  box-sizing: border-box !important;
}

.cocoen.before-after-widget > .cocoen-drag.static-ba-drag:focus-visible::before {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cocoen.before-after-widget > .cocoen-drag.static-ba-drag::before {
    width: 38px !important;
    height: 38px !important;
    font-size: 17px !important;
  }
}
