/**
 * JadLog pickup point list (checkout) and pickup place block (order screens).
 *
 * The list is hidden by default; the PHP prints it with an inline
 * `display: block` when the JadLog rate is the chosen one, and the
 * checked-sibling rules below cover the clicks between two checkout
 * refreshes.
 */

ul#shipping_method li .infixs-jadlog-pickup-places {
	display: none;
	margin: 8px 0 0;
	list-style: none;
	padding: 5px 10px;
	border: 1px solid #ccc;
	background: transparent;
	font-size: 13px;
	line-height: 1.4;
}

ul#shipping_method li .infixs-jadlog-pickup-places li {
	margin-bottom: 7px;
}

ul#shipping_method li .infixs-jadlog-pickup-places li:last-child {
	margin-bottom: 0;
}

.infixs-jadlog-pickup-places .infixs-jadlog-pickup-title h4 {
	margin: 0 0 5px;
}

.infixs-jadlog-pickup-places li label {
	display: block;
	cursor: pointer;
}

.infixs-jadlog-pickup-places li input[type="radio"] {
	margin-right: 6px;
}

.infixs-jadlog-pickup-places .infixs-jadlog-pickup-name {
	font-weight: 600;
}

.infixs-jadlog-pickup-places .infixs-jadlog-pickup-address,
.infixs-jadlog-pickup-places .infixs-jadlog-pickup-hours {
	display: block;
	margin-left: 1.6em;
}

.infixs-jadlog-pickup-places .infixs-jadlog-pickup-hours {
	font-size: 0.92em;
	opacity: 0.8;
}

/* Reveal the list as soon as the JadLog rate radio is checked. */
ul#shipping_method li input[type="checkbox"]:checked + label + p + .infixs-jadlog-pickup-places,
ul#shipping_method li input[type="checkbox"]:checked + label + .infixs-jadlog-pickup-places,
ul#shipping_method li input[type="radio"]:checked + label + p + .infixs-jadlog-pickup-places,
ul#shipping_method li input[type="radio"]:checked + label + .infixs-jadlog-pickup-places {
	display: block !important;
}

/*
 * Themes that move the action output around: only the direct child input
 * counts — the pickup radios themselves are always checked.
 */
ul#shipping_method li:has(> input:checked) .infixs-jadlog-pickup-places,
ul#shipping_method li:has(> input:checked) + .infixs-jadlog-pickup-places {
	display: block !important;
}

/* Pickup place block, on the order screens and emails. */
.infixs-jadlog-pickup-wrapper {
	border: 1px solid #ccc;
	padding: 10px 20px;
	margin-bottom: 20px;
}

.infixs-jadlog-pickup-wrapper address {
	margin-bottom: 0;
}

.infixs-jadlog-pickup-wrapper .infixs-jadlog-pickup-hours {
	margin: 5px 0 0;
	font-size: 0.92em;
}
