.xticket_plan {
  font-size: 16px;
  line-height: 1.3em;
}

.xticket_plan_area_name {
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.3em;
  font-weight: bold;
  padding-top: 20px;
}

.xticket_plan_legends {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 10px;
  border: 1px solid #eee;
  margin: 5px 0px;
  border-radius: 5px;
  background: #fafafa;
}

.xticket_plan_legend {
  display: flex;
  gap: 5px;
  font-size: 0.9rem;
  line-height: 1.3em;
}

.xticket_plan_legends_name {
  font-weight: bold;
}

.xticket_plan_legend_color {
  border: 1px solid #aaa;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 3px;
}

.xticket_plan_row_name {
  color: #aaa;
  text-transform: uppercase;
  text-align: center;
  padding-top: 5px;
  font-size: 0.8rem;
  line-height: 1.3em;
}

.xticket_plan_row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.xticket_plan_item {
  border: 2px solid transparent;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.3em;
  border-radius: 5px;
  padding: 5px 0px;
  margin: 0px 0px;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  opacity: 1;
  font-weight: bold;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.xticket_plan_item_icon {
  width: 80%;
  aspect-ratio: 1;
  position: absolute;
  top: 10%;
  left: 10%;
  opacity: 0;
  filter: drop-shadow(0px 0px 3px white);
}

.xticket_plan_item:not(.xticket_plan_item-inactive):hover {
  border: 2px solid #228b22;
  transform: scale(1.05);
  transition: all ease 100ms;
}

.xticket_plan_item:not(.xticket_plan_item-inactive):active {
  transform: scale(0.9);
  transition: all ease 100ms;
}

.xticket_plan_item-inactive {
  opacity: 0.2;
  border: none;
  background: none !important;
  cursor: default;
}

@supports selector(a:has(img)) {
  .xticket_plan_item input {
    display: none;
  }
}

.xticket_plan_item:has(:checked) {
  border: 2px solid #228b22 !important;
  color: black;
  box-shadow: inset 3px 3px 10px rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.xticket_plan_item:has(:checked) .xticket_plan_item_icon {
  opacity: 1;
  animation: xticket_plan_item_icon 100ms ease-out;
}

@keyframes xticket_plan_item_icon {
  0% {
    opacity: 1;
    transform: scale(0);
  }

  100% {
    opacity: 1;
  }
}

.xticket_plan_item:has(:checked) .xticket_plan_item_text {
  opacity: 0;
}
