/* stylelint-disable no-descending-specificity -- Required modal overrides. */

:root {
	--sdl-accent: var(--wd-primary-color, #0f766e);
	--sdl-accent-strong: #0b5f59;
	--sdl-accent-soft: #ecfdf8;
	--sdl-ink: #17252f;
	--sdl-muted: #64727d;
	--sdl-line: #dbe4e8;
	--sdl-surface: #fff;
	--sdl-danger: #b42318;
	--sdl-warning: #a15c07;
	--sdl-shadow: 0 18px 50px rgb(20 43 54 / 10%);
}

.sdl-widget {
	position: relative;
	box-sizing: border-box;
	margin: 24px 0;
	padding: clamp(18px, 3vw, 30px);
	border: 1px solid var(--sdl-line);
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0, rgb(15 118 110 / 9%), transparent 32%),
		var(--sdl-surface);
	box-shadow: var(--sdl-shadow);
	color: var(--sdl-ink);
}

.sdl-widget--checkout {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sdl-widget--checkout:not(.is-open) > .sdl-widget__heading,
.sdl-widget--checkout:not(.is-open) > .sdl-alert {
	display: none;
}

.sdl-checkout-launcher {
	display: block;
	width: auto;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sdl-widget .sdl-location-launcher,
.sdl-checkout-launcher .sdl-location-launcher {
	display: inline-flex;
	position: relative;
	align-items: center;
	gap: 9px;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sdl-accent-strong);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: start;
	text-decoration: none;
	text-transform: none;
	appearance: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.18s ease, transform 0.18s ease;
}

.sdl-location-launcher__icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sdl-accent), #a855f7);
	box-shadow: 0 7px 18px rgb(124 58 237 / 24%);
	color: #fff;
	pointer-events: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sdl-location-launcher__icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.sdl-location-launcher__label {
	position: relative;
	pointer-events: none;
}

