/* =========================================================================
   My Wishlists
   ========================================================================= */

:root {
	--mwl-primary:       #6c63ff;
	--mwl-primary-hover: #574fd6;
	--mwl-green:         #1e8e5a;
	--mwl-red:           #e74c3c;
	--mwl-text:          #212529;
	--mwl-muted:         #6b7280;
	--mwl-line:          #eceef1;
	--mwl-border:        #e1e4e8;
	--mwl-dark:          #212529;
	--mwl-dark-hover:    #3a3f45;
	--mwl-soft:          #f4f5f7;
	--mwl-radius:        16px;
	--mwl-shadow:        0 2px 12px rgba(0,0,0,.08);
	--mwl-shadow-hover:  0 8px 24px rgba(0,0,0,.14);
	--mwl-transition:    .2s ease;
}

body.mwl-modal-open {
	overflow: hidden;
}

/* =========================================================================
   MY WISHLISTS — Pinterest-style tiles
   ========================================================================= */
.mwl-wrap {
	padding: 8px 0 24px;
}

/* Every tile in a row is as tall as the tallest, so the Share buttons line up. */
.mwl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	align-items: stretch;
}

/* One card: photos, text and button inside a single frame. */
.mwl-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--mwl-border);
	border-radius: var(--mwl-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow var(--mwl-transition);
}
.mwl-tile:not(.mwl-tile--create):hover {
	box-shadow: var(--mwl-shadow);
}

.mwl-tile-media {
	position: relative;
	flex: none;
	height: 170px;
	background: var(--mwl-soft);
}
.mwl-tile-media-link {
	display: block;
	height: 100%;
}

/* Gift count, bottom left on the photos — the same dark capsule as the
   counter chips on Dream Gifts thumbnails (.mgb-ts-item in my-gifts-bp). */
.mwl-tile-count {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	color: #fff;
	font-size: .78rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.mwl-tile-icon {
	display: block;
	flex-shrink: 0;
}

/* Empty gallery: a note and the Dream Gifts "+ Add Gift" pill, side by side. */
.mwl-no-gifts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 16px;
	padding: 16px 20px;
	border: 1px dashed var(--mwl-line);
	border-radius: 12px;
	background: var(--mwl-soft);
}
.mwl-no-gifts-text {
	margin: 0;
	font-size: 15px;
	color: var(--mwl-text);
}
.mwl-no-gifts-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border-radius: 24px;
	background: var(--mwl-primary);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(108, 99, 255, .3);
	transition: background var(--mwl-transition), box-shadow var(--mwl-transition);
}
.mwl-no-gifts-btn:hover,
.mwl-no-gifts-btn:focus-visible {
	background: var(--mwl-primary-hover);
	box-shadow: 0 4px 14px rgba(108, 99, 255, .45);
	color: #fff;
	text-decoration: none;
}
.mwl-no-gifts-plus {
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1;
}

/* "Create a wishlist" — empty, always first. */
.mwl-tile--create {
	padding: 0;
	border: 0;
	border-radius: var(--mwl-radius);
	overflow: visible;
	background: none;
	cursor: pointer;
	font: inherit;
	text-align: center;
}
/* Stretches with the row; on its own it is about a wishlist card's height. */
.mwl-tile--create .mwl-create-box {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 310px;
	border: 2px dashed #cfd3da;
	border-radius: var(--mwl-radius);
	background: #fff;
	color: var(--mwl-muted);
	transition: border-color var(--mwl-transition), color var(--mwl-transition);
}
.mwl-tile--create:hover .mwl-create-box,
.mwl-tile--create:focus-visible .mwl-create-box {
	border-color: var(--mwl-primary);
	color: var(--mwl-primary);
}
.mwl-tile--create:focus-visible {
	outline: none;
}
.mwl-create-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--mwl-soft);
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
}
.mwl-create-text {
	font-size: 15px;
	font-weight: 600;
}

