/*
 * MyGiftDreams front page (front-page.php).
 *
 * Colours and fonts come from the BuddyX theme variables, so a Customizer
 * change to the primary colour carries over here. The extra accents (gold,
 * green, sky) are taken from the theme's own colour palette.
 *
 * Animation rule of thumb: every element's normal CSS is its FINAL state and
 * the keyframes only describe where it comes FROM. So with reduced motion
 * (animation:none) everything simply appears finished.
 */

.mgdl {
	--mgdl-primary: var(--color-theme-primary, #ef5455);
	--mgdl-primary-hover: var(--button-background-hover-color, #f83939);
	--mgdl-head: var(--color-h2, #111);
	--mgdl-text: var(--global-font-color, #505050);
	--mgdl-muted: #757575;
	--mgdl-bg: var(--color-theme-body, #f7f7f9);
	--mgdl-white: var(--color-theme-white-box, #fff);
	--mgdl-border: var(--global-border-color, #e8e8e8);
	--mgdl-tint: #fdeeee;
	--mgdl-tint-2: #fff6f5;
	--mgdl-dark: var(--color-theme-black, #1c2833);
	--mgdl-toast: #3a3d42;
	--mgdl-gold: #fcb900;
	--mgdl-green: #27ae60;
	--mgdl-ok: #1e8a4c;
	--mgdl-sky: #8ed1fc;
	--mgdl-teal: var(--color-theme-secondary, #41848f);
	--mgdl-radius: var(--global-border-radius, 8px);
	--mgdl-shadow: 0 10px 30px rgba(28, 40, 51, .12);

	font-family: var(--global-font-family, "Open Sans", sans-serif);
	color: var(--mgdl-text);
	line-height: 1.6;
	display: block;
	margin: 0;
	padding: 0;
}

/* No horizontal scroll from the full-bleed sections (clip keeps the sticky header working). */
body.mgdl-front {
	overflow-x: clip;
}

.mgdl *,
.mgdl *::before,
.mgdl *::after {
	box-sizing: border-box;
}

.mgdl-bleed {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.mgdl-wrap {
	max-width: 1200px;
	margin: 0 auto;
}

.mgdl-bleed > .mgdl-wrap {
	padding-left: 20px;
	padding-right: 20px;
}

.mgdl h2,
.mgdl h3 {
	color: var(--mgdl-head);
	font-family: inherit;
	clear: none;
}

.mgdl p {
	margin: 0;
}

.mgdl-ico {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

/* ------------------------------------------------------------- buttons */

.mgdl .mgdl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.mgdl .mgdl-btn--primary,
.mgdl .mgdl-btn--primary:visited {
	background: var(--mgdl-primary);
	border-color: var(--mgdl-primary);
	color: #fff;
}

.mgdl .mgdl-btn--primary:hover,
.mgdl .mgdl-btn--primary:focus-visible {
	background: var(--mgdl-primary-hover);
	border-color: var(--mgdl-primary-hover);
	color: #fff;
	transform: translateY(-1px);
}

.mgdl .mgdl-btn--ghost,
.mgdl .mgdl-btn--ghost:visited {
	background: transparent;
	border-color: var(--mgdl-head);
	color: var(--mgdl-head);
}

.mgdl .mgdl-btn--ghost:hover,
.mgdl .mgdl-btn--ghost:focus-visible {
	background: var(--mgdl-head);
	border-color: var(--mgdl-head);
	color: #fff;
}

.mgdl .mgdl-btn--lg {
	min-height: 56px;
	padding: 16px 30px;
}

.mgdl .mgdl-btn:focus-visible,
.mgdl .mgdl-ctrl:focus-visible,
.mgdl .mgdl-tab:focus-visible {
	outline: 3px solid var(--mgdl-gold);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------- hero */

.mgdl-hero {
	background:
		radial-gradient(1200px 500px at 85% 20%, #fff 0, rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, var(--mgdl-tint-2) 0%, var(--mgdl-tint) 100%);
}

.mgdl-hero-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	padding-top: 48px;
	padding-bottom: 80px;
}

.mgdl-hero-copy {
	flex: 1 1 460px;
	min-width: 0;
}

.mgdl-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #f6d3d3;
	color: var(--mgdl-head);
	font-size: 13px;
	font-weight: 700;
}

.mgdl-badge svg {
	color: var(--mgdl-gold);
}

.mgdl .mgdl-hero-title {
	margin: 20px 0 0;
	font-size: clamp(36px, 5.2vw, 60px);
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.mgdl-accent {
	color: var(--mgdl-primary);
}

.mgdl-lead {
	margin-top: 22px !important;
	max-width: 560px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--mgdl-text);
}

.mgdl-lead--sm {
	margin-top: 16px !important;
	font-size: 17px;
}

.mgdl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.mgdl-note {
	margin-top: 18px !important;
	font-size: 14px;
	color: var(--mgdl-muted);
}

.mgdl-hero-art {
	position: relative;
	flex: 1 1 480px;
	min-width: 0;
	height: 520px;
}

.mgdl-gifts {
	position: absolute;
	left: 50%;
	top: 52%;
	width: 92%;
	max-width: 470px;
	transform: translate(-50%, -50%);
	overflow: visible;
}

.mgdl-wiggle {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: mgdlWiggle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}

.mgdl-float-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--mgdl-shadow);
	color: var(--mgdl-head);
	animation: mgdlFloat 4.5s ease-in-out infinite;
}

.mgdl-float-card strong,
.mgdl-float-card small {
	display: block;
}

.mgdl-float-card strong {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.mgdl-float-card small {
	font-size: 12px;
	color: var(--mgdl-muted);
}

.mgdl-float-card--done {
	right: 0;
	top: 18%;
	padding: 12px 16px 12px 12px;
}

.mgdl-float-card--chip {
	left: 0;
	bottom: 10%;
	width: 236px;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	padding: 14px 16px;
	animation-duration: 5s;
	animation-delay: 1.2s;
}

.mgdl-chip-btn {
	margin-top: 8px;
	padding: 9px;
	border-radius: 999px;
	background: var(--mgdl-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.mgdl-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #fff;
	color: var(--mgdl-green);
	box-shadow: 0 1px 5px rgba(28, 40, 51, .2);
}

.mgdl-mark .mgdl-ico {
	stroke-width: 3.2;
}

/* confetti + stars */

.mgdl-confetti,
.mgdl-star {
	position: absolute;
	left: var(--x);
	top: var(--y);
	pointer-events: none;
}

.mgdl-confetti {
	background: var(--c);
	border-radius: 2px;
}

.mgdl-c-strip {
	width: 14px;
	height: 6px;
	animation: mgdlSpin var(--d, 5s) ease-in-out var(--delay, 0s) infinite;
}

.mgdl-c-tall {
	width: 6px;
	height: 14px;
}

.mgdl-c-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	animation: mgdlFloat var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}

.mgdl-c-sm {
	width: 8px;
	height: 8px;
}

.mgdl-burst {
	animation: mgdlPop .4s ease-out var(--delay, 0s) both, mgdlSpin 3s ease-in-out calc(var(--delay, 0s) + .4s) infinite;
}

.mgdl-star {
	width: var(--s, 22px);
	height: var(--s, 22px);
	fill: var(--mgdl-gold);
	animation: mgdlTwinkle 2.6s ease-in-out var(--delay, 0s) infinite;
}

.mgdl-star--red {
	fill: var(--mgdl-primary);
}

/* ribbon between hero and steps */

.mgdl-ribbon {
	height: 14px;
	background: repeating-linear-gradient(-45deg, var(--mgdl-primary) 0 14px, #fff 14px 28px, var(--mgdl-gold) 28px 42px, #fff 42px 56px);
}

/* ------------------------------------------------------- section heads */

.mgdl-section {
	padding: 80px 0;
}

.mgdl-features {
	padding-top: 0;
}

.mgdl-head {
	text-align: center;
}

.mgdl-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--mgdl-primary);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.mgdl-kicker::before,
.mgdl-kicker::after {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	opacity: .5;
}

.mgdl .mgdl-h2 {
	margin: 10px 0 0;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.mgdl .mgdl-h2--left {
	margin-top: 0;
}

.mgdl .mgdl-h3 {
	margin: 12px 0;
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.15;
	font-weight: 700;
}

.mgdl .mgdl-h3--sm {
	margin: 12px 0 10px;
	font-size: 24px;
	line-height: 1.2;
}

.mgdl-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--mgdl-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mgdl-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--mgdl-primary);
}

.mgdl-panel-copy p,
.mgdl-feature-copy p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--mgdl-text);
}

/* -------------------------------------------------------------- carousel */

.mgdl-carousel {
	margin-top: 40px;
}

.mgdl-carousel-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.mgdl-tabs {
	flex: 1 1 640px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
}

.mgdl .mgdl-tab {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 12px 14px 10px;
	border: 1px solid var(--mgdl-border);
	border-radius: 14px;
	background: #fff;
	color: var(--mgdl-head);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.mgdl .mgdl-tab:hover {
	background: #fff;
	color: var(--mgdl-head);
	border-color: #f3c1c1;
}

.mgdl .mgdl-tab[aria-selected="true"] {
	border-color: #f3c1c1;
	box-shadow: 0 6px 18px rgba(239, 84, 85, .1);
}

.mgdl-tab-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mgdl-tab-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--mgdl-tint);
	color: var(--mgdl-head);
	font-size: 12px;
}

.mgdl-tab[aria-selected="true"] .mgdl-tab-n {
	background: var(--mgdl-primary);
	color: #fff;
}

.mgdl-tab-track {
	display: block;
	height: 4px;
	border-radius: 999px;
	background: #eee;
	overflow: hidden;
}

.mgdl-tab-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--mgdl-primary);
}

.mgdl-tab[aria-selected="true"] .mgdl-tab-fill {
	width: 100%;
}

.mgdl-carousel.is-running .mgdl-tab[aria-selected="true"] .mgdl-tab-fill {
	animation: mgdlBar var(--mgdl-interval, 6.5s) linear both;
}

.mgdl-ctrls {
	display: flex;
	gap: 8px;
	align-items: center;
}

.mgdl .mgdl-ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mgdl-border);
	border-radius: 999px;
	background: #fff;
	color: var(--mgdl-head);
	box-shadow: none;
	cursor: pointer;
}

.mgdl .mgdl-ctrl:hover {
	background: var(--mgdl-tint);
	border-color: #f3c1c1;
	color: var(--mgdl-head);
}

.mgdl-ctrl .mgdl-i-play,
.mgdl-carousel.is-paused .mgdl-ctrl .mgdl-i-pause {
	display: none;
}

.mgdl-carousel.is-paused .mgdl-ctrl .mgdl-i-play {
	display: block;
}

.mgdl-stage {
	margin-top: 16px;
	min-height: 470px;
	padding: 36px;
	border: 1px solid var(--mgdl-border);
	border-radius: 28px;
	background: #fff;
	overflow: hidden;
}

.mgdl-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	animation: mgdlSlide .5s ease-out both;
}

.mgdl-panel[hidden] {
	display: none;
}

.mgdl-panel-copy {
	flex: 1 1 300px;
	min-width: 0;
}

/* ----------------------------------------------- shared demo surfaces */

.mgdl-demo {
	position: relative;
	flex: 1 1 440px;
	min-width: 0;
	min-height: 380px;
	padding: 26px;
	border-radius: 20px;
	background: var(--mgdl-tint-2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	color: var(--mgdl-head);
	font-size: 14px;
	line-height: 1.4;
}

.mgdl-demo strong {
	font-weight: 700;
}

.mgdl-demo small {
	display: block;
	font-size: 12px;
	color: var(--mgdl-muted);
}

.mgdl-x {
	font-size: 20px;
	line-height: 1;
	color: var(--mgdl-muted);
	font-weight: 400;
}

.mgdl-art {
	display: block;
	width: 74%;
	height: 74%;
}

.mgdl-bg--pink { background: var(--mgdl-tint); }
.mgdl-bg--blue { background: #e4f3fd; }
.mgdl-bg--gold { background: #fff3cf; }

.mgdl-btn-mini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--mgdl-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.mgdl-btn-mini--ghost {
	background: #fff;
	color: var(--mgdl-head);
	border: 1px solid var(--mgdl-border);
}

.mgdl-press {
	animation: mgdlPress .35s ease-in-out var(--delay, 0s) both;
}

.mgdl-pop {
	animation: mgdlPop .45s ease-out var(--delay, 0s) both;
}

.mgdl-up {
	animation: mgdlUp .5s ease-out var(--delay, 0s) both;
}

.mgdl-drop {
	animation: mgdlDrop .55s cubic-bezier(.2, .9, .3, 1.2) var(--delay, 0s) both;
}

.mgdl-toast-ok,
.mgdl-okline,
.mgdl-happy {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 6px;
	color: var(--mgdl-ok);
	font-size: 13px;
	font-weight: 700;
}

.mgdl-toast-ok {
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(28, 40, 51, .1);
}

.mgdl-toast-ok .mgdl-ico,
.mgdl-okline .mgdl-ico {
	stroke-width: 3;
}

.mgdl-ava {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	background: #e9ecef;
	color: var(--mgdl-head);
}

.mgdl-ava--family { background: #e4f3fd; color: #1d6fa3; }
.mgdl-ava--close  { background: #dff3e7; color: var(--mgdl-ok); }
.mgdl-ava--you    { background: var(--mgdl-tint); color: var(--mgdl-primary); }
.mgdl-ava--sm     { width: 26px; height: 26px; font-size: 12px; }

/* --------------------------------------------- step 1: Add a Gift modal */

.mgdl-modal {
	align-self: center;
	width: 100%;
	max-width: 420px;
	padding: 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mgdl-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--mgdl-border);
	font-size: 16px;
	font-weight: 700;
}

.mgdl-modal-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.mgdl-photo {
	position: relative;
	flex: 0 0 96px;
	height: 108px;
	border: 2px dashed #e0c9c9;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mgdl-muted);
	overflow: hidden;
}

.mgdl-photo-img {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mgdl-tint);
	animation: mgdlPop .45s ease-out .4s both;
}

.mgdl-fields {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mgdl-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--mgdl-muted);
}

.mgdl-input {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--mgdl-border);
	border-radius: 8px;
	font-size: 13px;
	color: var(--mgdl-head);
	white-space: nowrap;
	overflow: hidden;
}

.mgdl-input .mgdl-ico {
	color: var(--mgdl-muted);
}

.mgdl-type {
	display: inline-block;
	overflow: hidden;
	animation: mgdlType 1s steps(var(--ch, 20)) var(--delay, 0s) both;
}

.mgdl-vis {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mgdl-vis-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 6px;
	border: 1px solid var(--mgdl-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.mgdl-vis-item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 1.5px solid #c9c9c9;
	border-radius: 4px;
	background: #fff;
	color: #fff;
}

.mgdl-vis-item--on {
	border-color: #f3c1c1;
	background: var(--mgdl-tint-2);
}

.mgdl-vis-item--on i {
	border-color: var(--mgdl-primary);
	background: var(--mgdl-primary);
	animation: mgdlCheck .25s ease-out var(--delay, 0s) both;
}

.mgdl-vis-item i .mgdl-ico {
	stroke-width: 3.4;
}

.mgdl-modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
}

.mgdl-select {
	padding: 7px 12px;
	border: 1px solid var(--mgdl-border);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

.mgdl-select small {
	display: inline;
}

/* ---------------------------------------- step 2: gift card + Send sheet */

.mgdl-giftcard {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(28, 40, 51, .06);
}

.mgdl-giftcard-img {
	flex: 0 0 72px;
	height: 72px;
	border-radius: 10px;
	background: var(--mgdl-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgdl-giftcard-body {
	flex: 1;
	min-width: 0;
}

.mgdl-social {
	display: flex;
	gap: 14px;
	margin-top: 6px;
	color: var(--mgdl-head);
}

.mgdl-social span {
	display: inline-flex;
}

.mgdl-social-send {
	color: var(--mgdl-primary);
	transform-origin: center;
}

.mgdl-sheet {
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mgdl-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 700;
}

.mgdl-sheet-groups {
	display: flex;
	gap: 6px;
	margin-bottom: 2px;
}

.mgdl-sheet-groups span {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mgdl-bg);
	font-size: 12px;
	font-weight: 600;
}

.mgdl-sheet-groups .is-on {
	background: var(--mgdl-head);
	color: #fff;
}

.mgdl-person {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 2px;
}

.mgdl-person .mgdl-ava {
	width: 30px;
	height: 30px;
	font-size: 12px;
}

.mgdl-person-name {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
}

.mgdl-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid #c9c9c9;
	border-radius: 999px;
	color: #fff;
}

.mgdl-tick--on {
	border-color: var(--mgdl-primary);
	background: var(--mgdl-primary);
	animation: mgdlCheck .25s ease-out var(--delay, 0s) both;
}

.mgdl-tick .mgdl-ico {
	stroke-width: 3.4;
}

.mgdl-sheet-foot {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.mgdl-demo--share .mgdl-toast-ok,
.mgdl-demo--add .mgdl-toast-ok {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	width: max-content;
	max-width: calc(100% - 24px);
	margin: 0 auto;
	justify-content: center;
	white-space: nowrap;
}

.mgdl-demo--add {
	padding-bottom: 56px;
}

.mgdl-demo--share {
	padding-bottom: 56px;
}

/* ------------------------------------- step 3: phone with a chat message */

.mgdl-demo--phone {
	align-items: center;
}

.mgdl-phone {
	width: 300px;
	max-width: 100%;
	padding: 14px;
	border: 8px solid var(--mgdl-dark);
	border-radius: 30px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mgdl-phone-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--mgdl-border);
}

.mgdl-phone-top strong {
	display: block;
	font-size: 14px;
}

.mgdl-bubble {
	align-self: flex-start;
	padding: 8px 12px;
	border-radius: 14px 14px 14px 4px;
	background: var(--mgdl-bg);
	font-size: 13px;
}

.mgdl-chatcard {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 1px solid var(--mgdl-border);
	border-radius: 14px;
}

.mgdl-chatcard-img {
	flex: 0 0 60px;
	height: 60px;
	border-radius: 10px;
	background: var(--mgdl-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgdl-chatcard-body {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.mgdl-chatcard-body strong {
	display: block;
	font-size: 13px;
}

.mgdl .mgdl-chatcard-label {
	color: var(--mgdl-primary);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mgdl-chatcard-open {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--mgdl-head);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.mgdl-buyline {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 999px;
	background: var(--mgdl-tint);
	color: var(--mgdl-primary);
	font-size: 13px;
	font-weight: 700;
}

.mgdl-buyline span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mgdl-happy svg {
	color: var(--mgdl-primary);
}

/* ------------------------------------------------------------- features */

.mgdl-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 20px;
	margin-top: 40px;
}

.mgdl-feature {
	display: grid;
	gap: 24px;
	align-content: start;
	min-width: 0;
	padding: 28px;
	border: 1px solid var(--mgdl-border);
	border-radius: 24px;
	background: #fff;
}

.mgdl-feature .mgdl-demo {
	flex: none;
}

/* Chip In */

.mgdl-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
}

.mgdl-stats strong {
	font-size: 15px;
}

.mgdl-stats-chip {
	margin-left: auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mgdl-primary);
	color: #fff;
	font-weight: 700;
}

.mgdl-chipbox {
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mgdl-pay {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
}

.mgdl-pay + .mgdl-pay {
	border-top: 1px solid #f1f1f1;
}

.mgdl-pay-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	height: 32px;
	border-radius: 999px;
}

.mgdl-pay-ico--navy   { background: #e6ebf7; color: #253b80; }
.mgdl-pay-ico--sky    { background: #e4f3fd; color: #1d6fa3; }
.mgdl-pay-ico--green  { background: #dff3e7; color: var(--mgdl-ok); }
.mgdl-pay-ico--dark   { background: #eceef0; color: var(--mgdl-dark); }
.mgdl-pay-ico--purple { background: #efe6fa; color: #6d1ed4; }

.mgdl-pay-txt {
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}

.mgdl-pay-txt strong {
	display: block;
	font-size: 13px;
}

.mgdl-pay-txt small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mgdl-copy-wrap {
	position: relative;
	display: inline-flex;
}

.mgdl-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--mgdl-border);
	border-radius: 8px;
	color: var(--mgdl-muted);
}

.mgdl-copied {
	position: absolute;
	right: 36px;
	top: 50%;
	margin-top: -12px;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--mgdl-ok);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

/* Dream came true */

.mgdl-demo--done {
	align-items: center;
	gap: 18px;
}

.mgdl-donecard {
	width: 250px;
	max-width: 100%;
	padding: 12px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
}

.mgdl-donecard-img {
	position: relative;
	height: 160px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: #e4f3fd;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgdl-donecard-img .mgdl-art {
	width: 60%;
	height: 80%;
}

.mgdl-fulfilled {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	filter: drop-shadow(0 1px 3px rgba(28, 40, 51, .25));
}

.mgdl-fulfilled svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mgdl-switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 700;
}

.mgdl-switch {
	display: flex;
	width: 46px;
	height: 26px;
	padding: 3px;
	border-radius: 999px;
	background: var(--mgdl-green);
	animation: mgdlTrack .35s ease-in-out var(--delay, 0s) both;
}

.mgdl-switch span {
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transform: translateX(20px);
	animation: mgdlKnob .35s ease-in-out var(--delay, 0s) both;
}

.mgdl-pill-dark {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--mgdl-dark);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.mgdl-pill-dark svg {
	color: var(--mgdl-gold);
}

/* Wishlists */

.mgdl-pick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.mgdl-pick-item {
	padding: 6px;
	border-radius: 12px;
	background: #fff;
}

.mgdl-pick-img {
	position: relative;
	height: 82px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgdl-pick-check {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--mgdl-primary);
	color: #fff;
}

.mgdl-pick-check .mgdl-ico {
	stroke-width: 3.4;
}

.mgdl-wl {
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mgdl-wl-top {
	display: flex;
	gap: 12px;
	align-items: center;
}

.mgdl-wl-collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	flex: 0 0 72px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
}

.mgdl-wl-collage span {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mgdl-wl-collage .mgdl-art {
	width: 90%;
	height: 90%;
}

.mgdl-wl-info {
	min-width: 0;
	line-height: 1.3;
}

.mgdl-wl-info strong {
	display: block;
	font-size: 15px;
}

.mgdl-wl-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 3px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--mgdl-dark);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mgdl-wl-tag i {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--mgdl-primary);
}

.mgdl-wl-link {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--mgdl-bg);
	font-size: 12px;
}

.mgdl-wl-link span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mgdl-wl-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.mgdl-wl-actions > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
}

.mgdl-wl-actions i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--mgdl-bg);
	color: var(--mgdl-head);
}

.mgdl-wl-actions i.is-dark {
	background: var(--mgdl-head);
	color: #fff;
}

/* Reminders */

.mgdl-demo--remind {
	justify-content: flex-start;
}

.mgdl-member {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(28, 40, 51, .06);
}

.mgdl-member-name {
	min-width: 0;
	line-height: 1.3;
}

.mgdl-round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1.5px solid var(--mgdl-primary);
	background: var(--mgdl-primary);
	color: #fff;
}