.sdl-location-launcher__label::after {
	position: absolute;
	right: 0;
	bottom: -3px;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: currentcolor;
	content: "";
	opacity: 0.32;
	transform: scaleX(0.55);
	transform-origin: left center;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.sdl-widget .sdl-location-launcher:hover,
.sdl-widget .sdl-location-launcher:focus-visible,
.sdl-checkout-launcher .sdl-location-launcher:hover,
.sdl-checkout-launcher .sdl-location-launcher:focus-visible {
	color: var(--sdl-accent);
	box-shadow: none;
	outline: 2px solid currentcolor;
	outline-offset: 4px;
}

.sdl-location-launcher:hover .sdl-location-launcher__icon,
.sdl-location-launcher:focus-visible .sdl-location-launcher__icon {
	box-shadow: 0 9px 22px rgb(124 58 237 / 32%);
	transform: translateY(-1px) scale(1.04);
}

.sdl-location-launcher:hover .sdl-location-launcher__label::after,
.sdl-location-launcher:focus-visible .sdl-location-launcher__label::after {
	opacity: 0.7;
	transform: scaleX(1);
}

.sdl-widget--checkout.is-confirmed .sdl-location-launcher {
	color: #116047;
}

.sdl-widget *,
.sdl-widget *::before,
.sdl-widget *::after,
.sdl-checkout-modal *,
.sdl-checkout-modal *::before,
.sdl-checkout-modal *::after {
	box-sizing: border-box;
}

.sdl-widget [hidden],
.sdl-checkout-modal [hidden] {
	display: none !important;
}

.sdl-checkout-modal:not(.is-open) {
	display: none !important;
}

.sdl-checkout-modal .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sdl-widget__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.sdl-widget__heading h3 {
	margin: 2px 0 5px;
	color: var(--sdl-ink);
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.25;
}

.sdl-widget__heading p {
	max-width: 720px;
	margin: 0;
	color: var(--sdl-muted);
	font-size: 14px;
	line-height: 1.65;
}

.sdl-widget__eyebrow {
	display: block;
	color: var(--sdl-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.sdl-widget__optional {
	flex: 0 0 auto;
	padding: 6px 10px;
	border: 1px solid var(--sdl-line);
	border-radius: 999px;
	background: #f7fafb;
	color: var(--sdl-muted);
	font-size: 12px;
	font-weight: 700;
}

.sdl-widget .sdl-widget__close,
.sdl-checkout-modal .sdl-widget__close {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--sdl-line);
	border-radius: 50%;
	background: #fff;
	color: var(--sdl-ink);
	font-size: 22px;
	line-height: 1;
}

body.sdl-location-modal-open {
	overflow: hidden;
}

.sdl-widget.is-open {
	position: fixed;
	z-index: 2147483000;
	inset: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #f4f8f8;
	box-shadow: none;
	overscroll-behavior: contain;
}

.sdl-widget.is-open > .sdl-checkout-launcher,
.sdl-widget.is-open > .sdl-widget__actions,
.sdl-widget.is-open > .sdl-permission-note,
.sdl-widget.is-open > .sdl-saved:not(.sdl-saved--modal) {
	display: none;
}

.sdl-widget.is-open > .sdl-widget__heading {
	position: relative;
	z-index: 40;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 3vw, 34px) 12px;
	border-bottom: 1px solid var(--sdl-line);
	background: rgb(255 255 255 / 97%);
	box-shadow: 0 4px 18px rgb(20 43 54 / 7%);
	backdrop-filter: blur(12px);
}

.sdl-widget.is-open > .sdl-widget__heading > div {
	flex: 1 1 auto;
	min-width: 0;
}

.sdl-widget.is-open > .sdl-widget__heading h3 {
	margin: 0;
	font-size: clamp(18px, 2vw, 23px);
}

.sdl-widget.is-open > .sdl-widget__heading p {
	font-size: 12px;
}

.sdl-widget.is-open .sdl-widget__close {
	display: inline-flex;
}

.sdl-widget.is-open > .sdl-alert {
	flex: 0 0 auto;
	margin: 10px clamp(16px, 3vw, 34px) 0;
}

.sdl-widget.is-open .sdl-panel {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	margin: 0;
	padding: 14px clamp(16px, 3vw, 34px) 0;
	overflow: hidden;
	border: 0;
}

.sdl-panel__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
	flex: 1 1 auto;
	gap: clamp(16px, 2vw, 28px);
	min-height: 0;
}

.sdl-widget--checkout.is-open .sdl-panel__layout {
	grid-template-columns: minmax(0, 1fr);
}

.sdl-checkout-location-data {
	display: none !important;
}

.sdl-panel__map-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.sdl-panel__details-column {
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 18px;
	border: 1px solid var(--sdl-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgb(20 43 54 / 7%);
	overscroll-behavior: contain;
}

.sdl-panel__details-column .sdl-form-grid {
	grid-template-columns: 1fr;
}

.sdl-panel__details-column .sdl-form-grid__wide {
	grid-column: auto;
}

.sdl-widget.is-open .sdl-map {
	flex: 1 1 auto;
	height: auto;
	min-height: 330px;
	border-radius: 16px;
}

.sdl-widget.is-open .sdl-panel__footer {
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}

.sdl-widget.is-open .sdl-panel__footer .sdl-button {
	min-width: 180px;
}

.sdl-alert {
	margin: 14px 0;
	padding: 11px 14px;
	border-inline-start: 4px solid #547180;
	border-radius: 10px;
	background: #f3f7f9;
	color: #304752;
	font-size: 14px;
	line-height: 1.5;
}

.sdl-alert.is-success {
	border-color: #168160;
	background: #ebfaf4;
	color: #116047;
}

.sdl-alert.is-warning {
	border-color: #e39324;
	background: #fff8e8;
	color: #7b4b09;
}

.sdl-alert.is-error {
	border-color: #d64545;
	background: #fff0f0;
	color: #8d2424;
}

.sdl-widget__actions,
.sdl-panel__footer,
.sdl-location-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sdl-permission-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 2px 0;
	color: var(--sdl-muted);
	font-size: 12px;
	line-height: 1.5;
}