/* Collage: 1 fills, 2 split, 3 = one big + two small, 4 = 2×2. */
.mwl-collage {
	display: grid;
	width: 100%;
	height: 100%;
	gap: 3px;
	background: #fff;
}
.mwl-collage--1 { grid-template: 1fr / 1fr; }
.mwl-collage--2 { grid-template: 1fr / 1fr 1fr; }
.mwl-collage--3 { grid-template: 1fr 1fr / 1fr 1fr; }
.mwl-collage--3 .mwl-collage-cell:first-child { grid-row: 1 / 3; }
.mwl-collage--4 { grid-template: 1fr 1fr / 1fr 1fr; }
.mwl-collage--0 { place-items: center; background: var(--mwl-soft); }

.mwl-collage-cell {
	display: block;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: var(--mwl-soft);
}
.mwl-collage-img,
.mwl-collage-cell img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mwl-collage-empty {
	color: var(--mwl-muted);
	font-size: 14px;
}

/* Delete: a 28px white circle, top right on the photos, on every wishlist.
   The button itself is the hit area — 28px here, 44px on touch screens,
   where padding grows it around the same circle. */
.mwl-tile-delete {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.mwl-tile-delete-x {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--mwl-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
	color: var(--mwl-text);
	font-size: 18px;
	line-height: 1;
	transition: color var(--mwl-transition), border-color var(--mwl-transition);
}
.mwl-tile-delete:hover .mwl-tile-delete-x,
.mwl-tile-delete:focus-visible .mwl-tile-delete-x {
	border-color: var(--mwl-red);
	color: var(--mwl-red);
}
.mwl-tile-delete:focus-visible .mwl-tile-delete-x {
	outline: 2px solid var(--mwl-red);
	outline-offset: 2px;
}
@media (hover: none), (max-width: 600px) {
	.mwl-tile-delete {
		top: 0;
		right: 0;
		width: 44px;
		height: 44px;
		padding: 8px;
	}
}

.mwl-tile-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	min-width: 0;
}
.mwl-tile-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	margin: 0;
	overflow: hidden;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}
.mwl-tile-title a {
	color: var(--mwl-text);
	text-decoration: none;
}
.mwl-tile-title a:hover {
	color: var(--mwl-primary);
}
.mwl-tile-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--mwl-muted);
}
.mwl-tile-views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

/* The tile's Share: full width, dark, pinned to the card's bottom edge. */
.mwl-share-btn--tile {
	justify-content: center;
	width: 100%;
	height: 36px;
	margin-top: auto;
	padding: 0 12px;
	background: var(--mwl-dark);
	color: #fff;
}

.mwl-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 7px 14px;
	border: 1px solid var(--mwl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mwl-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color var(--mwl-transition), color var(--mwl-transition);
}
.mwl-share-btn:hover,
.mwl-share-btn:focus-visible {
	border-color: var(--mwl-primary);
	color: var(--mwl-primary);
	background: #fff;
}
.mwl-share-btn .mgd-icon {
	width: 16px;
	height: 16px;
}

/* =========================================================================
   SEND LINK DIALOG — step 1 shares the link, step 2 (Add to post) a caption
   ========================================================================= */
.mwl-post-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding: 10px;
	border: 1px solid var(--mwl-line);
	border-radius: 12px;
	background: var(--mwl-soft);
}
.mwl-post-preview-media {
	flex: none;
	width: 64px;
	aspect-ratio: 4 / 5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.mwl-post-preview-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.mwl-post-preview-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--mwl-text);
	overflow-wrap: anywhere;
}
.mwl-post-preview-count {
	font-size: 13px;
	color: var(--mwl-muted);
}
[data-mwl-step][hidden],
.mwl-share-back[hidden] {
	display: none !important;
}

/* Title hugs the back arrow; the close button stays on the right. */
#mwl-share-modal .mwl-modal-title {
	flex: 1;
}

