.stfc-warehouse-selector,
.stfc-warehouse-selector * {
	box-sizing: border-box;
}

.stfc-warehouse-selector {
	--stfc-color-blue: #1f3a5f;
	--stfc-color-orange: #f97316;
	--stfc-color-green: #2f6f57;
	--stfc-color-gray: #4b5563;
	--stfc-color-border: #d1d5db;
	--stfc-color-white: #ffffff;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 1.25rem 0;
	padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
	color: var(--stfc-color-gray);
	font-family: 'Roboto', Arial, sans-serif;
	line-height: 1.5;
}

.stfc-warehouse-selector [hidden] {
	display: none !important;
}

.stfc-warehouse-selector__heading {
	margin: 0 0 0.75rem;
	color: var(--stfc-color-blue);
	font-family: 'League Spartan', 'Arial Narrow', Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.stfc-warehouse-selector__form,
.stfc-warehouse-selector__classes {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.stfc-warehouse-selector__classes {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.stfc-warehouse-selector__legend {
	margin-bottom: 0.5rem;
	color: var(--stfc-color-blue);
	font-family: 'League Spartan', 'Arial Narrow', Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
}

.stfc-warehouse-selector__option {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
	min-height: 52px;
	padding: 0.875rem;
	border: 1px solid var(--stfc-color-border);
	border-radius: 0.5rem;
	background: var(--stfc-color-white);
	color: var(--stfc-color-gray);
	cursor: pointer;
	line-height: 1.45;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.stfc-warehouse-selector__option:hover {
	border-color: var(--stfc-color-blue);
}

.stfc-warehouse-selector__option:has(.stfc-warehouse-selector__radio:checked) {
	border-color: var(--stfc-color-orange);
	box-shadow: inset 4px 0 0 var(--stfc-color-orange);
	color: var(--stfc-color-blue);
}

.stfc-warehouse-selector__radio {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.1rem 0 0;
	accent-color: var(--stfc-color-orange);
}

.stfc-warehouse-selector__option-text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	font-family: 'Roboto', Arial, sans-serif;
	overflow-wrap: anywhere;
}

.stfc-warehouse-selector__availability {
	color: var(--stfc-color-gray);
	font-size: 0.9rem;
}

.stfc-warehouse-selector__quantity-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0;
}

.stfc-warehouse-selector__quantity-label {
	color: var(--stfc-color-blue);
	font-family: 'League Spartan', 'Arial Narrow', Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
}

.stfc-warehouse-selector__stepper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.stfc-warehouse-selector__stepper-button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--stfc-color-border);
	border-radius: 0.375rem;
	background: var(--stfc-color-white);
	color: var(--stfc-color-blue);
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.stfc-warehouse-selector__stepper-button:hover:not(:disabled) {
	border-color: var(--stfc-color-orange);
	background: var(--stfc-color-orange);
	color: var(--stfc-color-blue);
}

.stfc-warehouse-selector__stepper-button:disabled {
	background: #f3f4f6;
	color: var(--stfc-color-gray);
	cursor: not-allowed;
}

.stfc-warehouse-selector__quantity {
	min-width: 2ch;
	color: var(--stfc-color-blue);
	font-weight: 700;
	text-align: center;
}

.stfc-warehouse-selector__submit,
.stfc-warehouse-selector__schedule-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33.333%;
	min-width: 16rem;
	min-height: 54px;
	margin: 0 auto;
	padding: 0.875rem 1rem;
	border: 2px solid;
	border-radius: 0.5rem;
	font-family: 'League Spartan', 'Arial Narrow', Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.stfc-warehouse-selector__submit {
	border-color: var(--stfc-color-green);
	background: var(--stfc-color-green);
	color: var(--stfc-color-white);
	cursor: pointer;
}

.stfc-warehouse-selector__schedule-link {
	margin-top: 0.75rem;
	border-color: var(--stfc-color-blue);
	background: var(--stfc-color-white);
	color: var(--stfc-color-blue);
}

.stfc-warehouse-selector__submit:hover:not(:disabled) {
	border-color: #285d49;
	background: #285d49;
}

.stfc-warehouse-selector__schedule-link:hover {
	background: #f3f4f6;
}

.stfc-warehouse-selector__submit:disabled {
	border-color: var(--stfc-color-border);
	background: #f3f4f6;
	color: var(--stfc-color-gray);
	cursor: not-allowed;
}

.stfc-warehouse-selector__option:focus-within,
.stfc-warehouse-selector__stepper-button:focus-visible,
.stfc-warehouse-selector__submit:focus-visible,
.stfc-warehouse-selector__schedule-link:focus-visible,
.stfc-warehouse-selector__credit-back a:focus-visible,
.stfc-warehouse-selector__heading:focus-visible {
	outline: 3px solid var(--stfc-color-blue);
	outline-offset: 3px;
}

.stfc-warehouse-selector__notice {
	margin: 1rem 0;
	color: var(--stfc-color-gray);
	font-family: 'Roboto', Arial, sans-serif;
}

.stfc-warehouse-selector__notice a {
	color: var(--stfc-color-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.stfc-warehouse-selector__notice a:focus-visible {
	outline: 3px solid var(--stfc-color-orange);
	outline-offset: 3px;
}

.stfc-warehouse-selector__credit-copy,
.stfc-warehouse-selector__credit-no-reservation,
.stfc-warehouse-selector__credit-price {
	margin: 0 0 0.75rem;
}

.stfc-warehouse-selector__credit-price {
	color: var(--stfc-color-blue);
}

.stfc-warehouse-selector__credit-form {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 1rem;
}

.stfc-warehouse-selector__credit-quantity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0;
}

.stfc-warehouse-selector__credit-total-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--stfc-color-border);
	color: var(--stfc-color-blue);
	font-weight: 700;
}