.sdl-permission-note > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sdl-accent-soft);
	color: var(--sdl-accent-strong);
	font-size: 11px;
	font-weight: 900;
}

.sdl-widget .sdl-button,
.sdl-checkout-modal .sdl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--sdl-line);
	border-radius: 11px;
	background: #fff;
	box-shadow: none;
	color: var(--sdl-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sdl-widget .sdl-button:hover,
.sdl-widget .sdl-button:focus-visible,
.sdl-checkout-modal .sdl-button:hover,
.sdl-checkout-modal .sdl-button:focus-visible {
	border-color: var(--sdl-accent);
	box-shadow: 0 6px 18px rgb(15 118 110 / 14%);
	transform: translateY(-1px);
}

.sdl-widget .sdl-button--primary,
.sdl-widget .sdl-button--primary:hover,
.sdl-widget .sdl-button--primary:focus-visible,
.sdl-checkout-modal .sdl-button--primary,
.sdl-checkout-modal .sdl-button--primary:hover,
.sdl-checkout-modal .sdl-button--primary:focus-visible {
	border-color: var(--sdl-accent);
	background: var(--sdl-accent);
	color: #fff;
}

.sdl-widget .sdl-button--link {
	border-color: transparent;
	background: transparent;
	color: var(--sdl-muted);
}

.sdl-widget .sdl-button--small,
.sdl-checkout-modal .sdl-button--small {
	min-height: 36px;
	padding: 7px 11px;
	font-size: 12px;
}

.sdl-widget .sdl-button--danger {
	border-color: transparent;
	background: transparent;
	color: var(--sdl-danger);
}

.sdl-widget.is-busy::after,
.sdl-checkout-modal.is-busy::after {
	position: absolute;
	z-index: 20;
	inset: 0;
	border-radius: inherit;
	background: rgb(255 255 255 / 55%);
	content: "";
	cursor: progress;
}

.sdl-saved {
	margin: 18px 0;
}

.sdl-saved__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.sdl-saved__title {
	margin: 0;
	color: var(--sdl-ink);
	font-size: 14px;
	font-weight: 800;
}

.sdl-saved--modal {
	flex: 0 0 auto;
	margin: 0 0 12px;
}

.sdl-saved--modal .sdl-saved__grid {
	display: flex;
	gap: 10px;
	padding: 2px 2px 7px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.sdl-saved--modal .sdl-location-card {
	flex: 0 0 clamp(230px, 24vw, 310px);
	padding: 12px;
	scroll-snap-align: start;
}

.sdl-saved--modal .sdl-location-card__address {
	min-height: 38px;
	margin: 6px 0 9px;
}

.sdl-saved--modal .sdl-location-card__actions .sdl-button {
	width: 100%;
}

.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card {
	flex-basis: clamp(190px, 22vw, 270px);
	padding: 10px 12px;
}

.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card__address {
	min-height: 0;
	margin: 4px 0 7px;
	-webkit-line-clamp: 1;
}

.sdl-saved--modal .sdl-empty {
	margin-bottom: 0;
}

.sdl-saved__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sdl-location-card {
	position: relative;
	min-width: 0;
	padding: 15px;
	border: 1px solid var(--sdl-line);
	border-radius: 14px;
	background: rgb(255 255 255 / 88%);
}

.sdl-location-card.is-default {
	border-color: rgb(15 118 110 / 45%);
	background: linear-gradient(145deg, #fff, var(--sdl-accent-soft));
}

.sdl-location-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.sdl-location-card__address {
	display: -webkit-box;
	overflow: hidden;
	min-height: 42px;
	margin: 8px 0 12px;
	color: var(--sdl-muted);
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sdl-location-card__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px;
}

.sdl-badge {
	display: inline-flex;
	padding: 4px 7px;
	border-radius: 999px;
	background: #eef3f5;
	color: #52636c;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.25;
}

.sdl-badge.is-default,
.sdl-badge.is-verified {
	background: #ddf7ec;
	color: #0c684c;
}

.sdl-badge.is-recent {
	background: #fff2d8;
	color: #85530d;
}

.sdl-panel {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--sdl-line);
	animation: sdl-panel-in 0.22s ease-out both;
}

.sdl-location-status {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	margin-bottom: 14px;
	padding: 13px;
	border: 1px solid #c9dbe1;
	border-radius: 13px;
	background: #f5f9fa;
}

.sdl-location-status[hidden] {
	display: none;
}

.sdl-location-status__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e3eef1;
	color: #3b6473;
	font-size: 18px;
	font-weight: 900;
}

.sdl-location-status__copy strong,
.sdl-location-status__copy p {
	display: block;
	margin: 0;
}

.sdl-location-status__copy strong {
	color: var(--sdl-ink);
	font-size: 14px;
}

.sdl-location-status__copy p {
	margin-top: 2px;
	color: var(--sdl-muted);
	font-size: 12px;
	line-height: 1.5;
}

.sdl-location-status.is-loading .sdl-location-status__icon {
	border: 3px solid #c7dce1;
	border-top-color: var(--sdl-accent);
	background: transparent;
	color: transparent;
	animation: sdl-status-spin 0.8s linear infinite;
}

.sdl-location-status.is-success {
	border-color: rgb(22 129 96 / 28%);
	background: #ebfaf4;
}

.sdl-location-status.is-success .sdl-location-status__icon {
	background: #d1f2e4;
	color: #116047;
}

.sdl-location-status.is-error {
	border-color: rgb(214 69 69 / 28%);
	background: #fff2f2;
}

.sdl-location-status.is-error .sdl-location-status__icon {
	background: #ffe0e0;
	color: #a52b2b;
}

@keyframes sdl-status-spin {

	to {
		transform: rotate(360deg);
	}
}

@keyframes sdl-panel-in {

	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sdl-search {
	position: relative;
	z-index: 5;
	margin-bottom: 12px;
}

.sdl-search gmp-place-autocomplete,
.sdl-search .sdl-search-input {
	display: block;
	width: 100%;
	min-height: 50px;
	border: 1px solid #cdd9de;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 18px rgb(24 47 58 / 8%);
	font: inherit;
}

.sdl-map {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(290px, 42vw, 430px);
	overflow: hidden;
	border: 1px solid var(--sdl-line);
	border-radius: 16px;
	background:
		linear-gradient(45deg, #eef4f3 25%, transparent 25%),
		linear-gradient(-45deg, #eef4f3 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #eef4f3 75%),
		linear-gradient(-45deg, transparent 75%, #eef4f3 75%),
		#f7faf9;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	background-size: 20px 20px;
	color: var(--sdl-muted);
	text-align: center;
}

.sdl-map.is-fallback {
	height: auto;
	min-height: 92px;
	padding: 20px;
	background: #f5f8f9;
}

.sdl-map-help {
	margin: 9px 2px 18px;
	color: var(--sdl-muted);
	font-size: 13px;
}

.sdl-details-heading {
	margin: 4px 0 14px;
}

.sdl-details-heading h4,
.sdl-details-heading p {
	margin: 0;
}

.sdl-details-heading h4 {
	color: var(--sdl-ink);
	font-size: 16px;
}

.sdl-details-heading p {
	margin-top: 3px;
	color: var(--sdl-muted);
	font-size: 12px;
	line-height: 1.5;
}

.sdl-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sdl-form-grid label {
	display: block;
	min-width: 0;
	margin: 0;
}

.sdl-form-grid label > span {
	display: block;
	margin-bottom: 6px;
	color: var(--sdl-ink);
	font-size: 13px;
	font-weight: 750;
}

.sdl-form-grid input:not([type="file"]),
.sdl-form-grid select,
.sdl-form-grid textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cdd9de;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--sdl-ink);
	font: inherit;
	font-size: 14px;
}

.sdl-form-grid textarea {
	min-height: 80px;
	resize: vertical;
}

.sdl-form-grid input:focus,
.sdl-form-grid select:focus,
.sdl-form-grid textarea:focus {
	border-color: var(--sdl-accent);
	box-shadow: 0 0 0 3px rgb(15 118 110 / 13%);
	outline: none;
}

.sdl-form-grid__wide {
	grid-column: 1 / -1;
}

.sdl-address-details {
	margin: 16px 0 0;
	border: 1px solid var(--sdl-line);
	border-radius: 13px;
	background: #fafcfc;
}

.sdl-address-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	cursor: pointer;
	list-style: none;
}

.sdl-address-details > summary::-webkit-details-marker {
	display: none;
}

.sdl-address-details > summary::after {
	flex: 0 0 auto;
	color: var(--sdl-accent);
	font-size: 18px;
	font-weight: 900;
	content: "+";
}

.sdl-address-details[open] > summary::after {
	content: "−";
}

.sdl-address-details > summary span,
.sdl-address-details > summary small {
	display: block;
}

.sdl-address-details > summary span {
	color: var(--sdl-ink);
	font-size: 13px;
	font-weight: 800;
}

.sdl-address-details > summary small {
	margin-inline-start: auto;
	color: var(--sdl-muted);
	font-size: 11px;
}

.sdl-address-details > .sdl-form-grid {
	padding: 0 14px 14px;
}

.sdl-form-grid--optional {
	margin-top: 14px;
}

.sdl-photo-field {
	padding: 13px;
	border: 1px dashed #b9c9ce;
	border-radius: 12px;
	background: #f8fbfb;
}

.sdl-widget .sdl-photo-field small {
	display: block;
	margin-top: 5px;
	color: var(--sdl-muted);
}

.sdl-default-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	color: var(--sdl-ink);
	font-size: 14px;
	font-weight: 650;
}

.sdl-widget .sdl-default-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sdl-accent);
}