/* Header back arrow, step 2 only. */
.mwl-share-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* The link row: the field takes what the copy button leaves. */
.mwl-share-link-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mwl-share-copy,
.mwl-share-copy:hover,
.mwl-share-copy:focus,
.mwl-share-copy:active {
	flex: 0 0 auto;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--mwl-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--mwl-text) !important;
	cursor: pointer;
	transition: border-color var(--mwl-transition), color var(--mwl-transition);
}
.mwl-share-copy:hover,
.mwl-share-copy:focus-visible {
	border-color: var(--mwl-primary) !important;
	color: var(--mwl-primary) !important;
}
.mwl-share-copy .mgd-icon {
	width: 20px;
	height: 20px;
}

/* The link itself: read-only, selected on tap. */
.mwl-share-link {
	box-sizing: border-box;
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 42px;
	padding: 10px 12px;
	border: 1px solid #d6d9de;
	border-radius: 10px;
	background: var(--mwl-soft);
	color: var(--mwl-muted);
	font: inherit;
	font-size: 14px;
	text-overflow: ellipsis;
}
.mwl-share-link:focus {
	outline: none;
	border-color: var(--mwl-primary);
	color: var(--mwl-text);
}

/* Round icons with a caption underneath, like a phone's share sheet. */
.mwl-share-actions {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin-top: 18px;
}
.mwl-share-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--mwl-text);
	font: inherit;
	cursor: pointer;
}
.mwl-share-action-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--mwl-line);
	border-radius: 50%;
	background: #fff;
	transition: border-color var(--mwl-transition), color var(--mwl-transition);
}
.mwl-share-action-icon .mgd-icon {
	width: 24px;
	height: 24px;
}
.mwl-share-action-label {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.mwl-post-caption {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 96px;
	padding: 10px 12px;
	border: 1px solid #d6d9de;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	resize: vertical;
}
/* Emoji button and picker: my-gifts-bp's .mgb-emoji-btn / .mgb-emoji-picker
   look; here the picker floats over the dialog, fixed to the viewport. */
.mwl-caption-wrap .mwl-post-caption {
	padding-right: 40px;
}
.mwl-emoji-picker {
	position: fixed;
	bottom: auto;
	right: auto;
	z-index: 100030;
}
.mwl-emoji-picker[hidden],
.mwl-emoji-btn[hidden] {
	display: none !important;
}
.mwl-post-caption:focus {
	outline: none;
	border-color: var(--mwl-primary);
}
.mwl-post-chars {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--mwl-muted);
	text-align: right;
}

/* =========================================================================
   WISHLIST IN A FEED POST — the My Wishlists tile, then its link, name and
   gift count. The post's own text sits above, in .activity-inner.
   ========================================================================= */
.mwl-feed-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 240px;
	max-width: 100%;
	margin: 10px 0 12px;
}
/* Personal and Following feeds: centred at half width, like gift images. */
.mwl-feed-card--vertical {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}
.mwl-feed-media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin-bottom: 8px;
	border-radius: var(--mwl-radius);
	overflow: hidden;
	background: var(--mwl-soft);
	box-shadow: var(--mwl-shadow);
	transition: box-shadow var(--mwl-transition);
}
.mwl-feed-media:hover {
	box-shadow: var(--mwl-shadow-hover);
}
.mwl-feed-view {
	font-size: 14px;
	font-weight: 600;
	color: var(--mwl-primary);
	text-decoration: none;
}
.mwl-feed-view:hover,
.mwl-feed-view:focus-visible {
	color: var(--mwl-primary-hover);
	text-decoration: underline;
}
.mwl-feed-title {
	max-width: 100%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mwl-text);
	overflow-wrap: anywhere;
}
.mwl-feed-count {
	font-size: 13px;
	color: var(--mwl-muted);
}
.mwl-feed-card--gone {
	width: auto;
	padding: 10px 14px;
	border: 1px dashed var(--mwl-line);
	border-radius: 10px;
	font-size: 14px;
	color: var(--mwl-muted);
}

/* =========================================================================
   DIALOGS
   ========================================================================= */
.mwl-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0,0,0,.55);
}
.mwl-modal-overlay[hidden] {
	display: none;
}

