/* Checkout address picker. */

.sk-address {
	margin-bottom: 1.5em;
}

/* The list hangs off the input, not off the form row — anchored to the row it
   would take the row's full width and start below the hint text. */
.sk-address__field {
	position: relative;
	display: block;
}

.sk-address__hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	opacity: 0.7;
}

.sk-address__results {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	right: 0;
	/* Sit on the input's own border rather than beside it. */
	margin: -1px 0 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(22, 32, 26, 0.15);
	box-shadow: 0 8px 24px rgba(22, 32, 26, 0.12);
}

.sk-address__result {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid rgba(22, 32, 26, 0.06);
}

.sk-address__result:last-child {
	border-bottom: 0;
}

.sk-address__result:hover,
.sk-address__result.is-active {
	background: #edefe9;
}

.sk-address__street {
	font-weight: 600;
}

.sk-address__place {
	font-size: 13px;
	opacity: 0.7;
}

/* Spinner, prompt and "nothing found" all share one row so the list keeps its
   shape as the state changes underneath it. */
.sk-address__message {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	opacity: 0.75;
}

.sk-address__spinner {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(22, 32, 26, 0.18);
	border-top-color: #f37021;
	border-radius: 50%;
	animation: sk-address-spin 0.7s linear infinite;
}

@keyframes sk-address-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sk-address__spinner {
		animation-duration: 2.4s;
	}
}

.sk-address__chosen:not(:empty) {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #2f6b45;
}

.sk-address__manual {
	margin: 8px 0 0;
}

.sk-address__toggle {
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

/* The "this is only an estimate" line under the shipping rate, on the cart and
   in the checkout's order review. */
.sk-shipping-note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.75;
}
