/* ==================================================================
   Colors — overridden inline per-site via wp_add_inline_style from
   the admin Settings page. These are just safe fallbacks.
   ================================================================== */
:root {
	--ma-exit-accent: #0f5a4a;
	--ma-exit-accent-text: #ffffff;
}

/* ==================================================================
   Persistent floating button
   ================================================================== */
.ma-exit-fab {
	position: fixed;
	z-index: 99990;
	background: var(--ma-exit-accent);
	color: var(--ma-exit-accent-text);
	border: 0;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ma-exit-fab:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26); }

/* Bottom corners — floating rounded pill, offset from the edges */
.ma-exit-fab--bottom-right {
	bottom: 20px;
	right: 20px;
	border-radius: 999px;
}
.ma-exit-fab--bottom-left {
	bottom: 20px;
	left: 20px;
	border-radius: 999px;
}
.ma-exit-fab--bottom-right:hover,
.ma-exit-fab--bottom-left:hover { transform: translateY(-2px); }

/* Middle edges — flush "side tab" style, rounded only on the outward corners */
.ma-exit-fab--middle-right {
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	border-radius: 12px 0 0 12px;
	padding: 14px 20px;
}
.ma-exit-fab--middle-left {
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	border-radius: 0 12px 12px 0;
	padding: 14px 20px;
}
.ma-exit-fab--middle-right:hover,
.ma-exit-fab--middle-left:hover { transform: translateY(-50%) scale(1.04); }

@media (max-width: 480px) {
	.ma-exit-fab { padding: 12px 18px; font-size: 14px; }
	.ma-exit-fab--bottom-right,
	.ma-exit-fab--bottom-left { bottom: 14px; padding: 12px 18px; }
	.ma-exit-fab--bottom-right { right: 14px; }
	.ma-exit-fab--bottom-left  { left: 14px; }
	.ma-exit-fab--middle-right,
	.ma-exit-fab--middle-left { padding: 11px 14px; font-size: 13px; }
}

/* ==================================================================
   Popup shell — shared by both the simple-donate and quick-order modals
   ================================================================== */

.ma-exit {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ma-exit.is-open { display: flex; }

html.ma-exit-lock,
html.ma-exit-lock body { overflow: hidden; }

.ma-exit__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 40, 33, 0.55);
	backdrop-filter: blur(2px);
}

.ma-exit__box {
	position: relative !important;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 32px 26px 26px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	animation: ma-exit-in 0.25s ease;
	max-height: 90vh;
	overflow-y: auto;
}

@keyframes ma-exit-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

.ma-exit__x {
	position: absolute !important;
	top: 12px !important;
	left: 14px !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	color: #9aa39f;
	cursor: pointer;
}
.ma-exit__x:hover { color: #4a4a46; }

.ma-close-btn {
	position: absolute !important;
	top: 10px !important;
	left: 12px !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 0 !important;
	max-width: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 50% !important;
	font-size: 22px !important;
	line-height: 1 !important;
	font-weight: 400 !important;
	color: #9aa39f !important;
	cursor: pointer !important;
	transition: color 0.15s ease, background 0.15s ease !important;
}
.ma-close-btn:hover,
.ma-close-btn:focus {
	background: rgba(0, 0, 0, 0.05) !important;
	color: #4a4a46 !important;
	box-shadow: none !important;
	outline: none !important;
}

.ma-exit__icon { font-size: 40px; margin-bottom: 10px; }

.ma-exit__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--ma-exit-accent);
	margin: 0 0 10px;
}

.ma-exit__text {
	font-size: 15px;
	line-height: 1.85;
	color: #5c635f;
	margin: 0 0 22px;
}