.mwl-modal {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: #fff;
	border-radius: var(--mwl-radius);
	box-shadow: 0 16px 48px rgba(0,0,0,.22);
	overflow: hidden;
}
.mwl-modal--sm {
	max-width: 420px;
}
.mwl-create-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
	margin: 0;
}

.mwl-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--mwl-line);
}
.mwl-modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.mwl-modal-close {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mwl-soft);
	color: var(--mwl-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.mwl-modal-close:hover {
	background: #e6e8ec;
	color: var(--mwl-text);
}

.mwl-modal-body {
	flex: 1;
	min-height: 0;
	padding: 16px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mwl-private-note {
	margin: 0 0 14px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--mwl-soft);
	font-size: 13px;
	line-height: 1.4;
	color: var(--mwl-muted);
}

.mwl-field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mwl-text);
}
.mwl-required {
	color: var(--mwl-red);
}
.mwl-name-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d6d9de;
	border-radius: 10px;
	font-size: 16px; /* 16px stops iOS zooming into the field */
}
.mwl-name-input:focus {
	outline: none;
	border-color: var(--mwl-primary);
	box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}
.mwl-name-input.is-invalid {
	border-color: var(--mwl-red);
}
.mwl-field-error {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--mwl-red);
}

.mwl-pick-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 18px 0 12px;
}
.mwl-pick-head .mwl-field-label {
	margin: 0;
}
.mwl-pick-counter {
	font-size: 13px;
	font-weight: 600;
	color: var(--mwl-muted);
}
.mwl-pick-counter.is-full {
	color: var(--mwl-green);
}
.mwl-pick-empty {
	margin: 12px 0;
	color: var(--mwl-muted);
	font-size: 14px;
}

.mwl-pick-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.mwl-pick-tabs::-webkit-scrollbar {
	display: none;
}
.mwl-pick-tab {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--mwl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mwl-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.mwl-pick-tab:hover {
	background: var(--mwl-soft);
	color: var(--mwl-text);
}
.mwl-pick-tab.is-active {
	border-color: var(--mwl-text);
	background: var(--mwl-text);
	color: #fff;
}
.mwl-pick-tab-count {
	font-weight: 500;
	opacity: .65;
}

.mwl-pick-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.mwl-pick-grid[hidden] {
	display: none;
}

.mwl-pick-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}
.mwl-pick-item:hover,
.mwl-pick-item:focus {
	background: none;
}
.mwl-pick-img,
.mwl-pick-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	border: 3px solid transparent;
	box-sizing: border-box;
	background: var(--mwl-soft);
	transition: border-color var(--mwl-transition), opacity var(--mwl-transition);
}
.mwl-pick-item.is-selected img,
.mwl-pick-item.is-selected .mwl-pick-img {
	border-color: var(--mwl-green);
}
.mwl-pick-item:focus-visible {
	outline: none;
}
.mwl-pick-item:focus-visible img {
	box-shadow: 0 0 0 3px rgba(108,99,255,.35);
}
.mwl-pick-title {
	overflow: hidden;
	font-size: 12px;
	line-height: 1.3;
	color: var(--mwl-text);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Green circle with the picking order, top-right corner. */
.mwl-pick-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--mwl-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mwl-pick-item.is-selected .mwl-pick-badge {
	display: flex;
}

.mwl-modal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--mwl-line);
	background: #fff;
}
.mwl-form-msg {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: var(--mwl-red);
}

.mwl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--mwl-transition), border-color var(--mwl-transition);
}
.mwl-btn--primary {
	background: var(--mwl-primary);
	color: #fff;
}
.mwl-btn--primary:hover,
.mwl-btn--primary:focus-visible {
	background: var(--mwl-primary-hover);
	color: #fff;
}
.mwl-btn--primary:disabled {
	background: #c5c2f5;
	cursor: not-allowed;
}
.mwl-btn--ghost {
	background: #fff;
	border-color: var(--mwl-line);
	color: var(--mwl-text);
}
.mwl-btn--ghost:hover,
.mwl-btn--ghost:focus-visible {
	background: var(--mwl-soft);
	color: var(--mwl-text);
}

