/* Locker and shop cards at the block checkout; the same look as the classic checkout's. */
.p2g-pickup-block .p2g-pickup {
	display: block;
	margin: 12px 0 4px;
	padding: 0;
	border: 0;
	min-width: 0;
	max-width: 100%;
	/* WooCommerce's size for the shipping rate names, not the theme's body size (22px in Twenty Twenty-Five). */
	font-size: var(--wp--preset--font-size--small, 14px);
	line-height: 1.4;
}

.p2g-pickup-block .p2g-pickup legend {
	display: block;
	font-size: inherit;
	font-weight: 600;
	margin: 0 0 4px;
	padding: 0;
}

.p2g-pickup-block .p2g-pickup-card {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	padding: 8px 10px;
	margin: 6px 0;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	text-align: left;
}

.p2g-pickup-block .p2g-pickup-card:has(input:checked) {
	border-color: currentColor;
	box-shadow: inset 0 0 0 1px currentColor;
}

.p2g-pickup-block label.p2g-pickup-choice {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	cursor: pointer;
	/* The card's size, not the theme's label size. */
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
}

.p2g-pickup-block label.p2g-pickup-choice input {
	margin: 3px 0 0;
	flex: none;
}

.p2g-pickup-block .p2g-pickup-name {
	font-weight: 600;
	min-width: 0;
}

/* Distance, address and hours behind "More info", lined up with the name. */
.p2g-pickup-block .p2g-pickup-info {
	margin: 2px 0 0 21px;
}

.p2g-pickup-block .p2g-pickup-info summary {
	cursor: pointer;
	opacity: 0.75;
	text-decoration: underline;
}

.p2g-pickup-block .p2g-pickup-detail {
	display: block;
	opacity: 0.75;
}

.p2g-pickup-block .p2g-pickup-more summary {
	cursor: pointer;
	margin: 4px 0;
}
