.tabs {
  width: 270px;
  background: #fff;
  border-radius: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  padding: 0.5em;
}
.tabs input {
  display: none;
}
.tabs label {
  margin-top: 0px;
  /* font-size: .8em; */
  flex: 1;
  text-align: center;
  line-height: unset;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.8em;
  padding-bottom: 0px;
  height: auto;
  margin-bottom: 8px;
}

.tabs input:checked + label {
  box-shadow: inset 0 -0.2rem #ff506f;
}
.container {
  display: flex;
  overflow: hidden;
  position: relative;
}
.content {
  flex: 0 0 20rem;
  padding: 2.4rem;
  padding-left: 20px;
  box-sizing: border-box;
  transition: transform 0.5s ease;
  margin-top: -15%;
}
.tabs input:nth-of-type(2):checked ~ .container .content {
  transform: translateX(-100%);
}

.top-tab {
  height: 25px !important;
  margin-top: 15px !important;
}
.preview {
  display: block;
  width: 270px;
  position: relative;
}
.floor1 {
  display: none;
  width: 100%;
  border-radius: 0.3rem;
  height: 166px;
  object-fit: cover;
}
.floor2 {
  display: none;
  width: 100%;
  border-radius: 0.3rem;
  height: 166px;
  position: absolute;
  z-index: 99;
  top: 0;
  left: 0;
}