.sdl-summary {
	margin: 17px 0;
	padding: 15px;
	border: 1px solid rgb(15 118 110 / 25%);
	border-radius: 13px;
	background: var(--sdl-accent-soft);
}

.sdl-summary__title {
	display: block;
	margin-bottom: 5px;
}

.sdl-summary__address {
	margin: 0 0 10px;
	color: #496068;
	font-size: 13px;
	line-height: 1.6;
}

.sdl-confidence {
	display: inline-flex;
	padding: 5px 8px;
	border-radius: 999px;
	background: #e9eef0;
	color: #455a64;
	font-size: 11px;
	font-weight: 800;
}

.sdl-confidence.is-high {
	background: #d7f5e8;
	color: #0a6247;
}

.sdl-confidence.is-medium {
	background: #fff0cc;
	color: #815209;
}

.sdl-confidence.is-low {
	background: #ffe1df;
	color: #952b24;
}

.sdl-summary__warning {
	margin: 10px 0 0;
	color: var(--sdl-warning);
	font-size: 12px;
	font-weight: 650;
}

.sdl-empty {
	margin: 0 0 16px;
	padding: 13px;
	border-radius: 11px;
	background: #f4f7f8;
	color: var(--sdl-muted);
}

.sdl-account-intro {
	margin-bottom: 18px;
}

