/**
 * The cookie and search dialogs, and the scroll lock for the open mobile menu.
 * Everything else about the header and footer lives in their Bricks templates.
 *
 * No display rule on the dialog itself, so [open] and the browser's own
 * closed state keep working. The enter animation is a keyframe on [open], not a
 * class set from script, so a fast close cannot leave it half marked.
 * All sizes in px: the theme root is 10px.
 */

.mimi-dialog {
	width: min(440px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: var(--bone, #F6F3EF);
	color: var(--slate, #1C2120);
}

.mimi-dialog[open] {
	animation: mimi-dialog-in 180ms ease-out;
}

.mimi-dialog::backdrop {
	background: rgba(14, 16, 16, .55);
}

@keyframes mimi-dialog-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mimi-dialog[open] { animation: none; }
}

/* First-visit banner: the cookie dialog opened non-modal sits in the corner. */
.mimi-dialog:not(:modal) {
	position: fixed;
	inset: auto 16px 16px auto;
	margin: 0;
	z-index: 100000;
	box-shadow: 0 0 0 1px rgba(28, 33, 32, .35), 0 12px 32px rgba(14, 16, 16, .3);
}

.mimi-dialog__box {
	position: relative;
	padding: 32px 28px 28px;
}

.mimi-dialog__title {
	margin: 0 40px 12px 0;
	font-family: var(--font-display, serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	color: var(--slate, #1C2120);
}

.mimi-dialog__text {
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--slate, #1C2120);
}

.mimi-dialog__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mimi-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mimi-dialog__btn {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--slate, #1C2120);
	color: var(--slate, #1C2120);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.mimi-dialog__btn--primary,
.mimi-dialog__btn[aria-pressed="true"] {
	background: var(--slate, #1C2120);
	color: var(--bone, #F6F3EF);
}

.mimi-dialog__btn:focus-visible,
.mimi-dialog__close:focus-visible,
.mimi-dialog__search input:focus-visible {
	outline: 2px solid #66440F;
	outline-offset: 2px;
}

.mimi-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--slate, #1C2120);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.mimi-dialog__search {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-right: 40px;
}

.mimi-dialog__search input[type="search"] {
	flex: 1 1 180px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(28, 33, 32, .45);
	border-radius: 0;
	background: #fff;
	color: var(--slate, #1C2120);
	font: inherit;
	font-size: 18px;
}

.mc-menu-open body {
	overflow: hidden;
}

.mimi-newsletter .screen-reader-text,
.mimi-dialog .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Live search results under the box. Nothing scrolls: six rows at most. */
.mimi-dialog__results:empty { display: none; }

.mimi-dialog__results { margin-top: 20px; }

.mimi-dialog__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(28, 33, 32, .15);
}

.mimi-dialog__list li { border-bottom: 1px solid rgba(28, 33, 32, .15); }

.mimi-dialog__list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 4px;
	color: var(--slate, #1C2120);
	text-decoration: none;
}

.mimi-dialog__list a:hover,
.mimi-dialog__list a:focus-visible { background: rgba(28, 33, 32, .06); }

.mimi-dialog__list a:focus-visible { outline: 2px solid #66440F; outline-offset: -2px; }

.mimi-dialog__list img,
.mimi-dialog__ph {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: cover;
	background: rgba(28, 33, 32, .08);
}

.mimi-dialog__meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.mimi-dialog__name {
	font-family: var(--font-display, serif);
	font-size: 22px;
	line-height: 1.1;
}

.mimi-dialog__cat { font-size: 14px; color: rgba(28, 33, 32, .7); }

.mimi-dialog__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

.mimi-dialog__all {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #66440F;
}

.mimi-dialog__none { margin: 0; font-size: 16px; line-height: 1.5; }

/* ------------------------------------------------------------ header icons
   V1's three utility icons and the burger are Phosphor (regular, MIT), the same
   font file V1 loads, drawn here as ::before glyphs so the Bricks elements stay
   plain text links. */

@font-face {
	font-family: "Phosphor";
	src: url("fonts/Phosphor.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

/* Shop flyout previews: the photos are portrait and her brief says never crop a face or a garment,
   so the whole photo sits in a narrow portrait column instead of a wide cropped box. */
.mc-flyout__in{grid-template-columns:1fr 320px;gap:96px}
.mc-flyout__fig{aspect-ratio:2/3}
.mc-flyout__fig img.mc-flyout__img{object-fit:contain;object-position:50% 50%}

/* Swatch rings (her 30 Oct feedback, M02). Her own palette values (black, charcoal, navy, chocolate, plum)
   sink into the dark page, so every colourway swatch carries a light 1px ring. A shadow, not a border, so
   nothing shifts and the selected-state outline still shows. */
.bricks-variation-swatches .bricks-swatch-button span,
.mimi-card__sw .mimi-dot,
.mimi-swatch__chip {
	box-shadow: 0 0 0 1px rgba(246, 243, 239, .55);
}

/* Embroidered footer logo (her 30 Oct feedback, G01 and M01): larger, with a soft dark edge so the gold
   holds against the Warm Taupe footer on a phone. */
.mc-foot__logo img{height:76px;filter:drop-shadow(0 1px 1px rgba(40,26,12,.45))}