.mwl-signup-body p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--mwl-muted);
}
.mwl-signup-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Toasts */
.mwl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100020;
	max-width: calc(100vw - 32px);
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mwl-text);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(0,0,0,.2);
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.mwl-toast--error {
	background: var(--mwl-red);
}
.mwl-toast--success {
	background: var(--mwl-green);
}
.mwl-toast.is-shown {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* =========================================================================
   WISHLIST PAGE
   ========================================================================= */
.mwl-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: 32px 16px 48px;
}

/* Inside the owner's profile: the profile column sets the width. */
.mwl-page--profile {
	max-width: none;
	padding: 8px 0 24px;
}

.mwl-page-head {
	margin-bottom: 24px;
}

/* Eyebrow: avatar · WISHLIST · from Name — small, grey. */
.mwl-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.4;
	color: var(--mwl-muted);
}
.mwl-eyebrow-avatar-link {
	display: inline-flex;
}
.mwl-eyebrow img,
.mwl-eyebrow-avatar {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}
/* "WISHLIST": a dark pill like the Share wishlist button, led by a dot in the
   site's primary red. Same 12px as the rest of the eyebrow. */
.mwl-eyebrow-word {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mwl-dark);
	color: #fff;
	text-transform: uppercase;
}
.mwl-eyebrow-word::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-theme-primary, #ef5455);
}
.mwl-eyebrow-from a {
	color: inherit;
	text-decoration: none;
}
.mwl-eyebrow-from a:hover,
.mwl-eyebrow-from a:focus-visible {
	color: var(--color-theme-primary, #ef5455);
}
.mwl-sep {
	color: #b6bbc4;
}

.mwl-page-title {
	margin: 0 0 8px;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--mwl-text);
	overflow-wrap: anywhere;
}

.mwl-page-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	font-size: 15px;
	color: var(--mwl-muted);
}

/* Amazon-style cards: photo, then name, description, buy link. */
.mwl-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mwl-card {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--mwl-line);
	border-radius: 12px;
	background: #fff;
}
.mwl-card-photo {
	--mwl-photo: 200px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--mwl-photo);
	align-self: flex-start;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
/* Wraps the picture at its own fitted size (what object-fit: contain used to
   draw inside the square), so anything pinned to its corners lands on the
   image itself. */
.mwl-card-frame {
	position: relative;
	display: block;
	max-width: 100%;
	line-height: 0;
}
.mwl-card-img,
.mwl-card-photo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--mwl-photo);
}
.mwl-card-photo .mwl-img-missing {
	width: var(--mwl-photo);
	height: var(--mwl-photo);
}
.mwl-card-badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--mwl-green);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}
/* Save gift — a white disc in the photo's top-right corner, ringed like the
   type badge on a notification's avatar (bp-push-notifications .bppn-figure). */
.mwl-card-save {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Size: --mwl-save-size / --mwl-save-icon, applied in THEME OVERRIDES. */
	color: #3a352d;
	cursor: pointer;
	transition: color var(--mwl-transition), transform var(--mwl-transition);
}
.mwl-card-save:hover,
.mwl-card-save:focus-visible {
	color: var(--mwl-primary);
	transform: scale(1.06);
}
/* The "can be saved" gift with its plus: larger than the saved state's glyph,
   and still inside the round badge. Mobile size is set in the card media query. */
.mwl-card-save .mgd-icon--gift {
	font-size: var(--mwl-save-add-icon, 30px);
}
.mwl-card-save .mgd-icon--gift-filled,
.mwl-card-save.is-saved .mgd-icon--gift {
	display: none;
}
.mwl-card-save.is-saved .mgd-icon--gift-filled {
	display: inline-block;
}
.mwl-card-save.is-saved {
	color: var(--mwl-green);
	cursor: default;
	transform: none;
}