.mgdl-round--bell {
	animation: mgdlRoundOn .3s ease-out var(--delay, 0s) both;
}

.mgdl-round--clock {
	animation: mgdlPress .35s ease-in-out var(--delay, 0s) both, mgdlRoundOn .3s ease-out 2.1s both;
}

.mgdl-remind-menu {
	grid-column: 1 / -1;
	justify-self: end;
	width: 150px;
	padding: 4px;
	border: 1px solid var(--mgdl-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--mgdl-shadow);
	display: flex;
	flex-direction: column;
}

.mgdl-remind-menu > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 13px;
}

.mgdl-remind-on {
	color: var(--mgdl-primary);
	font-weight: 700;
	background: var(--mgdl-tint-2);
	animation: mgdlMenuOn .25s ease-out var(--delay, 0s) both;
}

.mgdl-remind-on .mgdl-ico {
	stroke-width: 3;
}

.mgdl-toasts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.mgdl-toast {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--mgdl-toast);
	color: #f1f1f1;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.mgdl-toast--remind {
	background: #45392a;
	border: 1px solid var(--mgdl-gold);
}

.mgdl-toast-link {
	color: var(--mgdl-primary);
	font-size: 13px;
	font-weight: 700;
}

/* ---------------------------------------------------------------- story */

.mgdl-story {
	background: linear-gradient(180deg, var(--mgdl-tint-2) 0%, var(--mgdl-tint) 100%);
}