.stfc-warehouse-selector__credit-back {
	margin: 1rem 0 0;
}

.stfc-warehouse-selector__credit-back a {
	color: var(--stfc-color-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 600px) {
	.stfc-warehouse-selector[data-stfc-warehouse-selector] {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin-right: auto;
		margin-left: auto;
		padding-right: 0;
		padding-left: 0;
	}

	.stfc-warehouse-selector__heading {
		font-size: clamp(1.125rem, 5.5vw, 1.25rem);
		letter-spacing: -0.015em;
		white-space: nowrap;
	}

	.stfc-warehouse-date-heading {
		font-size: clamp(1.125rem, 5.5vw, 1.25rem);
		letter-spacing: -0.015em;
		white-space: nowrap;
	}

	.stfc-warehouse-selector__course-name {
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.stfc-warehouse-selector__quantity-control {
		align-items: flex-start;
	}

	.stfc-warehouse-selector__option {
		padding: 0.875rem 0.75rem;
	}

	.stfc-warehouse-selector__submit,
	.stfc-warehouse-selector__schedule-link {
		width: 100%;
		max-width: 28rem;
		min-width: 0;
		padding-right: 0.5rem;
		padding-left: 0.5rem;
		font-size: 0.875rem;
		letter-spacing: 0;
	}

	.stfc-warehouse-selector__schedule-link {
		min-height: 4rem;
	}

	.stfc-warehouse-selector__schedule-label {
		display: grid;
		gap: 0.05rem;
		line-height: 1.05;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.stfc-warehouse-selector__submit,
	.stfc-warehouse-selector__schedule-link {
		width: 50%;
	}
}

@media (min-width: 901px) {
	.stfc-warehouse-selector {
		container-type: inline-size;
	}

	.stfc-warehouse-selector__schedule-link {
		font-size: 0.9rem;
		letter-spacing: -0.01em;
	}

	@container (min-width: 38rem) {
		.stfc-warehouse-selector__option-label {
			font-size: 0.95rem;
			white-space: nowrap;
		}
	}
}

.stfc-warehouse-selector__scope-notice {
	margin: 0 0 1rem;
	padding: 0.875rem 1rem;
	border-left: 4px solid var(--stfc-color-orange);
	border-radius: 0.375rem;
	background: #fff7ed;
	color: var(--stfc-color-blue);
	font-weight: 700;
}
