/* Customer 360: account pill, newsletter popup, newsletter band. */
.m360-pill,
.m360-nl-modal,
.m360-nl-band {
	--m360-red: #8c0014;
	--m360-red-dark: #6e0010;
	--m360-ink: #1e1e1e;
	--m360-muted: #5f5f5f;
	--m360-line: #89867e;
	--m360-ease: cubic-bezier(.25, 0, .25, 1);
}
.m360-pill *,
.m360-nl-modal *,
.m360-nl-band * { box-sizing: border-box; }
.m360-pill[hidden],
.m360-nl-modal[hidden] { display: none !important; }

/* Close button (pill and popup) */
.m360-engage-close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--m360-ink);
	cursor: pointer;
	box-shadow: none;
}
.m360-engage-close:hover,
.m360-engage-close:focus-visible { background: rgba(30, 30, 30, .08); color: var(--m360-ink); }
.m360-engage-close svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------
   Account pill: bottom-left card on desktop, bottom sheet on phones
   ------------------------------------------------------------------ */
.m360-pill {
	position: fixed;
	z-index: 900;
	left: 16px;
	bottom: calc(16px + var(--m360-bottom, 0px));
	width: 340px;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 16px 16px 12px;
	background: #fff;
	color: var(--m360-ink);
	border-radius: 12px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .08);
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(calc(100% + 32px));
	transition: transform .4s var(--m360-ease), opacity .25s var(--m360-ease), bottom .2s var(--m360-ease);
}
.m360-pill.is-open { opacity: 1; transform: none; }
.m360-pill.is-instant { transition: bottom .2s var(--m360-ease); }
.m360-pill .m360-pill__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 32px 6px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--m360-ink);
}
.m360-pill__title svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--m360-red); }
.m360-pill .m360-pill__text { margin: 0 0 12px; color: var(--m360-muted); font-size: 13px; }
.m360-pill__text strong { color: var(--m360-ink); }
.m360-pill__actions { display: flex; gap: 8px; }
.m360-pill .m360-pill__btn,
.m360-pill .m360-pill__btn:visited {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--m360-ink);
	border-radius: 9999px;
	background: #fff;
	color: var(--m360-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .16s var(--m360-ease), color .16s var(--m360-ease), border-color .16s var(--m360-ease);
}
.m360-pill .m360-pill__btn:hover,
.m360-pill .m360-pill__btn:focus-visible { background: var(--m360-ink); color: #fff; }
.m360-pill .m360-pill__btn--primary,
.m360-pill .m360-pill__btn--primary:visited { background: var(--m360-red); border-color: var(--m360-red); color: #fff; }
.m360-pill .m360-pill__btn--primary:hover,
.m360-pill .m360-pill__btn--primary:focus-visible { background: var(--m360-red-dark); border-color: var(--m360-red-dark); color: #fff; }
.m360-pill .m360-pill__note { margin: 6px 0 0; font-size: 12px; color: var(--m360-muted); text-align: center; }
.m360-pill .m360-pill__fine { margin: 8px 0 0; font-size: 11px; line-height: 1.35; color: var(--m360-muted); }

@media (max-width: 767px) {
	.m360-pill {
		left: 8px;
		right: 8px;
		bottom: calc(8px + var(--m360-bottom, 0px) + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: none;
		padding: 12px 12px 12px 14px;
		border-radius: 16px;
	}
	.m360-pill .m360-pill__title { margin-bottom: 4px; font-size: 14px; }
	.m360-pill__title svg { flex-basis: 18px; width: 18px; height: 18px; }
	.m360-pill .m360-pill__text { margin-bottom: 10px; font-size: 12.5px; line-height: 1.4; }
	.m360-pill .m360-pill__btn,
	.m360-pill .m360-pill__btn:visited { min-height: 38px; }
	.m360-pill .m360-pill__note { display: none; }
	.m360-pill .m360-pill__fine { margin-top: 8px; }
}

/* ------------------------------------------------------------------
   Newsletter form (popup and band)
   ------------------------------------------------------------------ */
.m360-nl-form { position: relative; margin: 0; }
.m360-nl-form__row { display: flex; gap: 8px; }
.m360-nl-form input[type=email] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--m360-line);
	border-radius: 9999px;
	background: #fff;
	color: var(--m360-ink);
	font-size: 16px;
	box-shadow: none;
}
.m360-nl-form input[type=email]:focus { outline: 2px solid var(--m360-ink); outline-offset: 1px; border-color: var(--m360-ink); }
.m360-nl-form button[type=submit] {
	flex: 0 0 auto;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 9999px;
	background: var(--m360-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .16s var(--m360-ease), opacity .16s;
}
.m360-nl-form button[type=submit]:hover,
.m360-nl-form button[type=submit]:focus-visible { background: var(--m360-red-dark); color: #fff; }
.m360-nl-form button[disabled] { opacity: .6; cursor: progress; }
.m360-nl-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 400;
	cursor: pointer;
}
.m360-nl-form__consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--m360-red); }
.m360-nl-form__consent a { color: inherit; text-decoration: underline; }
.m360-nl-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.m360-nl-form .m360-nl-form__msg { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.m360-nl-form__msg:empty { display: none; }
.m360-nl-form.is-error .m360-nl-form__msg { color: #a61e00; }
.m360-nl-form.is-done .m360-nl-form__row,
.m360-nl-form.is-done .m360-nl-form__consent { display: none; }
.m360-nl-form.is-done .m360-nl-form__msg { margin: 0; font-size: 15px; }

@media (max-width: 479px) {
	.m360-nl-form__row { flex-direction: column; }
	.m360-nl-form button[type=submit] { width: 100%; }
}

/* ------------------------------------------------------------------
   Newsletter band above the footer
   ------------------------------------------------------------------ */
.m360-nl-band {
	background: var(--m360-red);
	color: #fff;
	padding: 40px 0;
}
.m360-nl-band__inner { display: grid; gap: 20px; align-items: center; }
/* The theme's .col-full clearfix pseudo-elements would become empty grid rows. */
.m360-nl-band__inner::before,
.m360-nl-band__inner::after { display: none; }
.m360-nl-band__copy { display: flex; gap: 16px; align-items: flex-start; }
.m360-nl-band__icon { flex: 0 0 36px; width: 36px; height: 36px; margin-top: 2px; color: #fff; }
.m360-nl-band .m360-nl-band__title { margin: 0 0 4px; padding: 0; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.25; }
.m360-nl-band .m360-nl-band__text { margin: 0; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.45; }
.m360-nl-band .m360-nl-form input[type=email] { border-color: #fff; }
.m360-nl-band .m360-nl-form input[type=email]:focus { outline-color: #fff; }
.m360-nl-band .m360-nl-form button[type=submit] { background: #fff; color: var(--m360-red); }
.m360-nl-band .m360-nl-form button[type=submit]:hover,
.m360-nl-band .m360-nl-form button[type=submit]:focus-visible { background: #f2e6e8; color: var(--m360-red-dark); }
.m360-nl-band .m360-nl-form button[type=submit]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.m360-nl-band .m360-nl-form__consent { color: rgba(255, 255, 255, .88); }
.m360-nl-band .m360-nl-form__consent input { accent-color: #fff; }
.m360-nl-band .m360-nl-form.is-error .m360-nl-form__msg,
.m360-nl-band .m360-nl-form__msg { color: #fff; }

@media (max-width: 767px) {
	.m360-nl-band__icon { display: none; }
	.m360-nl-band .m360-nl-band__title { font-size: 20px; }
	.m360-nl-band .m360-nl-band__text { font-size: 14px; }
}
@media (min-width: 768px) {
	.m360-nl-band { padding: 64px 0; }
	.m360-nl-band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
	.m360-nl-band .m360-nl-band__title { font-size: 26px; }
	.m360-nl-band__icon { flex-basis: 44px; width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------
   Newsletter popup: centred on desktop, bottom sheet on phones
   ------------------------------------------------------------------ */
.m360-nl-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.m360-nl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .25s var(--m360-ease);
}
.m360-nl-modal__dialog {
	position: relative;
	width: 480px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 32px 28px 24px;
	background: #fff;
	color: var(--m360-ink);
	border-radius: 12px;
	border-top: 4px solid var(--m360-red);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(16px);
	transition: transform .3s var(--m360-ease), opacity .25s var(--m360-ease);
}
.m360-nl-modal__dialog:focus { outline: none; }
.m360-nl-modal.is-open .m360-nl-modal__backdrop { opacity: 1; }
.m360-nl-modal.is-open .m360-nl-modal__dialog { opacity: 1; transform: none; }
.m360-nl-modal .m360-nl-modal__kicker { margin: 0 0 8px; color: var(--m360-red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.m360-nl-modal .m360-nl-modal__title { margin: 0 32px 8px 0; padding: 0; color: var(--m360-ink); font-size: 24px; font-weight: 700; line-height: 1.25; }
.m360-nl-modal .m360-nl-modal__text { margin: 0 0 20px; color: var(--m360-muted); font-size: 15px; line-height: 1.45; }
.m360-nl-modal .m360-nl-form__consent { color: var(--m360-muted); }
html.m360-modal-lock { overflow: hidden; }

@media (max-width: 767px) {
	.m360-nl-modal { align-items: flex-end; padding: 0; }
	.m360-nl-modal__dialog {
		width: 100%;
		max-height: 90vh;
		padding: 28px 16px calc(20px + env(safe-area-inset-bottom, 0px));
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}
	.m360-nl-modal .m360-nl-modal__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.m360-pill,
	.m360-nl-modal__backdrop,
	.m360-nl-modal__dialog { transition: none; }
}
