/* Chain tiles: third row of the choices table on the pendant pages (belladonna-chains.php) */

/* Only seen when the row could not be moved into the table (no JavaScript) */
.bd-chain-holder {
	margin: 0 0 1.25rem;
}

.bd-chain__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .5rem;
	max-width: 22rem;
}

.bd-chain__option {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

/* The radio stays in the form and focusable, the tile shows it */
.bd-chain__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.bd-chain__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	height: 100%;
	padding: .6rem .4rem;
	font-size: .85rem;
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	transition: border-color .2s, box-shadow .2s;
}

.bd-chain__option:hover .bd-chain__tile {
	border-color: #333;
}

.bd-chain__input:checked + .bd-chain__tile {
	border-color: var(--e-global-color-06d470c, #1C49A4);
	box-shadow: inset 0 0 0 1px var(--e-global-color-06d470c, #1C49A4);
}

.bd-chain__input:focus-visible + .bd-chain__tile {
	outline: 2px solid #333;
	outline-offset: 2px;
}

.bd-chain__picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
}

.bd-chain__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}

.bd-chain__price {
	font-size: .8rem;
	color: #555;
}
