.team-kit {
	--team-kit-border: #d9e0e5;
	--team-kit-control-border: #b8c2ca;
	--team-kit-focus: #2866a2;
	--team-kit-surface: #fff;
	--team-kit-preview: #f8fafb;
	--team-kit-muted-text: #445c70;
	margin: 18px 0;
	min-width: 0;
}

.team-kit__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

.team-kit__sets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 14px;
}

.team-kit__set {
	min-width: 0;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--team-kit-border);
	border-radius: 8px;
	background: var(--team-kit-surface);
}

.team-kit__legend {
	width: auto;
	margin: 0 0 10px;
	padding: 0 4px;
	border: 0;
	font-size: 14px;
	font-weight: 600;
}

.team-kit__pieces {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.team-kit__piece {
	container-type: inline-size;
	min-width: 0;
	text-align: center;
}

.team-kit__illustration {
	display: block;
	width: 100%;
	min-height: 88px;
	padding: 3px;
	border: 1px solid var(--team-kit-border);
	border-radius: 6px;
	background: var(--team-kit-preview);
	cursor: pointer;
}

.team-kit__illustration:focus-visible,
.team-kit__picker:focus-visible,
.team-kit__hex:focus-visible,
.team-kit__clear:focus-visible {
	outline: 2px solid var(--team-kit-focus);
	outline-offset: 2px;
}

.team-kit__garment {
	display: block;
	width: 66px;
	height: 76px;
	max-width: 100%;
	margin: auto;
}

.team-kit__piece-label {
	display: block;
	margin: 5px 0;
	font-size: 13px;
	font-weight: 600;
}

.team-kit__controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 5px;
}

.team-kit__picker {
	grid-column: 1;
	width: 44px;
	height: 44px;
	padding: 1px;
	border: 1px solid var(--team-kit-control-border);
	border-radius: 4px;
	background: var(--team-kit-surface);
	cursor: pointer;
}

.team-kit__hex {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 5px 4px;
	border: 1px solid var(--team-kit-control-border);
	border-radius: 4px;
	font: inherit;
	font-size: 12px;
	text-align: center;
}

.team-kit__clear {
	grid-column: 2;
	min-width: 44px;
	min-height: 44px;
	padding: 5px;
	border: 0;
	background: transparent;
	color: var(--team-kit-muted-text);
	font-size: 12px;
	cursor: pointer;
}

.team-kit__hex:placeholder-shown ~ .team-kit__picker {
	grid-column: 1 / -1;
}

.team-kit__hex:placeholder-shown ~ .team-kit__clear {
	display: none;
}

@container (max-width: 92px) {
	.team-kit__picker,
	.team-kit__clear {
		grid-column: 1 / -1;
	}
}

.team-kit__set:disabled,
.team-kit__set[disabled] {
	opacity: 0.7;
}

.team-kit--public {
	margin: 0;
}

.team-kit--public .team-kit__sets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.team-kit--public .team-kit__set {
  flex: 0 0 108px;
  width: 108px;
  padding: 6px;
}

.team-kit--public .team-kit__legend {
  display: block;
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  font-size: 12px;
  text-align: center;
}

.team-kit--public .team-kit__pieces {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.team-kit--public .team-kit__piece {
  width: 100%;
  container-type: normal;
}

.team-kit--public .team-kit__piece--shirt .team-kit__garment {
  width: 52px;
  height: 52px;
}

.team-kit--public .team-kit__piece--shorts {
  margin-top: -8px;
}

.team-kit--public .team-kit__piece--socks {
  margin-top: -6px;
}

.team-kit--public .team-kit__piece--shorts .team-kit__garment,
.team-kit--public .team-kit__piece--socks .team-kit__garment {
  width: 44px;
  height: 44px;
}

@media (max-width: 767px) {
  .team-kit--public .team-kit__set {
    flex-basis: 82px;
    width: 82px;
    padding: 4px;
  }

  .team-kit--public .team-kit__legend {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .team-kit--public .team-kit__piece--shirt .team-kit__garment {
    width: 40px;
    height: 40px;
  }

  .team-kit--public .team-kit__piece--shorts {
    margin-top: -6px;
  }

  .team-kit--public .team-kit__piece--socks {
    margin-top: -5px;
  }

  .team-kit--public .team-kit__piece--shorts .team-kit__garment,
  .team-kit--public .team-kit__piece--socks .team-kit__garment {
    width: 34px;
    height: 34px;
  }
}

.team-kit__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
