/* Fallback Darstellung */
a.teileskizzen-layer {
  position: relative;
  display: block;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
}

a.teileskizzen-layer img {
  max-width: 100%;
}

a.teileskizzen-layer:before {
  content: " ";
  display: block;
  z-index: 5;
  border-radius: 100%;
  background: url("/includes/plugins/webks_teileskizzen_layer/images/lupe.png")
    no-repeat rgba(255, 255, 255, 0.7);
  text-align: center;
  position: absolute;
  width: 160px;
  height: 160px;
  line-height: 160px;
  vertical-align: middle;
  left: 50%;
  top: 50%;
  margin: -80px 0 0 -80px;
}

/* Teileskizzen Darstellung */
#plugins_webks_teileskizzen_layer_map.no-js {
  display: none;
}

/* JS Fallback - hide when js inactive */

.webksde-teileskizze {
  position: relative;
}

.webksde-teileskizze__full-image-wrapper {
  text-align: center;
}

.webksde-teileskizze__coordinates-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.webksde-teileskizze__markers--percentage {
  /* For some reason the position differs a little with percentage values */
  -webkit-transform: translate(2px, 2px);
  -moz-transform: translate(2px, 2px);
  transform: translate(2px, 2px);
}

/* Marker */
.plugins_webks_teileskizzen_layer_marker {
  position: absolute;
  // border:2px dotted #b21010;
  background-color: rgba(255, 0, 0, 0.3);
  margin: -2px 0 0 -2px;
  cursor: help;
}

.plugins_webks_teileskizzen_layer_marker.marker--filled {
  background-color: rgba(255, 0, 0, 0.3);
}

.plugins_webks_teileskizzen_layer_marker:hover {
  background-color: rgba(255, 0, 0, 0.5);
}

.plugins_webks_teileskizzen_layer_marker_text {
  text-align: center;
  font-size: 1rem;
  line-height: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

/* Tooltips */
.webksde-teileskizze__tooltips {
  /* Wrapper holding the tooltip contents */
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  height: 0px !important;
  width: 0px !important;
  border: 0 none !important;
}

.plugins_webks_teileskizzen_layer_tooltip:not(.popper--show) {
  visibility: hidden;
  pointer-events: none;
  /* The wrapper needs overflow:visible, so we need to ensure that the overflowing (hidden) tooltips are not overflowing */
  position: absolute;
  left: 0;
  top: 0;
}

.webksde-teileskizze-tooltip table,
.webksde-teileskizze-tooltip table tr,
.webksde-teileskizze-tooltip table td {
  display: block;
  margin: 0;
}

.webksde-teileskizze-tooltip table th {
  display: none;
}

.webksde-teileskizze-tooltip table td {
  padding-top: 2px;
}

.webksde-teileskizze-tooltip .quantity-wrapper {
  margin: 0;
}
.webksde-teileskizze-tooltip table.suche-artikelliste-clone tr {
  padding: 0;
  margin: 0;
}

.webksde-teileskizze-tooltip table.suche-artikelliste-clone td.artikel_artnr {
  padding: 0 4px;
}

.webksde-teileskizze-tooltip.tooltip--closable {
  display: flex;
  flex-direction: column;
}
.webksde-teileskizze-tooltip.tooltip--closable .hinweis-col {
  padding-right: 45px;
}

/* Panzoom */
.webksde-teileskizze__panzoom-wrapper {
  overflow: hidden;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.webksde-teileskizze__panzoom-wrapper-inner {
  position: relative;
}

.webksde-teileskizze__markers {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* -- Panzoom Controls */
.webksde-teileskizze__controls {
  flex-flow: nowrap;
  text-align: center;
}
.webksde-teileskizze__controls .zoom-range-wrapper {
  flex: 1 1 auto;
}

/* -- Touch Gesture Hinweis */
.webksde-teileskizze__touch-gesture-help {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99;
  margin-left: -150px;
  margin-top: -120px;
  width: 300px;
  height: 240px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.webksde-teileskizze__touch-gesture-help--visible {
  display: block;
}

.webksde-teileskizze__touch-gesture-help .title {
  margin-bottom: 8px;
}

.webksde-teileskizze__touch-gesture-help .image-wrapper {
  text-align: center;
}

.webksde-teileskizze__touch-gesture-help .close-button {
  position: absolute;
  right: 0;
  top: 0;
}

/* Tooltips (popper.js) */
.popper {
  background: none no-repeat scroll right 42px rgba(255, 255, 255, 0.95);
  border-width: 0;
  border-style: solid;
  border-color: #df1c24;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  padding: 15px;
  top: -70px;
  width: 340px;
  z-index: 999;
}
.popper .table.suche-artikelliste-clone {
  border: 0 none !important;
  padding: 0 !important;
}

.popper-closer {
  position: absolute;
  right: 0;
  top: 0;
}

.popper a {
  color: black;
}

.popper::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  position: absolute;
}

.popper[x-placement*="top"] {
  margin-bottom: 10px;
  border-width: 0 0 3px 0;
}

.popper[x-placement*="top"]::before {
  border-width: 10px 10px 0 10px;
  border-color: #df1c24 transparent transparent transparent;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: 0;
}

.popper[x-placement*="bottom"] {
  margin-top: 5px;
  border-width: 3px 0 0 0;
}

.popper[x-placement*="bottom"]::before {
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #df1c24 transparent;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: 0;
}

.popper[x-placement*="right"] {
  margin-left: 5px;
  border-width: 0 0 0 3px;
}

.popper[x-placement="right"]::before {
  border-width: 5px 5px 5px 0;
  border-color: transparent #df1c24 transparent transparent;
  left: -5px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}

.popper[x-placement*="left"] {
  margin-right: 5px;
  border-width: 0 3px 0 0;
}

.popper[x-placement*="left"]::before {
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent #df1c24;
  right: -5px;
  top: calc(50% - 5px);
  margin-left: 0;
  margin-right: 0;
}

.popper--hide,
.popper--hover {
  display: none;
}

.popper--show {
  display: block;
}

/* Mobile Tooltips (full size overlay) */
@media (max-width: 1279px) {
  /* The visually hidden tooltips (required on larger devices)
  causing horizontal scrolling on small devices, so hide them
  here */
  .webksde-teileskizze-tooltip:not(.popper--show) {
    display: none !important;
  }
  /* .webksde-teileskizze-tooltip {
    position: fixed !important;
    transform: none !important;
    top: 0 !important;
    background: #fffc;
    backdrop-filter: blur(3px);
    padding: 60px 15px 15px;
    height: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999998 !important;
    overflow: hidden;
    overscroll-behavior: none;
  } */
  /* Dropdown menus inside */
  .webksde-teileskizze-tooltip .dropdown {
    position: static !important;
  }
  .webksde-teileskizze-tooltip .dropdown-menu {
    position: fixed !important;
    top: 0px !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: auto !important;
    min-width: 0 !important;
    max-height: none !important;
    /* max-height: calc(100% - 80px) !important; */
    z-index: 9999 !important;
    overflow: auto !important;
    /* box-shadow: 0 5px 10px #00000040; */
    transform: none !important;
  }
}
