:root {
	--aodson-shop-contact-navy: #12243b;
	--aodson-shop-contact-teal: #426f70;
	--aodson-shop-contact-green: #1fa463;
}

body.aodson-shop-wa-open {
	overflow: hidden;
}

.aodson-shop-wa-trigger {
	position: fixed;
	z-index: 99980;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 7px 15px 7px 7px;
	border: 1px solid rgba(18, 36, 59, 0.13);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(18, 36, 59, 0.18);
	color: var(--aodson-shop-contact-navy);
	font-family: inherit;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.aodson-shop-wa-trigger:hover,
.aodson-shop-wa-trigger:focus-visible {
	color: var(--aodson-shop-contact-navy);
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(18, 36, 59, 0.24);
}

.aodson-shop-wa-trigger.is-footer-visible {
	pointer-events: none;
	opacity: 0;
	transform: translateY(10px);
}

.aodson-shop-wa-trigger:focus-visible,
.aodson-shop-wa-modal button:focus-visible,
.aodson-shop-wa-modal a:focus-visible {
	outline: 3px solid rgba(66, 111, 112, 0.35);
	outline-offset: 3px;
}

.aodson-shop-wa-trigger__icon {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	border-radius: 4px;
	background: var(--aodson-shop-contact-green);
}

.aodson-shop-wa-trigger__icon svg {
	width: 25px;
	height: 25px;
	fill: #fff;
}

.aodson-shop-wa-trigger__copy {
	display: grid;
	line-height: 1.15;
}

.aodson-shop-wa-trigger__copy strong {
	color: var(--aodson-shop-contact-navy);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

.aodson-shop-wa-trigger__copy small {
	margin-top: 3px;
	color: #667383;
	font-size: 11px;
	letter-spacing: 0;
}

.aodson-shop-wa-modal[hidden] {
	display: none;
}

.aodson-shop-wa-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	padding: 24px;
	place-items: center;
}

.aodson-shop-wa-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 20, 34, 0.64);
	opacity: 0;
	backdrop-filter: blur(5px);
	transition: opacity 180ms ease;
}

.aodson-shop-wa-modal__panel {
	position: relative;
	width: min(430px, 100%);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	padding: 34px;
	border-top: 4px solid var(--aodson-shop-contact-teal);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(7, 22, 37, 0.28);
	color: var(--aodson-shop-contact-navy);
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 180ms ease, transform 180ms ease;
}

.aodson-shop-wa-modal.is-open .aodson-shop-wa-modal__backdrop {
	opacity: 1;
}

.aodson-shop-wa-modal.is-open .aodson-shop-wa-modal__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.aodson-shop-wa-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	border: 1px solid #dce3e9;
	border-radius: 4px;
	background: #fff !important;
	color: #516172 !important;
	font: 400 26px/1 Arial, sans-serif;
	cursor: pointer;
}

.aodson-shop-wa-modal__close:hover {
	border-color: #b9c6d1;
	background: #f5f7f9 !important;
	color: var(--aodson-shop-contact-navy) !important;
}

.aodson-shop-wa-modal__eyebrow {
	margin: 0 44px 8px 0;
	color: var(--aodson-shop-contact-teal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.aodson-shop-wa-modal h2 {
	margin: 0 44px 10px 0;
	color: var(--aodson-shop-contact-navy);
	font-size: 30px;
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1.12;
}

.aodson-shop-wa-modal__panel > p:not(.aodson-shop-wa-modal__eyebrow) {
	margin: 0 0 18px;
	color: #647181;
	font-size: 14px;
	line-height: 1.6;
}

.aodson-shop-wa-modal__qr {
	width: min(280px, 100%);
	margin: 0 auto 14px;
	padding: 10px;
	border: 1px solid #dce3e9;
	background: #fff;
}

.aodson-shop-wa-modal__qr img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.aodson-shop-wa-modal__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 12px 0;
	border-top: 1px solid #e5eaee;
	border-bottom: 1px solid #e5eaee;
	color: #687584;
	font-size: 13px;
}

.aodson-shop-wa-modal__meta strong {
	color: var(--aodson-shop-contact-navy);
	font-size: 13px;
	white-space: nowrap;
}

.aodson-shop-wa-modal__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 11px 18px;
	border-radius: 4px;
	background: var(--aodson-shop-contact-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 180ms ease;
}

.aodson-shop-wa-modal__continue:hover {
	background: var(--aodson-shop-contact-teal);
	color: #fff;
}

@media (max-width: 1023px), (pointer: coarse) {
	.aodson-shop-wa-trigger {
		right: max(14px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));
		min-height: 50px;
		padding: 5px;
		border-radius: 5px;
	}

	.aodson-shop-wa-trigger__icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.aodson-shop-wa-trigger__copy {
		display: none;
	}
}

@media (max-width: 600px) {
	.aodson-shop-wa-modal {
		padding: 16px;
	}

	.aodson-shop-wa-modal__panel {
		max-height: calc(100dvh - 32px);
		padding: 28px 22px 22px;
	}

	.aodson-shop-wa-modal h2 {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aodson-shop-wa-trigger,
	.aodson-shop-wa-modal__backdrop,
	.aodson-shop-wa-modal__panel {
		transition: none;
	}
}
