/* Open / Enclosed truck picker used by ShippingQuoteComponent and RoundTripShippingQuoteComponent.
   Native radios stay in the DOM (keyboard + screen readers) but are visually replaced by a custom dot. */

.shipping-type-options {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	width: 100%;
}

/* Needs to out-rank the components' `.input-group.compact label` rule. */
.input-group.compact label.shipping-type-option,
.shipping-type-options label.shipping-type-option {
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.45rem 0.6rem;
	border: 1.5px solid #d5dbe3;
	border-radius: 8px;
	background: #fff;
	color: #344054;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.shipping-type-options label.shipping-type-option:hover:not(.disabled) {
	border-color: #86b7fe;
	background: #f8fbff;
}

/* Visually hidden native input */
.shipping-type-option .shipping-type-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

/* Custom radio dot */
.shipping-type-option .shipping-type-dot {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border: 1.5px solid #98a2b3;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shipping-type-option .shipping-type-dot::after {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #fff;
	transform: scale(0);
	transition: transform 0.15s ease;
}


/* Selected */
.shipping-type-options label.shipping-type-option.selected {
	border-color: #0d6efd;
	background: #eef5ff;
	color: #0a3d91;
	box-shadow: 0 1px 3px rgba(13, 110, 253, 0.15);
}

.shipping-type-option.selected .shipping-type-dot {
	border-color: #0d6efd;
	background: #0d6efd;
}

.shipping-type-option.selected .shipping-type-dot::after {
	transform: scale(1);
}


/* Keyboard focus */
.shipping-type-options label.shipping-type-option:has(.shipping-type-input:focus-visible) {
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

/* Locked (high-value vehicle forces Enclosed) */
.shipping-type-options label.shipping-type-option.disabled {
	cursor: not-allowed;
}

.shipping-type-options label.shipping-type-option.disabled:not(.selected) {
	opacity: 0.5;
	background: #f2f4f7;
}

/* Nothing picked when the user tried to get a quote */
.shipping-type-options.missing label.shipping-type-option {
	border-color: #f04438;
	background: #fff6f5;
}

.shipping-type-options.missing .shipping-type-option .shipping-type-dot {
	border-color: #f04438;
}

/* Both options always share one row; in very narrow cards the label wraps inside its tile. */
.shipping-type-option > span:last-child {
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
}
