﻿.tool-tip {
  position: relative;
  display: inline-block;
}
  /* Tooltip text */
  .tool-tip .tooltiptext {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    font-size: 0.8rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    width: 120px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
  }
  /* Show the tooltip text when you mouse over the tooltip container */
  .tool-tip:hover .tooltiptext {
    visibility: visible;
  }

.button {
  margin: 2rem auto;
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: transparent;
  padding: 16px 20px 12px;
  color: black;
  border: 2px solid #b29232;
  font-weight: bold;
}

  .button:hover {
    background: #b29232;
  }

  .button:active, .button:focus {
    background: #b29232;
  }

.calculator tbody td, .calculator tbody th, .calculator tfoot td, .calculator tfoot th, .calculator thead td, .calculator thead th {
  padding: 0.5rem 0.625rem 0.25rem;
}

.calculator input::placeholder {
  opacity: 1;
}

.calculator input:focus::placeholder {
  opacity: 0;
}

.calculator label:focus + input::placeholder {
  opacity: 0;
}

.calculator tbody tr {
  height: 50px;
}

  .calculator tbody tr:nth-child(even) {
    background: #fff;
  }

  .calculator tbody tr:nth-child(odd) {
    background: #fff;
  }

.calculator tbody, .calculator tfoot {
  border: 1px solid #ddd;
}

.calculator th i {
  opacity: 0.6;
}

.calculator th, .calculator .cost-total {
  font-weight: bold;
}

  .calculator th.head-col1 {
    text-align: left;
    width: 34%;
  }

  .calculator th.head-col2 {
    color: #fff;
    background: #f57e25;
    border: 1px solid #f57e25;
    width: 22%;
    text-align: center;
  }

  .calculator th.head-col3 {
    color: #fff;
    background: #3cc3cc;
    border: 1px solid #3cc3cc;
    width: 22%;
    text-align: center;
  }

  .calculator th.head-col4 {
    color: #fff;
    background: #005b70;
    border: 1px solid #005b70;
    width: 22%;
    text-align: center;
  }

.calculator td {
  vertical-align: middle;
}

  .calculator td.cost-col1 {
    text-align: left;
  }

  .calculator td.cost-col2, .calculator td.cost-col3, .calculator td.cost-col4 {
    border-left: 1px solid #ddd;
  }

.calculator input {
  height: 40px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 10px;
  margin-left: 10px;
  border-radius: 4px;
}

.calculator tbody tr.cost-total {
  background: #f0f0f0;
}

@media screen and (max-width: 430px) {
  table {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 45.9375em) {
  .calculator {
    font-size: 0.8rem;
  }

    .calculator input {
      width: 80%;
      margin-left: 3px;
    }
}

@media screen and (min-width: 46em) {
  .calculator input {
    width: 60px;
  }
}

@media screen and (min-width: 62em) and (max-width: 79.9375em) {
  .calculator td.cost-col2, .calculator td.cost-col3, .calculator td.cost-col4 {
    padding-left: 3rem;
  }
}

@media screen and (min-width: 80em) {
  .calculator td.cost-col2, .calculator td.cost-col3, .calculator td.cost-col4 {
    padding-left: 5rem;
  }
}
