.wim-map {
  --wim-overlay-color: #000000;
  --wim-overlay-opacity: 0.5;
  color: inherit;
  max-width: 100%;
}

.wim-map *,
.wim-map *::before,
.wim-map *::after {
  box-sizing: border-box;
}

.wim-plan-wrap {
  display: block;
  line-height: 0;
  position: relative;
  width: 100%;
}

.wim-plan-image {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.wim-plan-overlay {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.wim-hover-shade {
  fill: var(--wim-overlay-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.wim-hover-shade.is-active {
  opacity: var(--wim-overlay-opacity);
}

.wim-plan-area {
  cursor: pointer;
  fill: transparent;
  pointer-events: all;
  stroke: none;
}

.wim-plan-area:focus {
  outline: none;
}

.wim-spotlight[hidden],
.wim-floor-panel[hidden] {
  display: none;
}

.wim-spotlight {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 72px 24px 86px;
  position: fixed;
  z-index: 100000;
}

.wim-spotlight-backdrop {
  appearance: none;
  background: rgba(0, 0, 0, 0.78) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  display: block;
  inset: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.wim-spotlight-backdrop:hover,
.wim-spotlight-backdrop:focus,
.wim-spotlight-backdrop:active {
  background: rgba(0, 0, 0, 0.78) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.wim-spotlight-dialog {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  display: flex;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0;
  position: relative;
  width: auto;
  z-index: 1;
}

.wim-spotlight-dialog h3 {
  bottom: 24px;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 26px);
  left: 50%;
  line-height: 1.25;
  margin: 0;
  max-width: min(920px, calc(100vw - 48px));
  position: fixed;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  z-index: 2;
}

.wim-spotlight-dialog img {
  display: block;
  height: auto;
  max-height: calc(100vh - 170px);
  max-width: calc(100vw - 48px);
  object-fit: contain;
  width: auto;
}

.wim-spotlight-close {
  align-items: center;
  appearance: none;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px;
  box-shadow: none !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  font-size: 32px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: fixed;
  right: 24px;
  text-decoration: none;
  top: 24px;
  width: 46px;
  z-index: 2;
}

.wim-spotlight-close:hover,
.wim-spotlight-close:focus,
.wim-spotlight-close:active {
  background: rgba(0, 0, 0, 0.64) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  box-shadow: none !important;
  color: #ffffff !important;
  outline: none;
}

.wim-spotlight-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .wim-map--rotate-mobile.is-rotation-ready .wim-floor-panel.is-active {
    height: var(--wim-rotated-map-height);
    overflow: hidden;
    position: relative;
  }

  .wim-map--rotate-mobile.is-rotation-ready .wim-plan-wrap {
    left: 50%;
    max-width: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%) translateY(var(--wim-rotated-map-offset, 0)) rotate(-90deg);
    transform-origin: center center;
    width: var(--wim-rotation-source-width);
  }

  .wim-spotlight {
    padding: 64px 12px 78px;
  }

  .wim-spotlight-dialog img {
    max-height: calc(100vh - 150px);
    max-width: calc(100vw - 24px);
  }

  .wim-spotlight-dialog h3 {
    bottom: 20px;
    max-width: calc(100vw - 32px);
  }

  .wim-spotlight-close {
    right: 14px;
    top: 14px;
  }
}
