/* ==========================================================================
   Aaima Local Pickup — checkout styles
   ========================================================================== */

.alp-pickup-wrap {
	padding: 14px 0 4px;
}

.alp-pickup-heading {
	margin: 0 0 10px;
	font-size: 1em;
	font-weight: 600;
}

.alp-hint {
	margin: 0 0 10px;
	font-size: .9em;
	opacity: .8;
}

/* Location cards */
.alp-location-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.alp-location {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.alp-location:hover {
	border-color: rgba(0, 0, 0, .35);
}

.alp-location-selected {
	border-color: currentColor;
	background: rgba(0, 0, 0, .03);
}

.alp-location-radio {
	margin-top: 3px;
	flex-shrink: 0;
}

.alp-location-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.45;
}

.alp-location-name {
	font-weight: 600;
}

.alp-location-address,
.alp-location-phone,
.alp-location-desc {
	font-size: .88em;
	opacity: .8;
}

.alp-location-desc {
	font-style: italic;
}

.alp-location-hours {
	display: flex;
	flex-direction: column;
	margin-top: 4px;
	font-size: .82em;
	opacity: .7;
}

/* Per-item selectors */
.alp-item-locations {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.alp-item-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
}

.alp-item-name {
	font-weight: 600;
	font-size: .92em;
}

.alp-item-qty {
	font-weight: 400;
	opacity: .6;
}

.alp-item-select,
.alp-select {
	width: 100%;
	max-width: 100%;
	padding: 7px 10px;
}

/* Appointment */
.alp-appointment {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.alp-time-wrap {
	margin-top: 10px;
}

.alp-time-wrap label {
	display: block;
	margin-bottom: 4px;
	font-size: .9em;
	font-weight: 600;
}

/* Notices */
.alp-notice {
	display: block;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: .88em;
	margin: 6px 0;
}

.alp-notice-error {
	background: #fdecea;
	border-left: 3px solid #cc1818;
	color: #8c0000;
}

/* Order details block */
.alp-order-pickup {
	margin: 24px 0;
}

.alp-order-location {
	margin-bottom: 12px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Cart page variant
   The picker sits inside the cart totals table, which is narrow, so the
   cards are made more compact than on checkout.
   -------------------------------------------------------------------------- */
.alp-cart-pickup th {
	vertical-align: top;
}

.alp-pickup-cart {
	padding: 0;
}

.alp-pickup-cart .alp-location {
	padding: 9px 11px;
}

.alp-pickup-cart .alp-location-hours {
	display: none;
}

.alp-pickup-cart .alp-location-desc {
	display: none;
}

.alp-pickup-cart .alp-item-row {
	padding: 8px 10px;
}

.alp-cart-note {
	margin: 8px 0 0;
	font-size: .82em;
	opacity: .7;
}

/* Dim the block while the choice is being saved. */
.alp-pickup-cart.alp-loading {
	opacity: .5;
	pointer-events: none;
	transition: opacity .15s ease;
}

/* Distance badge and directions link on the checkout cards */
.alp-location-distance {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .07);
	font-size: .78em;
	font-weight: 400;
	white-space: nowrap;
}

.alp-location-directions {
	align-self: flex-start;
	margin-top: 4px;
	font-size: .82em;
	text-decoration: underline;
}
