.sly-fg-location {
	--sly-fg-location-theme-accent: #0b2f78;
	--sly-fg-location-theme-button-text: #fff;
	--sly-fg-location-theme-radius: 2px;
	--sly-fg-location-theme-font: inherit;
	--sly-fg-location-theme-field-border: #8893a5;
	--sly-fg-location-theme-field-radius: 2px;
	--sly-fg-location-custom-accent: #1a237e;
	--sly-fg-location-custom-surface: #fff;
	--sly-fg-location-custom-border: #d9dce3;
	--sly-fg-location-custom-ink: #22252a;
	--sly-fg-location-accent: var(--sly-fg-location-theme-accent);
	--sly-fg-location-surface: #fff;
	--sly-fg-location-border: #d9dce3;
	--sly-fg-location-ink: #14213d;
	display: inline-block;
	font-family: inherit;
	max-width: 100%;
	position: relative;
	z-index: 30;
}

/* Lift the whole shortcode stacking context only while its panel is open. */
.sly-fg-location.is-open {
	z-index: 2147482000;
}

.sly-fg-location--custom {
	--sly-fg-location-accent: var(--sly-fg-location-custom-accent);
	--sly-fg-location-surface: var(--sly-fg-location-custom-surface);
	--sly-fg-location-border: var(--sly-fg-location-custom-border);
	--sly-fg-location-ink: var(--sly-fg-location-custom-ink);
}

.sly-fg-location button,
.sly-fg-location input {
	box-sizing: border-box;
	font: inherit;
}

.sly-fg-location__trigger {
	align-items: center;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: var(--sly-fg-location-theme-radius);
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	gap: .65rem;
	justify-content: flex-start;
	line-height: 1.15;
	min-height: 48px;
	padding: .55rem .75rem;
	text-align: left;
	width: 100%;
}

.sly-fg-location--custom .sly-fg-location__trigger {
	border-color: var(--sly-fg-location-accent);
	color: var(--sly-fg-location-accent);
}

.sly-fg-location--bar,
.sly-fg-location--bar .sly-fg-location__trigger {
	display: flex;
	width: 100%;
}

.sly-fg-location__trigger .dashicons-location-alt {
	color: currentColor;
	flex: 0 0 auto;
	font-size: 22px;
	height: 22px;
	width: 22px;
}

.sly-fg-location__trigger-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: .18rem;
	min-width: 0;
}

.sly-fg-location__trigger-label {
	font-size: .92rem;
	font-weight: 700;
	white-space: nowrap;
}

.sly-fg-location__trigger-summary {
	font-size: .76rem;
	text-decoration: underline;
}

.sly-fg-location__trigger-chevron {
	flex: 0 0 auto;
	font-size: 17px;
	height: 17px;
	transition: transform .18s ease;
	width: 17px;
}

.sly-fg-location__trigger[aria-expanded="true"] .sly-fg-location__trigger-chevron {
	transform: rotate(180deg);
}

.sly-fg-location__panel {
	background: var(--sly-fg-location-surface);
	border: 1px solid var(--sly-fg-location-border);
	border-radius: 4px;
	box-shadow: 0 18px 45px rgba(9, 24, 59, .22);
	box-sizing: border-box;
	color: var(--sly-fg-location-ink);
	font-family: inherit;
	margin-top: .7rem;
	max-height: min(720px, calc(100vh - 2rem));
	overflow-y: auto;
	padding: 1.25rem;
	position: absolute;
	left: 0;
	right: auto;
	top: 100%;
	width: min(430px, calc(100vw - 2rem));
	z-index: 99999;
}

.sly-fg-location__panel.is-aligned-right {
	left: auto;
	right: 0;
}

.sly-fg-location__panel[hidden],
.sly-fg-location__results[hidden],
.sly-fg-location__current[hidden],
.sly-fg-location__trigger-summary[hidden],
.sly-fg-location__depot[hidden] {
	display: none;
}

.sly-fg-location__heading-row {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.sly-fg-location__panel h2,
.sly-fg-location__panel h3,
.sly-fg-location__panel p {
	font-family: inherit;
}

.sly-fg-location__panel h2 {
	color: var(--sly-fg-location-accent);
	font-size: 1.45rem;
	font-weight: 750;
	letter-spacing: -.015em;
	line-height: 1.2;
	margin: 0;
}

.sly-fg-location__current {
	color: var(--sly-fg-location-accent);
	font-size: .93rem;
	font-weight: 700;
	margin: .25rem 0 0;
}

.sly-fg-location__close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--sly-fg-location-accent);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 36px;
	justify-content: center;
	margin: -.35rem -.35rem 0 0;
	padding: 0;
	width: 36px;
}

.sly-fg-location__close .dashicons {
	font-size: 28px;
	height: 28px;
	width: 28px;
}

.sly-fg-location__intro {
	color: #4e596c;
	font-size: .88rem;
	line-height: 1.45;
	margin: .7rem 0 1rem;
}