.mgdl-story-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
	padding-top: 80px;
	padding-bottom: 80px;
}

.mgdl-story-art {
	position: relative;
	flex: 1 1 460px;
	min-width: 0;
}

.mgdl-polaroid {
	max-width: 520px;
	padding: 14px 14px 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(28, 40, 51, .12);
	transform: rotate(-2.5deg);
}

.mgdl-polaroid-img {
	position: relative;
	height: 360px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 50% 45%, #fff 0, rgba(255, 255, 255, 0) 55%),
		linear-gradient(160deg, #ffe9d6 0%, var(--mgdl-tint) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mgdl-open-gift {
	width: 70%;
	max-width: 300px;
	overflow: visible;
}

.mgdl-lid {
	transform-box: fill-box;
	transform-origin: 0% 100%;
	transform: translate(-22px, -36px) rotate(-16deg);
	animation: mgdlLid .7s cubic-bezier(.3, 1.4, .5, 1) var(--delay, 0s) both;
}

.mgdl-rise {
	transform: translateY(-34px);
	animation: mgdlRise .7s ease-out var(--delay, 0s) both;
}

.mgdl-polaroid-caption {
	padding: 14px 0 18px;
	color: var(--mgdl-head);
	font-size: 22px;
	font-style: italic;
	font-weight: 700;
	text-align: center;
}

.mgdl-float-card--pin {
	right: 4%;
	top: -18px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
}

.mgdl-float-card--pin .mgdl-mark {
	width: 30px;
	height: 30px;
}

.mgdl-story-copy {
	flex: 1 1 420px;
	min-width: 0;
}

.mgdl .mgdl-checks {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mgdl-checks li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--mgdl-head);
	font-size: 16px;
	font-weight: 600;
}

