
.paint-calc-wrap {

}

/* ===== Verf calculator teaser ===== */
.paint-calc-teaser {
  border: 1px solid var(--tint-color);
  border-radius: 9px;
  padding: 1em .5em;
  font-weight:600;
  background:var(--tint-color);
  padding-left:5rem;
  position:relative;
  &::before {
    content:'';
    display:block;
    position:absolute;
    top:0;
    left:.5em;
    width:4em;
    height:100%;
    background:url('img/paint-calc-icon.svg') center / contain no-repeat;
  }
}
.paint-calc-teaser a {
  text-decoration: underline;
  cursor: pointer;
  font-weight:400;
}

/* ===== Modal ===== */
.paint-calc-modal {
  z-index: 9999;
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  display:none;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
}

.paint-calc-backdrop {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  cursor:pointer;
  background:rgba(0,0,0,0.6);
}

.paint-calc-dialog {
  background-color:white;
  padding:2rem;
  border-radius:16px;
  width:768px;
  max-width:90vw;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
  z-index: 5;
  input:not([type="checkbox"]) {
    font-size:inherit;
    font-family:inherit;
    line-height: 1.5em;
    font-weight: inherit;
    resize:none;
    border:1px solid var(--main-color);
    border-radius: 0;
    width:100%;
  }
}

.paint-calc-close {
  -webkit-appearance:none;
  border:none;
  border-radius:0;
  display:block;
  position:absolute;
  top:.5rem;
  right:.5rem;
  width:1.5rem;
  height:1.5rem;
  cursor:pointer;
  background:none;
  &::before, &::after {
      display:block;
      content:'';
      width:100%;
      height:2px;
      background:black;
      position:absolute;
      top:calc(50% - 1px);
      left:0;
      transform:rotate(45deg);
  }
  &::after {
      transform:rotate(-45deg);
  }
}

/* ===== Calculator inhoud ===== */
.paint-calc label {
  font-weight: 500;
}

.paint-result {
  margin-top: 12px;
  max-width:100%;
  width:100%;
  table {
    width: 100%;
    max-width: 420px;
    tr td:first-child {
      padding-right:1em;
    }
  }
}

.paint-result strong {
  display: inline-block;
  min-width: 140px;
}

.primer-block {
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* Prevent background scroll */
body.paint-calc-opened {
  overflow: hidden;
}