.sly-fg-location__fields {
	display: grid;
	gap: .75rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sly-fg-location__fields label {
	color: var(--sly-fg-location-ink);
	display: block;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.sly-fg-location__fields label > span {
	display: block;
	margin-bottom: .35rem;
}

.sly-fg-location__fields input {
	background: #fff;
	border: 1px solid var(--sly-fg-location-theme-field-border);
	border-radius: var(--sly-fg-location-theme-field-radius);
	box-shadow: none;
	color: #1d2636;
	font-size: 1rem;
	line-height: 1.25;
	min-height: 44px;
	padding: .65rem .7rem;
	width: 100%;
}

.sly-fg-location__postcode {
	text-transform: uppercase;
}

.sly-fg-location__submit {
	background: var(--sly-fg-location-accent);
	border: 1px solid var(--sly-fg-location-accent);
	border-radius: var(--sly-fg-location-theme-radius);
	color: var(--sly-fg-location-theme-button-text);
	cursor: pointer;
	font-family: var(--sly-fg-location-theme-font);
	font-weight: 700;
	margin-top: .8rem;
	min-height: 46px;
	padding: .7rem 1rem;
	width: 100%;
}

.sly-fg-location--custom .sly-fg-location__submit {
	color: #fff;
}

.sly-fg-location__trigger:hover,
.sly-fg-location__trigger:focus-visible,
.sly-fg-location__close:hover,
.sly-fg-location__close:focus-visible,
.sly-fg-location__depots-toggle:hover,
.sly-fg-location__depots-toggle:focus-visible {
	color: var(--sly-fg-location-accent);
}

.sly-fg-location__submit:hover,
.sly-fg-location__submit:focus-visible {
	filter: brightness(.9);
}

.sly-fg-location button:focus-visible,
.sly-fg-location input:focus-visible {
	outline: 3px solid #8ba4df;
	outline: 3px solid color-mix(in srgb, var(--sly-fg-location-accent) 45%, #fff);
	outline-offset: 2px;
}

.sly-fg-location__status {
	border-radius: 3px;
	font-size: .84rem;
	line-height: 1.4;
	margin: 0;
}

.sly-fg-location__status:not(:empty) {
	margin-top: .8rem;
	padding: .65rem .75rem;
}

.sly-fg-location__status.is-working {
	background: #f1f4f8;
	color: #435067;
}

.sly-fg-location__status.is-error {
	background: #fff2ef;
	color: #8a2f20;
	font-weight: 650;
}

.sly-fg-location__results {
	border-top: 1px solid var(--sly-fg-location-border);
	margin-top: 1rem;
}

.sly-fg-location__result {
	align-items: flex-start;
	border-bottom: 1px solid var(--sly-fg-location-border);
	display: grid;
	gap: .85rem;
	grid-template-columns: 42px minmax(0, 1fr);
	padding: 1rem 0;
}

.sly-fg-location__result:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sly-fg-location__result-icon {
	align-items: center;
	background: #edf3ff;
	border-radius: 999px;
	color: var(--sly-fg-location-accent);
	display: inline-flex;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.sly-fg-location__result--delivery .sly-fg-location__result-icon {
	background: #eef7ef;
	color: #226b36;
}

.sly-fg-location__result-icon .dashicons {
	font-size: 21px;
	height: 21px;
	width: 21px;
}

.sly-fg-location__result-body h3 {
	color: var(--sly-fg-location-accent);
	font-size: .98rem;
	font-weight: 750;
	line-height: 1.3;
	margin: .05rem 0 .42rem;
}

.sly-fg-location__result-body h3.is-available {
	color: #226b36;
}

.sly-fg-location__result-body h3.is-unavailable {
	color: #8a2f20;
}

.sly-fg-location__rate {
	align-items: baseline;
	display: flex;
	font-size: .86rem;
	gap: .65rem;
	justify-content: space-between;
	line-height: 1.4;
	margin: .2rem 0;
}

.sly-fg-location__rate-label {
	color: #4e596c;
}

.sly-fg-location__rate-price {
	color: var(--sly-fg-location-ink);
	font-weight: 700;
	white-space: nowrap;
}

.sly-fg-location__depot {
	display: flex;
	flex-direction: column;
	font-size: .84rem;
	gap: .18rem;
	line-height: 1.4;
	margin: .35rem 0 0;
}

.sly-fg-location__depot strong {
	color: var(--sly-fg-location-ink);
	font-weight: 700;
}

.sly-fg-location__depot span {
	color: #596477;
}

.sly-fg-location__depots-toggle {
	background: transparent;
	border: 0;
	color: var(--sly-fg-location-accent);
	cursor: pointer;
	font-size: .82rem;
	font-weight: 650;
	margin: .6rem 0 0;
	padding: 0;
	text-decoration: underline;
}

.sly-fg-location__result--information {
	align-items: center;
}

.sly-fg-location__result--information .sly-fg-location__result-icon {
	background: #eef0f4;
	color: #485366;
}

.sly-fg-location__result--information p {
	color: #596477;
	font-size: .78rem;
	line-height: 1.45;
	margin: 0;
}

.sly-fg-location.is-busy {
	cursor: wait;
}

.sly-fg-location.is-busy .sly-fg-location__panel {
	opacity: .82;
}

@media (max-width: 640px) {
	.sly-fg-location__panel {
		border-radius: 10px 10px 0 0;
		bottom: 0;
		left: 0;
		margin: 0;
		max-height: min(86vh, 720px);
		padding: 1.1rem;
		position: fixed;
		right: 0;
		top: auto;
		width: 100%;
	}

	.sly-fg-location__fields {
		grid-template-columns: 1fr;
	}

	.sly-fg-location__panel h2 {
		font-size: 1.28rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sly-fg-location__trigger-chevron {
		transition: none;
	}
}
