/**
 * Drivelux Transfer Form 2.9.4
 * Shared component: Google Places and route metrics
 *
 * Source architecture module. Loaded directly by WordPress.
 */

.dltf-place-host {
	position: relative;
}

.dltf-place-host:focus-within {
	z-index: 40;
}

.dltf-places {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	max-height: min(390px, 56vh);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	border: 1px solid rgba(17, 24, 39, .08);
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
	color: #16181c;
	backdrop-filter: none;
}

.dltf .dltf-places[hidden] {
	display: none !important;
}

.dltf .dltf-places:not([hidden]) {
	display: block !important;
}

.dltf-places__option {
	display: flex;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 60px;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 0 !important;
	border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #16181c !important;
	text-align: left;
	box-shadow: none !important;
	transition: background .16s ease;
}

.dltf-places__option:hover,
.dltf-places__option:focus,
.dltf-places__option.is-active {
	background: rgba(210, 161, 91, .10) !important;
	outline: 0;
}

.dltf-places__option-icon {
	flex: 0 0 22px;
	width: 22px !important;
	min-width: 22px !important;
	height: 22px;
	margin-top: 2px;
	color: #8c6428;
}

.dltf-places__option-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	stroke: currentColor;
	stroke-width: 1.7;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dltf-places__option-body {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.dltf-places__option-body strong {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-places__option-body span {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	color: #6f7680;
	font-size: 12px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-places__message {
	display: block;
	padding: 14px;
	color: #6f7680;
	font-size: 13px;
	line-height: 1.45;
}

.dltf-places__attribution {
	display: flex;
	background: #ffffff;
	min-height: 32px;
	align-items: center;
	justify-content: flex-end;
	padding: 7px 12px;
	border-top: 1px solid rgba(17, 24, 39, .08);
	color: rgba(17, 24, 39, .48);
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .01em;
}

.dltf-route-metrics {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px;
	border: 1px solid rgba(210, 161, 91, .26);
	border-radius: 12px;
	background: rgba(210, 161, 91, .055);
}

.dltf-route-metrics__item {
	display: grid;
	grid-template-columns: 20px auto;
	grid-template-rows: auto auto;
	column-gap: 9px;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 9px;
	background: rgba(255, 255, 255, .025);
}

.dltf-route-metrics__item > svg {
	grid-row: 1 / 3;
	align-self: center;
	width: 19px;
	height: 19px;
	color: var(--dltf-gold-light);
}

.dltf-route-metrics__item > span {
	color: var(--dltf-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.dltf-route-metrics__item > strong {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.dltf-route-metrics__status {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 4px 8px;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.4;
}

.dltf-route-metrics.is-loading .dltf-route-metrics__status::before {
	content: "";
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(210, 161, 91, .25);
	border-top-color: var(--dltf-gold-light);
	border-radius: 50%;
	animation: dltf-route-spin .75s linear infinite;
}

.dltf-route-metrics.is-error {
	border-color: rgba(226, 139, 128, .4);
	background: rgba(226, 139, 128, .065);
}

.dltf-route-metrics.is-error .dltf-route-metrics__status {
	color: var(--dltf-danger);
}

@keyframes dltf-route-spin {
	to { transform: rotate(360deg); }
}

.dltf-places__attribution img {
	display: block;
	width: 120px;
	height: auto;
	max-width: 100%;
}

.dltf-place-host {
	position: relative;
	cursor: text;
	transition: background .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.dltf-place-host:focus-within { z-index: 40; }

.dltf-place-host .dltf-places,
.dltf-place-host .dltf-places * { cursor: default; }

.dltf-place-host .dltf-places__option { cursor: pointer; }

.dltf-field-shell.dltf-place-host.is-place-active {
	z-index: 50;
	background: transparent;
	box-shadow: inset 0 -2px 0 rgba(210, 161, 91, .68);
}

.dltf-input.dltf-place-host.is-place-active > div {
	border-color: rgba(210, 161, 91, .62);
	background: var(--dltf-panel);
	box-shadow: 0 0 0 2px rgba(210, 161, 91, .055);
}

.dltf-field-shell.dltf-place-host.is-place-active .dltf-field-shell__icon {
	border-color: rgba(210, 161, 91, .5);
	background: rgba(210, 161, 91, .045);
	color: var(--dltf-gold-light);
}

.dltf-input.dltf-place-host.is-place-active > div > svg { color: var(--dltf-gold-light); }

@media (max-width: 680px){.dltf-places {
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		max-height: min(330px, 52vh);
		overflow-x: hidden;
		overflow-y: auto;
	}}

@media (max-width: 680px){.dltf-place-host,
	.dltf-route-grid,
	.dltf-route-grid > *,
	.dltf-input,
	.dltf-input > div { max-width: 100%; min-width: 0; }}

@media (max-width: 680px){.dltf-field-shell.dltf-place-host.is-place-active { transform: translateY(-1px); }}

@media (max-width: 680px){.dltf-route-metrics { gap: 8px; padding: 8px; }}

@media (max-width: 680px){.dltf--full .dltf-section[data-dltf-section="trip"] > .dltf-route-metrics {
		margin-top: 10px;
		padding: 7px;
	}}


html.dltf-places-modal-open,
body.dltf-places-modal-open {
	overflow: hidden;
}

.dltf-places-modal {
	position: fixed;
	inset: 0;
	z-index: 10060;
}

.dltf-places-modal[hidden] {
	display: none !important;
}

.dltf-places-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 18, 24, .35);
	backdrop-filter: blur(8px);
}

.dltf-places-modal__dialog {
	position: relative;
	display: flex;
	height: 100%;
	flex-direction: column;
	background: #ffffff;
	color: #16181c;
}

.dltf-places-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: max(18px, env(safe-area-inset-top)) 16px 12px;
	border-bottom: 1px solid rgba(17, 24, 39, .08);
	background: #ffffff;
}

.dltf-places-modal__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	color: #16181c;
}

.dltf-places-modal__close {
	display: grid !important;
	place-items: center !important;
	flex: 0 0 44px;
	width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(210, 161, 91, .28) !important;
	border-radius: 999px !important;
	background: #f3e4cc !important;
	color: #6e522d !important;
	font-family: Arial, sans-serif !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.dltf-places-modal__search {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin: 12px 16px 0;
	padding: 0 14px;
	border: 1px solid #d8b06f;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.dltf-places-modal__search:focus-within {
	border-color: #c89445;
	box-shadow: 0 0 0 3px rgba(200, 148, 69, .10);
}

.dltf-places-modal__search-icon {
	color: #7f8793;
}

.dltf-places-modal__search-icon svg {
	display: block;
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.7;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dltf-places-modal__input {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 56px !important;
	min-height: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #16181c !important;
	font: inherit !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	box-shadow: none !important;
	outline: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.dltf-places-modal__input:focus,
.dltf-places-modal__input:focus-visible {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.dltf-places-modal__input::placeholder {
	color: #8a9099;
}

.dltf-places-modal__clear {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 2px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #a56f23 !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.dltf-places-modal__clear:focus,
.dltf-places-modal__clear:focus-visible,
.dltf-places-modal__clear:active {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.dltf-places-modal__clear[hidden] {
	display: none !important;
}

.dltf-places-modal__results {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	max-height: none;
	margin: 14px 0 0;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	backdrop-filter: none;
}

.dltf-places-modal__results .dltf-places__option {
	padding-left: 16px;
	padding-right: 16px;
	border-bottom-color: rgba(17, 24, 39, .08) !important;
	color: #16181c !important;
}

.dltf-places-modal__results .dltf-places__option:hover,
.dltf-places-modal__results .dltf-places__option:focus,
.dltf-places-modal__results .dltf-places__option.is-active {
	background: rgba(210, 161, 91, .10) !important;
}

.dltf-places-modal__results .dltf-places__option-icon {
	color: #8c6428;
}

.dltf-places-modal__results .dltf-places__option-body strong {
	color: #16181c;
}

.dltf-places-modal__results .dltf-places__option-body span {
	color: #6f7680;
}

.dltf-places-modal__results .dltf-places__message {
	padding: 16px;
	color: #6f7680;
}

.dltf-places-modal__results .dltf-places__attribution {
	padding-right: 16px;
	padding-left: 16px;
	border-top-color: rgba(17, 24, 39, .08);
	color: rgba(17, 24, 39, .48);
	background: #ffffff;
}

@media (min-width: 681px) {
	.dltf-places-modal {
		display: none !important;
	}
}


@media (min-width: 681px) {
	.dltf-places {
		padding: 4px 0 0;
	}

	.dltf-places__option:first-child {
		border-top-left-radius: 14px !important;
		border-top-right-radius: 14px !important;
	}

	.dltf-places__attribution {
		border-bottom-left-radius: 14px;
		border-bottom-right-radius: 14px;
	}
}


/* Desktop/full-form light Places dropdown. Keep this more specific than theme/global button styles. */
@media (min-width: 681px) {
	.dltf .dltf-place-host > .dltf-places:not([hidden]) {
		background: #ffffff !important;
		color: #16181c !important;
		border: 1px solid rgba(17, 24, 39, .10) !important;
		border-radius: 15px !important;
		box-shadow: 0 18px 48px rgba(15, 23, 42, .14) !important;
		background-image: none !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__option {
		background: #ffffff !important;
		color: #16181c !important;
		border-bottom: 1px solid rgba(17, 24, 39, .08) !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__option:hover,
	.dltf .dltf-place-host > .dltf-places .dltf-places__option:focus,
	.dltf .dltf-place-host > .dltf-places .dltf-places__option.is-active {
		background: #f7f3ed !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__option-body strong {
		color: #16181c !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__option-body span {
		color: #6f7680 !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__option-icon {
		color: #9a6d28 !important;
	}

	.dltf .dltf-place-host > .dltf-places .dltf-places__attribution {
		background: #ffffff !important;
		border-top: 1px solid rgba(17, 24, 39, .08) !important;
	}
}
