/**
 * "Buy this build" panel — shared by the System Builder and public build
 * displays (see src/SystemBuilder/view/buy-plan.js).
 */
.fps-buy {
	background: #262626;
	border: 1px solid #444;
	border-radius: 6px;
	box-sizing: border-box;
	color: #e6e6e6;
	font-size: 14px;
	line-height: 1.45;
	padding: 18px 20px;
}

.fps-buy *,
.fps-buy *::before,
.fps-buy *::after {
	box-sizing: border-box;
}

.fps-buy .fps-buy__heading {
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
}

.fps-buy .fps-buy__intro {
	color: #b8b8b8;
	font-size: 13px;
	margin: 0 0 14px;
}

.fps-buy__plans {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.fps-buy .fps-buy__plan {
	background: #1f1f1f;
	border: 1px solid #555;
	border-radius: 6px;
	color: #e6e6e6;
	cursor: pointer;
	display: flex;
	flex: 1 1 120px;
	flex-direction: column;
	font: inherit;
	gap: 2px;
	padding: 8px 12px;
	text-align: left;
}

.fps-buy .fps-buy__plan:hover {
	border-color: #59a8d8;
}

.fps-buy .fps-buy__plan.is-active {
	background: #12344a;
	border-color: #59a8d8;
}

.fps-buy__plan-title {
	color: #ffffff;
	font-weight: 700;
}

.fps-buy__plan-detail {
	color: #b8b8b8;
	font-size: 12px;
}

.fps-buy__groups {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fps-buy__group {
	background: #1f1f1f;
	border: 1px solid #444;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 14px;
}

/* One store: keep the card a readable width instead of stretching the
   button and "Open" links across the whole panel. */
.fps-buy__group:only-child {
	max-width: 560px;
}

.fps-buy__group-head {
	align-items: baseline;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.fps-buy .fps-buy__store {
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.fps-buy__group-meta {
	color: #b8b8b8;
	font-size: 13px;
	white-space: nowrap;
}

.fps-buy .fps-buy__items {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fps-buy .fps-buy__item {
	align-items: baseline;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.fps-buy .fps-buy__item::before {
	content: none;
}

.fps-buy__item-check {
	border: 1px solid #666;
	border-radius: 3px;
	color: #6fcf97;
	flex: 0 0 16px;
	font-size: 11px;
	height: 16px;
	line-height: 14px;
	text-align: center;
	transform: translateY(2px);
}

.fps-buy__item.is-opened .fps-buy__item-check {
	border-color: #6fcf97;
}

.fps-buy__item-name {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.fps-buy__item-slot {
	color: #9a9a9a;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fps-buy .fps-buy__item-link {
	color: #59a8d8;
	flex: 0 0 auto;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}

.fps-buy .fps-buy__item-link:hover {
	color: #7ec2ed;
	text-decoration: underline;
}

.fps-buy .fps-buy__go,
.fps-buy-bar .fps-buy__go {
	background: #007cba;
	border: 1px solid #007cba;
	border-radius: 4px;
	/* !important: theme link colours (".tdi_NNN a") outrank a class. */
	color: #ffffff !important;
	cursor: pointer;
	display: block;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 12px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.fps-buy .fps-buy__go:hover,
.fps-buy .fps-buy__go:focus-visible,
.fps-buy-bar .fps-buy__go:hover {
	background: #2599d6;
	border-color: #2599d6;
}

.fps-buy .fps-buy__note,
.fps-buy .fps-buy__fineprint {
	color: #9a9a9a;
	font-size: 12px;
	margin: 0;
}

.fps-buy .fps-buy__note--warn {
	color: #e0a800;
}

.fps-buy .fps-buy__fineprint {
	margin-top: 14px;
}

.fps-buy__unavailable {
	border-top: 1px solid #444;
	color: #b8b8b8;
	font-size: 13px;
	margin-top: 14px;
	padding-top: 12px;
}

.fps-buy__unavailable strong {
	color: #e6e6e6;
}

/* Where the panel sits. */
.fps-system-build__buy-panel {
	margin: 18px 20px;
}

.fps-builder__buy {
	margin-top: 16px;
}

/* Phone bar on build pages. */
.fps-buy-bar {
	display: none;
}

@media (max-width: 782px) {
	.fps-system-build__buy-panel {
		margin: 14px 12px;
	}

	.fps-buy-bar {
		align-items: center;
		background: #1f1f1f;
		border-top: 1px solid #444;
		bottom: 0;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
		color: #ffffff;
		display: flex;
		font-size: 14px;
		gap: 12px;
		justify-content: space-between;
		left: 0;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		position: fixed;
		right: 0;
		z-index: 9000;
	}

	.fps-buy-bar.is-hidden {
		display: none;
	}

	.fps-buy-bar .fps-buy__go {
		width: auto;
	}
}