.sdl-account-intro h2 {
	margin-bottom: 6px;
}

.sdl-account-intro p {
	color: var(--sdl-muted);
}

.sdl-editor-preview {
	padding: 18px;
	border: 1px dashed #9dafb7;
	border-radius: 12px;
	background: #f7fafb;
}

[dir="rtl"] .sdl-widget {
	text-align: right;
}

[dir="rtl"] .sdl-widget__eyebrow {
	letter-spacing: 0;
}

[dir="rtl"] .sdl-widget__close > span {
	display: inline-block;
	transform: rotate(180deg);
}

@media (max-width: 767px) {

	body.sdl-location-modal-open {
		overflow: hidden;
	}

	.sdl-widget {
		margin: 18px 0;
		padding: 16px;
		border-radius: 16px;
	}

	.sdl-widget--checkout:not(.is-open) {
		margin: 0 0 18px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.sdl-widget.is-open {
		position: fixed;
		z-index: 2147483000;
		inset: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		margin: 0;
		padding: 0 16px;
		overflow-x: hidden;
		overflow-y: auto;
		border: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: none;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.sdl-widget__heading {
		gap: 10px;
	}

	.sdl-widget.is-open > .sdl-widget__heading {
		position: sticky;
		z-index: 30;
		top: 0;
		align-items: center;
		margin: 0 -16px 12px;
		padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
		border-bottom: 1px solid var(--sdl-line);
		background: rgb(255 255 255 / 96%);
		box-shadow: 0 4px 16px rgb(20 43 54 / 7%);
		backdrop-filter: blur(10px);
	}

	.sdl-widget.is-open > .sdl-widget__heading > div {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sdl-widget.is-open > .sdl-widget__heading h3 {
		margin: 0;
		font-size: 18px;
	}

	.sdl-widget__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.sdl-widget.is-open > .sdl-widget__heading p,
	.sdl-widget.is-open > .sdl-widget__heading .sdl-widget__eyebrow,
	.sdl-widget.is-open > .sdl-widget__heading .sdl-widget__optional,
	.sdl-widget.is-open > .sdl-widget__actions,
	.sdl-widget.is-open > .sdl-permission-note,
	.sdl-widget.is-open > .sdl-saved {
		display: none;
	}

	.sdl-widget.is-open .sdl-widget__close {
		display: inline-flex;
	}

	.sdl-widget.is-open .sdl-panel {
		display: block;
		flex: none;
		margin-top: 0;
		padding: 0;
		overflow: visible;
		border-top: 0;
	}

	.sdl-widget.is-open .sdl-panel__layout {
		display: block;
		min-height: auto;
	}

	.sdl-widget.is-open .sdl-panel__map-column {
		display: block;
		min-height: auto;
	}

	.sdl-widget.is-open .sdl-panel__details-column {
		margin-top: 14px;
		padding: 14px;
		overflow: visible;
		border-radius: 14px;
	}

	.sdl-saved--modal {
		margin: 0 0 10px;
	}

	.sdl-saved--modal .sdl-saved__heading {
		position: relative;
	}

	.sdl-saved--modal .sdl-button--add {
		width: auto;
		min-height: 38px;
	}

	.sdl-saved--modal .sdl-saved__grid {
		display: flex;
	}

	.sdl-saved--modal .sdl-location-card {
		flex-basis: min(78vw, 300px);
	}

	.sdl-widget .sdl-button {
		width: 100%;
		min-height: 48px;
	}

	.sdl-saved__grid,
	.sdl-form-grid {
		grid-template-columns: 1fr;
	}

	.sdl-form-grid__wide {
		grid-column: auto;
	}

	.sdl-location-card__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sdl-location-card__actions .sdl-button {
		min-height: 40px;
	}

	.sdl-map {
		height: 320px;
		border-radius: 13px;
	}

	.sdl-widget.is-open .sdl-map {
		flex: none;
		height: clamp(300px, 46dvh, 440px);
		min-height: 300px;
	}

	.sdl-location-status {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.sdl-location-status > .sdl-button {
		grid-column: 1 / -1;
	}

	.sdl-address-details > summary {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.sdl-address-details > summary small {
		width: calc(100% - 30px);
		margin-inline-start: 0;
	}

	.sdl-panel__footer {
		display: grid;
		grid-template-columns: 1fr;
	}

	.sdl-widget.is-open .sdl-panel__footer {
		position: sticky;
		z-index: 25;
		bottom: 0;
		margin: 18px -16px 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--sdl-line);
		background: rgb(255 255 255 / 96%);
		box-shadow: 0 -8px 24px rgb(20 43 54 / 9%);
		backdrop-filter: blur(10px);
	}

	.sdl-widget--checkout.is-open {
		display: flex;
		padding: 0;
		overflow: hidden;
		background: #f4f8f8;
	}

	.sdl-widget--checkout.is-open > .sdl-widget__heading {
		position: relative;
		margin: 0;
	}

	.sdl-widget--checkout.is-open > .sdl-alert {
		margin: 8px 12px 0;
	}

	.sdl-widget--checkout.is-open .sdl-panel {
		display: flex;
		flex: 1 1 auto;
		min-height: 0;
		padding: 10px 12px 0;
		overflow: hidden;
	}

	.sdl-widget--checkout.is-open .sdl-panel__layout,
	.sdl-widget--checkout.is-open .sdl-panel__map-column {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal {
		flex: 0 0 auto;
		max-height: 138px;
		margin-bottom: 8px;
		overflow: hidden;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-saved__heading {
		margin-bottom: 5px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-saved__title {
		font-size: 12px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-saved__grid {
		padding-bottom: 3px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card {
		flex-basis: min(66vw, 230px);
		padding: 8px 10px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card__top {
		font-size: 12px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card__address {
		display: none;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card__actions {
		display: block;
		margin-top: 5px;
	}

	.sdl-widget--checkout.is-open .sdl-saved--modal .sdl-location-card__actions .sdl-button {
		min-height: 34px;
		padding: 6px 9px;
		font-size: 11px;
	}

	.sdl-widget--checkout.is-open .sdl-location-status {
		flex: 0 0 auto;
		margin-bottom: 8px;
		padding: 9px;
	}

	.sdl-widget--checkout.is-open .sdl-search {
		flex: 0 0 auto;
		margin-bottom: 8px;
	}

	.sdl-widget--checkout.is-open .sdl-map {
		flex: 1 1 auto;
		height: auto;
		min-height: 190px;
	}

	.sdl-widget--checkout.is-open .sdl-map-help {
		flex: 0 0 auto;
		margin: 6px 2px 0;
		font-size: 11px;
	}

	.sdl-widget--checkout.is-open .sdl-panel__footer {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		margin: 0 -12px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	}

	.sdl-widget--checkout.is-open .sdl-panel__footer .sdl-button {
		width: auto;
		min-width: 0;
		min-height: 46px;
	}
}

/* The checkout chooser is a true map-first overlay. These final rules protect
 * it from transformed WoodMart checkout and sticky mobile containers. */
.sdl-checkout-launcher .sdl-location-launcher {
	display: inline-flex !important;
	position: relative !important;
	align-items: center !important;
	gap: 9px !important;
	width: auto !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 2px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--sdl-accent-strong) !important;
	font: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	text-align: start !important;
	text-decoration: none !important;
	text-transform: none !important;
	appearance: none !important;
	cursor: pointer !important;
	touch-action: manipulation !important;
	-webkit-tap-highlight-color: transparent !important;
}

.sdl-checkout-launcher .sdl-location-launcher__icon {
	display: inline-grid !important;
	place-items: center !important;
	flex: 0 0 32px !important;
	width: 32px !important;
	height: 32px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, var(--sdl-accent), #a855f7) !important;
	box-shadow: 0 7px 18px rgb(124 58 237 / 24%) !important;
	color: #fff !important;
	pointer-events: none !important;
}

.sdl-checkout-launcher .sdl-location-launcher__icon svg {
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	fill: none !important;
	stroke: currentcolor !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	stroke-width: 1.9 !important;
}

.sdl-checkout-launcher,
.sdl-checkout-launcher::before,
.sdl-checkout-launcher::after {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.sdl-widget--checkout.is-portal-ready:not(.is-open) {
	display: none !important;
}

.sdl-widget--checkout.is-open {
	position: fixed !important;
	z-index: 2147483647 !important;
	inset: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: none !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #eef3f4 !important;
	box-shadow: none !important;
	contain: none !important;
	transform: none !important;
}

.sdl-widget--checkout.is-open > .sdl-widget__heading {
	position: relative !important;
	z-index: 200 !important;
	display: flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: calc(8px + env(safe-area-inset-top)) 12px 8px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--sdl-line) !important;
	background: rgb(255 255 255 / 97%) !important;
	box-shadow: 0 4px 16px rgb(20 43 54 / 8%) !important;
}

.sdl-widget--checkout.is-open > .sdl-widget__heading > div {
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.sdl-widget--checkout.is-open > .sdl-widget__heading h3 {
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1.25 !important;
}

.sdl-widget--checkout.is-open > .sdl-widget__heading p,
.sdl-widget--checkout.is-open > .sdl-widget__heading .sdl-widget__eyebrow,
.sdl-widget--checkout.is-open > .sdl-widget__heading .sdl-widget__optional {
	display: none !important;
}

.sdl-widget--checkout.is-open .sdl-widget__close {
	display: inline-flex !important;
	flex: 0 0 42px !important;
	width: 42px !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--sdl-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
}

.sdl-widget--checkout.is-open > .sdl-alert {
	position: absolute !important;
	z-index: 190 !important;
	top: calc(66px + env(safe-area-inset-top)) !important;
	right: 12px !important;
	left: 12px !important;
	margin: 0 !important;
}

.sdl-widget--checkout.is-open .sdl-panel {
	position: relative !important;
	display: flex !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	background: #eef3f4 !important;
}

.sdl-widget--checkout.is-open .sdl-panel__layout,
.sdl-widget--checkout.is-open .sdl-panel__map-column {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sdl-widget--checkout.is-open .sdl-map {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.sdl-widget--checkout.is-open .sdl-search {
	position: absolute !important;
	z-index: 150 !important;
	top: 12px !important;
	right: 12px !important;
	left: 12px !important;
	margin: 0 !important;
}

.sdl-widget--checkout.is-open .sdl-location-status {
	position: absolute !important;
	z-index: 145 !important;
	top: 76px !important;
	right: 12px !important;
	left: 12px !important;
	margin: 0 !important;
	box-shadow: 0 8px 22px rgb(20 43 54 / 12%) !important;
}

.sdl-widget--checkout.is-open .sdl-location-status.is-loading,
.sdl-widget--checkout.is-open .sdl-location-status.is-success {
	display: none !important;
}

.sdl-widget--checkout.is-open .sdl-map.is-loading {
	display: grid !important;
	place-items: center !important;
	background: linear-gradient(135deg, #e7eef1, #f6f8f9, #e7eef1) !important;
	color: var(--sdl-muted) !important;
	font-weight: 700 !important;
}

.sdl-widget--checkout.is-open .sdl-saved--modal {
	display: none !important;
}

.sdl-widget--checkout.is-open .sdl-map-help {
	display: none !important;
}

.sdl-widget--checkout.is-open .sdl-panel__footer {
	position: absolute !important;
	z-index: 170 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: flex !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
	border: 0 !important;
	background: linear-gradient(0deg, rgb(255 255 255 / 98%), rgb(255 255 255 / 86%)) !important;
	box-shadow: 0 -8px 22px rgb(20 43 54 / 8%) !important;
}

.sdl-widget--checkout.is-open .sdl-panel__footer .sdl-button {
	width: min(100%, 520px) !important;
	min-width: 0 !important;
	min-height: 50px !important;
	margin: 0 !important;
}

@media (max-width: 767px) and (orientation: landscape) {

	.sdl-widget.is-open .sdl-map {
		height: 62dvh;
	}
}

/* stylelint-enable no-descending-specificity */

@media (prefers-reduced-motion: reduce) {

	.sdl-widget *,
	.sdl-widget *::before,
	.sdl-widget *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