.mgdl-checks .mgdl-mark {
	width: 32px;
	height: 32px;
}

/* ------------------------------------------------------------ final CTA */

.mgdl-final-box {
	position: relative;
	padding: 64px 32px;
	border-radius: 32px;
	background: var(--mgdl-dark);
	color: #fff;
	text-align: center;
	overflow: hidden;
}

.mgdl-final-gift {
	display: inline-flex;
	color: var(--mgdl-gold);
	animation: mgdlWiggle 2.8s ease-in-out infinite;
}

.mgdl-final-gift .mgdl-ico {
	stroke-width: 1.5;
}

.mgdl .mgdl-final-title {
	margin: 16px 0 0;
	color: #fff;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.mgdl-final-box p {
	max-width: 520px;
	margin: 14px auto 32px;
	color: #ced4da;
	font-size: 17px;
}

/* ------------------------------------------------------------- keyframes */

@keyframes mgdlFloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mgdlSpin    { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(140deg); } }
@keyframes mgdlWiggle  { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes mgdlTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes mgdlSlide   { from { opacity: 0; transform: translateX(28px); } }
@keyframes mgdlType    { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mgdlPress   { 50% { transform: scale(.88); } }
@keyframes mgdlDrop    { from { opacity: 0; transform: translateY(-24px) scale(.94); } }
@keyframes mgdlUp      { from { opacity: 0; transform: translateY(16px); } }
@keyframes mgdlPop     { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mgdlBar     { from { width: 0; } to { width: 100%; } }
@keyframes mgdlCheck   { from { background: #fff; border-color: #c9c9c9; color: transparent; } }
@keyframes mgdlTrack   { from { background: #c9cdd6; } }
@keyframes mgdlKnob    { from { transform: translateX(0); } }
@keyframes mgdlRoundOn { from { background: #fff; border-color: #c9c9c9; color: #8a8a8a; } }
@keyframes mgdlMenuOn  { from { background: transparent; color: var(--mgdl-head); font-weight: 400; } }
@keyframes mgdlLid     { from { transform: none; } }
@keyframes mgdlRise    { from { opacity: 0; transform: translateY(30px); } }

/*
 * Feature cards and the polaroid play when they scroll into view
 * (front-landing.js toggles .is-play). Until then they wait on frame one.
 * Only applies once the script is running, so without JS they are visible.
 */
.mgdl-js [data-mgdl-play]:not(.is-play) * {
	animation-play-state: paused !important;
}

.mgdl-js [data-mgdl-play].mgdl-reset * {
	animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.mgdl *,
	.mgdl *::before,
	.mgdl *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1023px) {
	.mgdl-hero-art {
		height: 440px;
	}
}

@media (max-width: 767px) {
	.mgdl-hero-grid {
		gap: 16px;
		padding-top: 28px;
		padding-bottom: 48px;
	}

	.mgdl-lead {
		font-size: 17px;
	}

	.mgdl-actions .mgdl-btn {
		flex: 1 1 100%;
	}

	.mgdl-hero-art {
		flex-basis: 100%;
		height: 340px;
	}

	.mgdl-gifts {
		width: 82%;
	}

	.mgdl-float-card--done {
		top: 6%;
		padding: 8px 12px 8px 8px;
	}

	.mgdl-float-card--chip {
		bottom: 2%;
		width: 200px;
		padding: 10px 12px;
	}

	.mgdl-section {
		padding: 56px 0;
	}

	.mgdl-features {
		padding-top: 0;
	}

	.mgdl-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		flex-basis: 100%;
	}

	.mgdl .mgdl-tab {
		padding: 10px 8px 8px;
		font-size: 12px;
		gap: 8px;
	}

	.mgdl-tab-label {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.mgdl-ctrls {
		width: 100%;
		justify-content: center;
	}

	.mgdl .mgdl-ctrl {
		width: 44px;
		height: 44px;
	}

	.mgdl-stage {
		min-height: 0;
		padding: 18px;
		border-radius: 20px;
	}

	.mgdl-panel {
		gap: 20px;
	}

	.mgdl-panel-copy p,
	.mgdl-feature-copy p {
		font-size: 16px;
	}

	.mgdl-demo {
		flex-basis: 100%;
		min-height: 0;
		padding: 16px;
		border-radius: 16px;
	}

	.mgdl-demo--add,
	.mgdl-demo--share {
		padding-bottom: 56px;
	}

	.mgdl-feature {
		padding: 20px;
		gap: 18px;
		border-radius: 20px;
	}

	.mgdl .mgdl-h3--sm {
		font-size: 22px;
	}

	.mgdl-story-grid {
		gap: 40px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.mgdl-polaroid-img {
		height: 260px;
	}

	.mgdl-polaroid-caption {
		font-size: 19px;
	}

	.mgdl-final-box {
		padding: 44px 20px;
		border-radius: 24px;
	}

	.mgdl-final-box .mgdl-btn {
		width: 100%;
	}
}

@media (max-width: 400px) {
	.mgdl-photo {
		flex-basis: 76px;
	}

	.mgdl-stats {
		gap: 10px;
	}

	.mgdl-wl-actions {
		gap: 12px;
	}
}
