.widget {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 600px;
  /*  - CHECK THIS -  */
  /* height: fit-content; */
  margin: 0 auto;
  border-radius: .4em;
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
  background-color: white;
  background-color: var(--bk-ground);
  padding: .5em;
}

.tabs {
  --tab-count: 3;
  --active: 0;
  
  position: relative;
  isolation: isolate;
  display: flex;
  height: 2.5em;
  /* This creates an underline */
  border-block-end: .01em solid hsl(200, 7%, 50%);
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  background: var(--bk-ground);
  box-sizing: border-box;
}

.tabs input {
  display: none;
}

.tabs label {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 0.9375em;
  font-weight: 600;
  padding-top: .1em;
  color: #656d7b;
  cursor: pointer;
  transition: color 0.5s ease-in-out;
}

.tabs input:checked+label {
  color: #101010;
}

.tabs::after {
  pointer-events: none;
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0 0 -.1em;
  width: calc((100% / var(--tab-count)) - .1em);
  border-block-end: none;
  /* background-image: linear-gradient(var(--bk-ground), #fff); */
  background: white;
  border:  .01em solid hsl(200, 7%, 50%);
  border-bottom: none;
  border-radius: 0.5em 0.5em 0 0;
  /*
    1st = 0 * 100% = 0%
    2nd = 1 * 100% = 100%
    3rd = 2 * 100% = 200%
  */
  translate: calc(var(--active) * 100%);
  transition: translate 0.5s ease-in-out;
}

.tabs:has(:checked:nth-of-type(1)) {
  --active: 0;
}

.tabs:has(:checked:nth-of-type(2)) {
  --active: 1;
}

.tabs:has(:checked:nth-of-type(3)) {
  --active: 2;
}

.tab-content {
  background-color: white;
  border:  .01em solid hsl(200, 7%, 50%);
  border-top: none;
  border-bottom: 0;
  height: 100% !important;
}

.tab-content>div {
  position: relative;
}

[class^="tab-content-"] {
  display: none;
}


@media screen and (max-width: 500px) {
  body {
    font-size: 3vw;
  }
}