/* Fix for z placement of popver */
.o-map .o-tools-bottom {
  pointer-events: none;
  z-index: 100;
}

.o-map .o-tools-bottom > * {
  pointer-events: all;
}

/* Button overrides for attrbiute form */
.o-modal .o-form-save input[type=button] {
  border-radius: .25rem;
  box-sizing: border-box;
  width: calc(50% - 5px);
}
.o-modal .o-form-save .standard {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  margin-right: 10px;
}
.o-modal .o-form-save .standard:hover {
  background-color: #0069d9;
  border-color: #0069d9;
}

/* position classes */
.o-map .upper-right {
  right: .5rem;
  top: .5rem;
}

/* html control */
.o-map .o-html-control {
  position: absolute;
}
.o-map[class*=o-media-l-m] .o-html-control {
  display: none;
}

/* Pulsing add button */
@-webkit-keyframes hvr-icon-pulse {
  25% {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
  }
  75% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}
@keyframes hvr-icon-pulse {
  25% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  75% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}
.hvr-icon-pulse {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-icon-pulse .hvr-icon {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.o-active.hvr-icon-pulse .hvr-icon {
  -webkit-animation-name: hvr-icon-pulse;
  animation-name: hvr-icon-pulse;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

/* Notification */
.o-box-control {
  background-color: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.45);
  box-shadow: 0 0 5px rgba(0,0,0,0.45);
  display: inline-block;
  overflow: hidden;
  position: absolute;
  z-index: 110;
}

.o-notification {
  height: auto;
  left: 0;
  margin: 0 auto;
  max-width: 260px;
  min-height: 2.5rem;
  right: 0;
  top: .5rem;
  -ms-transform: translateY(0);
	-webkit-transform: translateY(0);
	transform: translateY(0);
	-ms-transition: 1s ease all;
	-webkit-transition: 1s ease all;
	transition: 1s ease all;
  width: calc(100% - 1rem);
}

.o-notification:not(.o-active) {
  top: -80px;
  -ms-transform: translateY(-80px);
	-webkit-transform: translateY(-80px);
	transform: translateY(-80px);
}

.o-notification > div {
  display: inline-block;
  font-size: .875rem;
  line-height: 1rem;
  padding: .5rem;
}

/* layerswitcher */
.o-map .o-layerswitcher {
  bottom: 2.5rem;
  left: .5rem;
  position: absolute;
}
.o-map .o-layerswitcher.o-button-lg {
  height: 4rem;
  width: 4rem;
}
.o-map[class*=o-media-l] .o-layerswitcher {
  bottom: .5rem;
}
.o-map[class*=o-media-l-m] .o-layerswitcher.o-button-lg {
  height: 2.5rem;
  width: 2.5rem;
}

/* Custom css overrides for dialogkarta */
.o-map[class*=o-media-l-m] .o-tools-left {
  bottom: auto;
  top: 0;
}
.o-map[class*=o-media-l-m] .o-toolbar-misc {
  order: initial;
  margin-top: .5rem;
}

/* radioknappar */
.o-map .o-modal .radio li {
  box-sizing: border-box;
  color: #AAAAAA;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  float: left;
  width: 100%;
  height: 4rem;
}

.radio {
  display: inline-block;
  float: left;
  padding-bottom: 1rem;
  padding-top: .5rem;
  width: 100%;
}

.radio ul {
  margin-top: .5rem;
}

.radio li.checked {
  border-color: rgba(0,0,0,.7);
}

.radio li {
  border: 1px solid;
  border-color: #fff;
  border-radius: 4px;
}

ul li input[type=radio]{
  position: absolute;
  visibility: hidden;
}

.o-map .o-modal ul li label{
  display: block;
  position: relative;
  font-weight: 300;
  padding: .5rem .5rem .5rem 3rem;
  margin: 0 auto;
  height: 2rem;
  line-height: 1rem;
  z-index: 9;
  cursor: pointer;
  -webkit-transition: all 0.25s linear;
}

ul li:hover label{
	color: rgba(0,0,0,0.8);
}

ul li .check {
  display: block;
  position: absolute;
  height: 2rem;
  padding: .5rem;
  width: 2rem;
  top: 0;
  left: 0;
	z-index: 5;
	transition: border .25s linear;
	-webkit-transition: border .25s linear;
}

input[type=radio]:checked ~ label{
  color: #000;
}

[class^="icon-radio"],
[class*="icon-radio"] {
  fill: #AAAAAA;
  padding: 0;
  height: 2rem;
  width: 2rem;
}