.mwl-card-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
}
.mwl-card-title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mwl-text);
	overflow-wrap: anywhere;
}
.mwl-card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
	overflow-wrap: anywhere;
	white-space: pre-line;     /* the caption's own line breaks */
}
/* Kept in place even without a link, so every card has the same rhythm. */
.mwl-card-buy {
	min-height: 20px;
	font-size: 14px;
	line-height: 1.4;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mwl-card-buy-label {
	font-weight: 600;
	color: var(--mwl-text);
}
.mwl-card-buy a {
	color: #007185;
	text-decoration: none;
}
.mwl-card-buy a:hover {
	color: #c7511f;
	text-decoration: underline;
}

.mwl-page-empty {
	color: var(--mwl-muted);
}

.mwl-own-cta-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--mwl-line);
}
.mwl-own-cta-wrap .mwl-share-btn {
	margin-top: 0;
}
/* The wishlist page's Share wears the tile's dark button, sized to a tile's
   width rather than stretched across the whole page. */
.mwl-share-btn--tile.mwl-share-btn--page {
	width: auto;
	min-width: 220px;
	padding: 0 20px;
}
.mwl-own-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--mwl-primary);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.mwl-own-cta:hover,
.mwl-own-cta:focus-visible {
	background: none;
	color: var(--mwl-primary-hover);
}
.mwl-own-cta-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mwl-primary);
	color: #fff;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

/* =========================================================================
   MOBILE
   ========================================================================= */
