@charset "utf-8";

.choicePanelBase {
	width: 100%;
	padding: 60px 0;
	margin: 60px 0;
	background: #e4e4d9;
	display: flex;
	justify-content: center;
}

.choicePanelGrid {
	--choice-panel-card-width: 240px;
	width: min(100%, calc((var(--choice-panel-columns, 5) * var(--choice-panel-card-width)) + ((var(--choice-panel-columns, 5) - 1) * 16px)));
	max-width: calc((var(--choice-panel-card-width) * 5) + (16px * 4));
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--choice-panel-card-width), 100%), 1fr));
	gap: 16px;
	align-items: stretch;
	justify-content: center;
}

.choicePanel {
	cursor: pointer;
	border: 2px solid transparent;
	background: #ffffff;
	border-radius: 16px;
	padding: 18px 16px;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	text-align: left;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	color: inherit;
	font: inherit;
	position: relative;
}

.choicePanel:hover,
.choicePanel:focus-visible {
	border-color: #b38867;
	transform: translateY(-2px);
	box-shadow: 0 15px 24px rgba(0, 0, 0, 0.16);
}

.choicePanel.is-selected {
	border-color: #71614d;
	background: #71614d;
	box-shadow: 0 16px 26px rgba(0, 0, 0, 0.2);
	color: #fff;
}

.choicePanel.is-selected h4 {
	color: #fff;
}

.choicePanel.is-selected p {
	color: #fff;
}

.choicePanel h4 {
	font-size: 1.2em;
	margin-bottom: 8px;
	text-align: center;
}

.choicePanel p {
	margin-bottom: 0;
	text-align: left;
	color: #3a3a3a;
}

.choicePanelTarget {
	display: none;
}

.choicePanelTarget.is-visible {
	display: block;
}
