.storage-calculator {
  display: flex;
  margin-bottom: 2em;
  text-align: left;
}
@media (max-width: 767px) {
  .storage-calculator {
    flex-direction: column;
  }
}
.storage-calculator #item-categories {
  flex-grow: 1;
  min-width: 1px;
}
.storage-calculator .bootstrap-touchspin {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 0.6em;
}
.storage-calculator .bootstrap-touchspin .input-group-btn {
  min-width: 0;
}
.storage-calculator input.sc-number {
  border: 1px solid #c9c8c8;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  width: 3em;
  font-size: 1.2em;
  margin-bottom: 0;
  height: 2em;
  line-height: 2em;
  box-sizing: border-box;
}
.storage-calculator .input-group-btn .btn {
  margin-right: 0;
  border-radius: 0;
  background-color: #afafaf;
  font-size: 1.08em;
  position: relative;
  min-width: 0;
  height: 2.2em;
  padding: 0 0.6em;
  line-height: 1;
  border: none;
  outline: none;
  box-shadow: none;
  color: #fff;
}
.storage-calculator .input-group-btn .btn.bootstrap-touchspin-down {
  border-top-left-radius: 0.2em;
  border-bottom-left-radius: 0.2em;
}
.storage-calculator .input-group-btn .btn.bootstrap-touchspin-up {
  border-top-right-radius: 0.2em;
  border-bottom-right-radius: 0.2em;
}
.storage-calculator h2, .storage-calculator h3 {
  text-transform: none;
}
.storage-calculator .summary {
  min-width: 20em;
  max-width: 20em;
  flex-grow: 1;
  align-self: flex-start;
}
@media (max-width: 767px) {
  .storage-calculator .summary {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }
}
.storage-calculator .summary .sum {
  text-align: center;
  margin-top: 2em;
}
.storage-calculator .summary .sum .btn {
  font-size: 0.8em;
}
.storage-calculator .summary .sum i {
  display: block;
  font-size: 2.2em;
  font-weight: 700;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}
.storage-calculator .summary .sum i:after {
  content: "m2";
  font-size: 0.8em;
  padding-left: 0.2em;
}
.storage-calculator .item-selector {
  min-width: 1px;
  flex-grow: 1;
  border: 1px solid #c9c8c8;
  border-radius: 3px;
  margin-right: 1em;
  font-size: 0.85em;
}
@media (max-width: 767px) {
  .storage-calculator .item-selector {
    margin-right: 0;
    font-size: 0.75em;
  }
}
.storage-calculator .item-selector .headline {
  margin: 1em;
}
.storage-calculator .item-selector .headline h2 {
  margin-top: 0.5em;
  margin-bottom: 0em;
  font-size:32px;
}
.storage-calculator .items {
  display: flex;
  flex-wrap: wrap;
  margin: 0.5em;
}
.storage-calculator .items .item {
  width: 20%;
}
@media (max-width: 1199px) {
  .storage-calculator .items .item {
    width: 25%;
  }
}
@media (max-width: 991px) {
  .storage-calculator .items .item {
    width: 33.33333%;
  }
}
@media (max-width: 767px) {
  .storage-calculator .items .item {
    width: 50%;
  }
}
.storage-calculator .items .item h3 {
  font-size: 1.1em;
  margin-bottom: 0.6em;
  margin-top: 0.6em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.storage-calculator .items .item input {
  margin-bottom: 0.6em;
}
.storage-calculator .items .item img {
  width:calc(100% - 20px);
  max-height: calc(100% - 20px);
}
.storage-calculator .items .item .inner {
  text-align: center;
  border: 1px solid #c9c8c8;
  background-color: #f2f2f2;
  border-radius: 3px;
  margin: 0.5em;
}
.storage-calculator .summary #categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.storage-calculator .room {
  width: 100%;
  border: 1px solid #c9c8c8;
  background-color: #f2f2f2;
  font-size: 0.9em;
  padding: 0.5em 0.7em;
  margin-top: 0.5em;
  border-radius: 3px;
  cursor: pointer;
}
.storage-calculator .room a {
  pointer-events: none;
  color: #000;
  text-decoration: none;
}
.storage-calculator .room i {
  float: right;
}
.storage-calculator .room i:after {
  content: "m²";
  font-size: 0.8em;
  padding-left: 0.2em;
}
.storage-calculator .room.active {
  border: 2px solid #00853f;
}
.storage-calculator .summary .sum {
  text-align: center;
  margin-top: 2em;
  padding: 1.5em 1em;
  background-color: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.storage-calculator .summary .sum .btn {
  font-size: 0.8em;
}
.storage-calculator .summary .sum-label {
  font-size: 0.85em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}
.storage-calculator .summary .sum i {
  display: block;
  font-size: 2.6em;
  font-weight: 700;
  font-style: normal;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  color: #00853f;
}
.storage-calculator .summary .sum i:after {
  content: "m²";
  font-size: 0.5em;
  padding-left: 0.2em;
  vertical-align: super;
}
.storage-calculator.unit-cubic .room i:after, .storage-calculator.unit-cubic .summary .sum i:after {
  content: "m³";
}

/* Toggle for m²/m³ */
.storage-calculator .measure-toggle {
  display: flex;
  justify-content: center;
  margin: 1em auto 0;
  border: 1px solid #c9c8c8;
  border-radius: 4px;
  overflow: hidden;
  max-width: 10em;
}
.storage-calculator .measure-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.35em 0.8em;
  font-size: 0.8em;
  cursor: pointer;
  background: #f2f2f2;
  color: #555;
  transition: background-color 0.15s, color 0.15s;
  margin: 0;
  line-height: 1.4;
}
.storage-calculator .measure-toggle label:first-of-type {
  border-right: 1px solid #c9c8c8;
}
.storage-calculator .measure-toggle input[type=radio] {
  display: none;
}
.storage-calculator .measure-toggle input[type=radio]:checked + label {
  background: #00853f;
  color: #fff;
  font-weight: 600;
}