.ma-exit__cta {
	display: block;
	width: 100%;
	background: var(--ma-exit-accent);
	color: var(--ma-exit-accent-text);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	padding: 14px 20px;
	border-radius: 12px;
	border: 0;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.ma-exit__cta:hover { filter: brightness(0.88); color: var(--ma-exit-accent-text); }

.ma-exit__later {
	display: inline-block;
	margin-top: 12px;
	background: transparent;
	border: 0;
	color: #9aa39f;
	font-size: 13px;
	cursor: pointer;
}
.ma-exit__later:hover { color: #5c635f; }

@media (max-width: 480px) {
	.ma-exit__box { padding: 26px 20px 22px; border-radius: 16px; }
	.ma-exit__title { font-size: 21px; }
	.ma-exit__text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.ma-exit__box { animation: none; }
}

/* ==================================================================
   Quick-order popup (item cards + amount chooser + name/phone form)
   ================================================================== */

.ma-exit__box--qo { max-width: 440px; text-align: center; }

.ma-qo__categories {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 18px 0 16px;
}

.ma-qo__cat {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: #fff !important;
	background-image: none !important;
	border: 1.5px solid #e5e5e2 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 12px !important;
	padding: 12px 16px !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: #1c1c1a !important;
	cursor: pointer !important;
	transition: border-color 0.15s ease, background 0.15s ease !important;
}
.ma-qo__cat:hover { border-color: var(--ma-exit-accent) !important; background: #fff !important; }
.ma-qo__cat.is-selected {
	border-color: var(--ma-exit-accent) !important;
	background: color-mix(in srgb, var(--ma-exit-accent) 8%, white) !important;
}

.ma-qo__cat-name {
	color: inherit !important;
	background: none !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

.ma-qo__cat-price {
	font-weight: 700 !important;
	color: var(--ma-exit-accent) !important;
	background: none !important;
	font-size: inherit !important;
}

/* ---- Amount chooser (preset pills + custom input), only for items that allow it ---- */

.ma-qo__amount-wrap { margin: 0 0 16px; }

.ma-qo__amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ma-qo__amount-btn {
	flex: 1 1 auto;
	min-width: 60px;
	background: #fff !important;
	border: 1.5px solid #e5e5e2 !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1c1c1a !important;
	cursor: pointer !important;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}
.ma-qo__amount-btn:hover { border-color: var(--ma-exit-accent) !important; }
.ma-qo__amount-btn.is-selected {
	border-color: var(--ma-exit-accent) !important;
	background: var(--ma-exit-accent) !important;
	color: var(--ma-exit-accent-text) !important;
}

.ma-qo__custom-amount {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	border: 1.5px solid #e5e5e2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	color: #1c1c1a !important;
	text-align: center;
}
.ma-qo__custom-amount:focus { outline: none !important; border-color: var(--ma-exit-accent) !important; }

.ma-qo__field { margin-bottom: 10px; text-align: right; }

.ma-qo__input {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	border: 1.5px solid #e5e5e2 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 10px !important;
	background: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	color: #1c1c1a !important;
	transition: border-color 0.15s ease !important;
}
.ma-qo__input:focus {
	outline: none !important;
	border-color: var(--ma-exit-accent) !important;
	box-shadow: none !important;
}
.ma-qo__input::placeholder { color: #a3a39c; opacity: 1; }

.ma-qo__error {
	color: #b32d2e;
	font-size: 13px;
	margin: 6px 0 10px;
}

#ma-qo-submit {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	background: var(--ma-exit-accent) !important;
	background-image: none !important;
	color: var(--ma-exit-accent-text) !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	border-radius: 12px !important;
	padding: 14px 20px !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	transition: filter 0.2s ease !important;
}
#ma-qo-submit:hover { filter: brightness(0.88) !important; color: var(--ma-exit-accent-text) !important; }
#ma-qo-submit.is-loading { opacity: 0.7 !important; pointer-events: none !important; }
#ma-qo-submit:disabled { cursor: default !important; }

@media (max-width: 480px) {
	.ma-qo__cat { padding: 11px 14px !important; font-size: 13.5px !important; }
	.ma-qo__input { padding: 11px 12px !important; font-size: 13.5px !important; }
	.ma-qo__amount-btn { padding: 9px 10px !important; font-size: 13px !important; }
}