@media (max-width: 600px) {
	/* Two tiles a row, like Pinterest on a phone. */
	.mwl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.mwl-tile-title {
		font-size: 16px;
	}
	.mwl-tile-meta {
		font-size: 12px;
	}
	.mwl-tile-body {
		padding: 10px;
	}
	.mwl-share-btn--tile {
		font-size: 13px;
	}
	.mwl-create-plus {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}
	.mwl-create-text {
		font-size: 14px;
	}

	/* The create dialog becomes a full-height sheet. */
	.mwl-modal-overlay {
		align-items: flex-end;
		padding: 0;
	}
	.mwl-modal {
		max-width: none;
		max-height: 94vh;
		max-height: 94dvh;
		border-radius: var(--mwl-radius) var(--mwl-radius) 0 0;
	}
	.mwl-modal--sm {
		max-width: none;
	}
	.mwl-modal-header {
		padding: 14px 16px;
	}
	.mwl-modal-body {
		padding: 14px 16px;
	}
	.mwl-modal-footer {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}
	.mwl-modal-footer .mwl-btn {
		flex: 1;
	}
	.mwl-pick-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.mwl-page {
		padding: 20px 16px 36px;
	}
	.mwl-page--profile {
		padding: 4px 0 24px;
	}
	.mwl-page-title {
		font-size: 26px;
	}
	.mwl-page-meta {
		font-size: 14px;
	}
	/* Phone card: photo and name side by side, then the description and the
	   buy link across the full width. Nothing is clipped — the card grows to
	   fit. .mwl-card-info is unwrapped (display: contents) so its three
	   children land straight in the card's grid; the markup stays the one the
	   desktop row layout uses. */
	.mwl-card {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px 16px;
		align-items: start;
		padding: 16px;
		border: 1px solid #e3e3e3;
		border-radius: 4px;
		background: #fff;
	}
	.mwl-card-info {
		display: contents;
	}
	.mwl-card-photo {
		--mwl-photo: 88px;
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		width: 96px;
		height: 88px;
		aspect-ratio: auto;
	}
	/* Contain-fitted in the 96x88 box; the frame still hugs the picture so the
	   Save gift disc stays on its corner. */
	.mwl-card-img,
	.mwl-card-photo img {
		max-width: 96px;
		object-fit: contain;
	}
	.mwl-card-photo .mwl-img-missing {
		width: 96px;
		height: 88px;
	}
	.mwl-card-badge {
		left: 4px;
		bottom: 4px;
		padding: 2px 6px;
		font-size: 10px;
		white-space: nowrap;
	}
	.mwl-card-save {
		--mwl-save-size: 28px;
		--mwl-save-icon: 18px;
		--mwl-save-add-icon: 24px;
		top: 6px;
		right: 6px;
	}
	.mwl-card-title {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		font-size: 17px;
		font-weight: 700;
		line-height: 1.3;
		color: #1a1a1a;
		overflow-wrap: anywhere;
	}
	.mwl-card-desc {
		grid-column: 1 / -1;
		font-size: 14px;
		line-height: 1.5;
		color: #444;
		overflow-wrap: anywhere;
		white-space: pre-line;
	}
	.mwl-card-buy {
		grid-column: 1 / -1;
		min-height: 0;
		font-size: 14px;
		overflow: visible;
		white-space: normal;
		text-overflow: clip;
	}
	.mwl-card-buy-label {
		font-weight: 700;
	}
	.mwl-card-buy a {
		word-break: break-all;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.mwl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* =========================================================================
   THEME OVERRIDES
   BuddyX styles every <button> — including ones under #buddypress, which no
   class selector can outrank — with its own border, radius and shadow. The
   frame of each of our buttons is pinned here, in every state.
   ========================================================================= */
.mwl-tile--create,
.mwl-tile--create:hover,
.mwl-tile--create:focus,
.mwl-tile--create:active,
.mwl-pick-item,
.mwl-pick-item:hover,
.mwl-pick-item:focus,
.mwl-pick-item:active,
.mwl-own-cta,
.mwl-own-cta:hover,
.mwl-own-cta:focus {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
	padding: 0 !important;
	min-height: 0 !important;
}
.mwl-own-cta,
.mwl-own-cta:hover,
.mwl-own-cta:focus {
	padding: 6px 4px !important;
}

.mwl-share-btn,
.mwl-share-btn:hover,
.mwl-share-btn:focus,
.mwl-share-btn:active,
.mwl-pick-tab,
.mwl-pick-tab:hover,
.mwl-pick-tab:focus,
.mwl-pick-tab:active {
	border-radius: 999px !important;
	box-shadow: none !important;
}
.mwl-share-btn,
.mwl-pick-tab {
	border: 1px solid var(--mwl-line) !important;
}
.mwl-share-btn:hover,
.mwl-share-btn:focus-visible {
	border-color: var(--mwl-primary) !important;
}
.mwl-share-action,
.mwl-share-action:hover,
.mwl-share-action:focus,
.mwl-share-action:active,
.mwl-share-back,
.mwl-share-back:hover,
.mwl-share-back:focus {
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	background: none !important;
	padding: 6px 2px !important;
	min-height: 0 !important;
	color: var(--mwl-text) !important;
}
.mwl-share-action:hover .mwl-share-action-icon,
.mwl-share-action:focus-visible .mwl-share-action-icon {
	border-color: var(--mwl-primary);
	color: var(--mwl-primary);
}
.mwl-share-back,
.mwl-share-back:hover,
.mwl-share-back:focus {
	border-radius: 50% !important;
	padding: 0 !important;
}
.mwl-pick-tab.is-active,
.mwl-pick-tab.is-active:hover,
.mwl-pick-tab.is-active:focus {
	border-color: var(--mwl-text) !important;
	background: var(--mwl-text) !important;
	color: #fff !important;
}

.mwl-btn,
.mwl-btn:hover,
.mwl-btn:focus,
.mwl-btn:active {
	border-radius: 999px !important;
	box-shadow: none !important;
}
.mwl-btn--primary,
.mwl-btn--primary:hover,
.mwl-btn--primary:focus,
.mwl-btn--primary:disabled {
	border: 1px solid transparent !important;
	color: #fff !important;
}
.mwl-btn--primary,
.mwl-btn--primary:focus {
	background: var(--mwl-primary) !important;
}
.mwl-btn--primary:hover {
	background: var(--mwl-primary-hover) !important;
}
.mwl-btn--primary:disabled {
	background: #c5c2f5 !important;
}
.mwl-btn--ghost,
.mwl-btn--ghost:focus {
	background: #fff !important;
	color: var(--mwl-text) !important;
}
.mwl-btn--ghost:hover {
	background: var(--mwl-soft) !important;
	color: var(--mwl-text) !important;
}
.mwl-btn--ghost,
.mwl-btn--ghost:hover,
.mwl-btn--ghost:focus {
	border: 1px solid var(--mwl-line) !important;
}

.mwl-card-save,
.mwl-card-save:hover,
.mwl-card-save:focus,
.mwl-card-save:active,
.mwl-card-save:disabled {
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.12) !important;
	padding: 0 !important;
	min-height: 0 !important;
	opacity: 1 !important;
	/* The theme also squeezes the box to its 16px font size. */
	width: var(--mwl-save-size, 34px) !important;
	height: var(--mwl-save-size, 34px) !important;
	min-width: 0 !important;
	flex: none !important;
	font-size: var(--mwl-save-icon, 22px) !important;
	line-height: 1 !important;
}

.mwl-modal-close,
.mwl-modal-close:hover,
.mwl-modal-close:focus {
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-height: 0 !important;
}

/* The emoji button, pinned against the theme's <button> frame. */
.mwl-emoji-btn,
.mwl-emoji-btn:hover,
.mwl-emoji-btn:focus,
.mwl-emoji-btn:active {
	position: absolute !important;
	right: 8px !important;
	bottom: 8px !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 1.25rem !important;
	line-height: 1 !important;
}
.mwl-emoji-btn:hover,
.mwl-emoji-btn[aria-expanded="true"] {
	background: #f0f0f0 !important;
}

/* Tile card: the theme's frame for the × and the dark Share, every state. */
.mwl-tile-delete,
.mwl-tile-delete:hover,
.mwl-tile-delete:focus,
.mwl-tile-delete:active {
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	background: none !important;
	min-height: 0 !important;
	padding: 0 !important;
}
@media (hover: none), (max-width: 600px) {
	.mwl-tile-delete,
	.mwl-tile-delete:hover,
	.mwl-tile-delete:focus,
	.mwl-tile-delete:active {
		padding: 8px !important;
	}
}
.mwl-tile-delete:focus-visible {
	outline: none !important;
}

.mwl-share-btn.mwl-share-btn--tile,
.mwl-share-btn.mwl-share-btn--tile:focus,
.mwl-share-btn.mwl-share-btn--tile:active {
	border: 1px solid var(--mwl-dark) !important;
	border-radius: 10px !important;
	background: var(--mwl-dark) !important;
	color: #fff !important;
	min-height: 0 !important;
}
.mwl-share-btn.mwl-share-btn--tile:hover {
	border-color: var(--mwl-dark-hover) !important;
	background: var(--mwl-dark-hover) !important;
	color: #fff !important;
}
.mwl-share-btn.mwl-share-btn--tile:focus-visible {
	border-color: var(--mwl-dark-hover) !important;
	background: var(--mwl-dark-hover) !important;
	color: #fff !important;
	outline: 2px solid var(--mwl-primary) !important;
	outline-offset: 2px !important;
}

/* Delete in the confirm dialog. */
.mwl-btn--danger,
.mwl-btn--danger:focus,
.mwl-btn--danger:disabled {
	border: 1px solid transparent !important;
	background: var(--mwl-red) !important;
	color: #fff !important;
}
.mwl-btn--danger:hover,
.mwl-btn--danger:focus-visible {
	background: #c0392b !important;
	color: #fff !important;
}
.mwl-btn--danger:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.mwl-delete-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--mwl-muted);
}

/* The theme's heading and paragraph margins, and its button font size. */
.mwl-tile .mwl-tile-title,
.mwl-tile .mwl-tile-meta {
	margin: 0 !important;
}
.mwl-share-btn.mwl-share-btn--tile {
	font-size: 14px !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}
.mwl-share-btn--tile > span:not(.mwl-post-src) {
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 600px) {
	.mwl-share-btn.mwl-share-btn--tile {
		gap: 5px;
		padding: 0 8px !important;
		font-size: 13px !important;
	}
	.mwl-share-btn.mwl-share-btn--page {
		padding: 0 20px !important;
	}
}

/* The gift-count pill's 🎁, drawn by the system emoji font. */
.mwl-tile-emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 1.05em;
	line-height: 1;
}
