/* ==========================================================================
   Chair: the salon's objects, as block styles on core blocks.

   Loaded on the site and in the editor. Each is drawn from design/mirror/
   mirror.css and works on a core block's own markup, so an owner swaps the
   photograph with the image block's Replace:

   - Hand mirror      core/image, core/post-featured-image
   - Station mirror   core/image, core/post-featured-image
   - Shelf            core/group
   - Counter          core/separator
   - Chair back       core/group (decoration; your exact paint)

   The hand mirror is one <figure> and one <img>: the black frame is the
   figure's border, the chrome bezel its padding, the collar and handle its
   ::before and ::after, outside the image box (so the figure keeps
   overflow: visible). On the site the photograph is wrapped in
   .varnify-chair-glass, which adds the one glint.
   ========================================================================== */

/* ---- The hand mirror ---- */
.is-style-varnify-chair-hand-mirror,
.varnify-chair-hand-mirror {
	--w: 280px;
	--tilt: -6deg;
	--chrome: linear-gradient(160deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 40%, var(--wp--preset--color--chrome-lo) 75%, var(--wp--preset--color--chrome));
	position: relative;
	box-sizing: border-box;
	width: var(--w);
	max-width: none;
	aspect-ratio: 0.76;
	margin: 0;
	padding: calc(var(--w) * .008);
	border: calc(var(--w) * .042) solid var(--wp--preset--color--mirror);
	border-radius: 50%;
	background: var(--chrome);
	rotate: var(--tilt);
	transform-origin: 50% 150%;
	overflow: visible;
	filter: drop-shadow(0 calc(var(--w) * .06) calc(var(--w) * .05) rgba(31, 18, 24, .28));
}
.is-style-varnify-chair-hand-mirror img,
.varnify-chair-hand-mirror img,
.is-style-varnify-chair-hand-mirror .components-resizable-box__container {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--focus, 50% 40%);
	border-radius: 50%;
}
.varnify-chair-glass {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
}
.varnify-chair-glass::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(60% 40% at 28% 18%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}
/* The collar, where the glass meets the handle. */
.is-style-varnify-chair-hand-mirror::before,
.varnify-chair-hand-mirror::before {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--w) * 1.2146);
	width: calc(var(--w) * .19);
	height: calc(var(--w) * .1);
	translate: -50% 0;
	background:
		linear-gradient(var(--wp--preset--color--mirror), var(--wp--preset--color--mirror)) 0 0 / 100% 40% no-repeat,
		linear-gradient(90deg, var(--wp--preset--color--chrome-lo), var(--wp--preset--color--chrome-hi) 45%, var(--wp--preset--color--chrome) 70%, var(--wp--preset--color--chrome-lo)) 0 52% / 100% 22% no-repeat,
		var(--wp--preset--color--mirror);
	clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
	pointer-events: none;
}
/* The handle. */
.is-style-varnify-chair-hand-mirror::after,
.varnify-chair-hand-mirror::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--w) * 1.3096);
	width: calc(var(--w) * .15);
	height: var(--handle, calc(var(--w) * .9));
	translate: -50% 0;
	background: linear-gradient(90deg, #0c0a0b, var(--wp--preset--color--mirror-2) 38%, #3a3236 46%, var(--wp--preset--color--mirror) 70%, #0c0a0b);
	clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
	border-radius: 0 0 40% 40% / 0 0 6% 6%;
	pointer-events: none;
}
.is-style-varnify-chair-hand-mirror figcaption {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	rotate: calc(-1 * var(--tilt));
	margin-top: calc(var(--w) * .3);
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-2);
}

/* Sizes: the hero, a lead pair, a small pair, the room. */
.varnify-chair-mirror--hero { --w: clamp(300px, 25vw, 372px); --tilt: -8deg; }
.varnify-chair-mirror--pair { --w: clamp(200px, 21vw, 300px); --tilt: 7deg; --handle: calc(var(--w) * .5); }
.varnify-chair-mirror--small { --w: clamp(130px, 11vw, 168px); --tilt: 7deg; --handle: calc(var(--w) * .55); }
.varnify-chair-mirror--room { --w: clamp(220px, 22vw, 320px); --tilt: 6deg; --handle: calc(var(--w) * .6); }
.varnify-chair-stylist-hero__station .varnify-chair-mirror--small { --w: clamp(150px, 13vw, 190px); --handle: calc(var(--w) * .6); }
.varnify-chair-book__side .varnify-chair-hand-mirror { --w: clamp(240px, 22vw, 320px); --handle: calc(var(--w) * .5); }
.varnify-chair-done .varnify-chair-hand-mirror { --w: 230px; --handle: 90px; }

@media (max-width: 860px) {
	.varnify-chair-mirror--hero { --w: 232px; --handle: 330px; }
	.varnify-chair-pair--lead .varnify-chair-mirror--pair { --w: 168px; --handle: 60px; }
	.varnify-chair-mirror--small { --w: 128px; }
	.varnify-chair-stylist-hero__station .varnify-chair-mirror--small { --w: 128px; }
}

/* ---- The station mirror: arched, black frame, chrome bezel ---- */
.is-style-varnify-chair-station,
.varnify-chair-station-mirror {
	position: relative;
	box-sizing: border-box;
	display: block;
	margin: 0;
	aspect-ratio: var(--ratio, 0.72);
	padding: 3px;
	border: 6px solid var(--wp--preset--color--mirror);
	border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
	background: linear-gradient(160deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 45%, var(--wp--preset--color--chrome-lo));
	box-shadow: 0 16px 22px -18px rgba(31, 18, 24, .55);
}
.is-style-varnify-chair-station img,
.varnify-chair-station-mirror img,
.is-style-varnify-chair-station .components-resizable-box__container {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
	border-radius: 50% 50% 5px 5px / 33% 33% 5px 5px;
}
.is-style-varnify-chair-station::after,
.varnify-chair-station-mirror::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50% 50% 5px 5px / 33% 33% 5px 5px;
	background: linear-gradient(115deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 38%);
	pointer-events: none;
}
.is-style-varnify-chair-station figcaption { margin-top: .6em; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }

/* ---- The shelf: black glass with a chrome front edge ---- */
.is-style-varnify-chair-shelf,
.varnify-chair-shelf {
	position: relative;
	background: linear-gradient(180deg, var(--wp--preset--color--mirror-2), var(--wp--preset--color--mirror) 60%);
	color: var(--wp--preset--color--on-mirror);
	border-radius: 6px;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .42),
		inset 0 3px 0 rgba(0, 0, 0, .5),
		0 14px 20px -14px rgba(31, 18, 24, .6);
}
.is-style-varnify-chair-shelf { padding: 18px 22px; }
.is-style-varnify-chair-shelf a:not(.wp-element-button) { color: var(--wp--preset--color--on-mirror); }

/* ---- The counter under the stations ---- */
hr.wp-block-separator.is-style-varnify-chair-counter,
.varnify-chair-counter {
	display: block;
	height: 14px;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	border: 0;
	border-radius: 3px;
	opacity: 1;
	background: linear-gradient(180deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 30%, var(--wp--preset--color--chrome-lo) 31%, var(--wp--preset--color--mirror) 32%, var(--wp--preset--color--mirror-2));
	box-shadow: 0 10px 14px -10px rgba(31, 18, 24, .5);
}

/* ---- The chair back: channel-tufted upholstery in your exact paint ---- */
.is-style-varnify-chair-chair-back {
	--welt: color-mix(in oklab, var(--wp--preset--color--paint), #000 30%);
	min-height: 200px;
	border-radius: 48% 48% 12px 12px / 20% 20% 12px 12px;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, transparent 84%, var(--welt) 84% calc(84% + 3px), rgba(255, 255, 255, .1) calc(84% + 3px), rgba(0, 0, 0, .18) 100%),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .26) 0, rgba(0, 0, 0, .04) 7px, rgba(255, 255, 255, .10) 18px, rgba(255, 255, 255, .03) 30px, rgba(0, 0, 0, .2) 44px),
		var(--wp--preset--color--paint);
	box-shadow: inset 0 0 0 3px var(--welt), inset 0 -26px 30px -18px rgba(0, 0, 0, .4), 0 22px 30px -24px rgba(31, 18, 24, .6);
}

/* ---- The headrest (barbershop): a barber chair's padded headrest on its
   chrome post, the pad in your exact paint, and a roll of neck strips
   standing on the shelf beside it. The pad is the element's ::before, the
   roll its ::after; the post and its bracket are the element's own
   background, so the group block holds it all. ---- */
.is-style-varnify-chair-headrest {
	--welt: color-mix(in oklab, var(--wp--preset--color--paint), #000 34%);
	--chrome: linear-gradient(90deg, var(--wp--preset--color--chrome-lo), var(--wp--preset--color--chrome-hi) 38%, var(--wp--preset--color--chrome) 62%, var(--wp--preset--color--chrome-lo));
	position: relative;
	min-height: 200px;
	background:
		/* The bracket under the pad. */
		linear-gradient(180deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 40%, var(--wp--preset--color--chrome-lo)) 50% 39% / 34% 3.2% no-repeat,
		/* The post, down to the shelf. */
		linear-gradient(90deg, var(--wp--preset--color--chrome-lo), var(--wp--preset--color--chrome-hi) 38%, var(--wp--preset--color--chrome) 62%, var(--wp--preset--color--chrome-lo)) 50% 100% / 8% 64% no-repeat,
		/* Its collar. */
		linear-gradient(90deg, var(--wp--preset--color--mirror), var(--wp--preset--color--mirror-2) 45%, var(--wp--preset--color--mirror)) 50% 58% / 11% 5% no-repeat;
}
/* The pad: a wide cushion in two stitched channels, piped round the edge. */
.is-style-varnify-chair-headrest::before {
	content: "";
	position: absolute;
	left: 3%;
	right: 3%;
	top: 4%;
	height: 34%;
	border-radius: 16% / 50%;
	background:
		radial-gradient(90% 55% at 40% 18%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 62%),
		linear-gradient(180deg, transparent calc(50% - 2px), var(--welt) calc(50% - 2px) calc(50% + 1px), rgba(255, 255, 255, .12) calc(50% + 1px) calc(50% + 3px), transparent calc(50% + 3px)),
		linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .06) 45%, rgba(255, 255, 255, .06) 55%, rgba(0, 0, 0, .28)),
		var(--wp--preset--color--paint);
	box-shadow: inset 0 0 0 3px var(--welt), inset 0 -14px 22px -12px rgba(0, 0, 0, .45), 0 22px 28px -22px rgba(31, 18, 24, .65);
}
/* The neck strips: a roll of white crepe paper, its spiral on top. */
.is-style-varnify-chair-headrest::after {
	content: "";
	position: absolute;
	right: 4%;
	bottom: 0;
	width: 26%;
	aspect-ratio: 1 / 1.05;
	border-radius: 50% / 14%;
	background:
		radial-gradient(ellipse 50% 13.5% at 50% 13.5%, #d9cfc4 0 16%, #fbf9f6 17% 30%, #ece6df 31% 32%, #fbf9f6 33% 52%, #ece6df 53% 54%, #fbf9f6 55% 74%, #e5ded6 75% 98%, transparent 100%),
		repeating-linear-gradient(90deg, #f6f2ed 0 2px, #e4ddd5 2px 3px, #faf8f5 3px 5px),
		#f4f0eb;
	box-shadow: inset -10px 0 14px -8px rgba(31, 18, 24, .25), inset 8px 0 10px -8px rgba(255, 255, 255, .8), 0 14px 16px -12px rgba(31, 18, 24, .5);
}

/* ---- The desk mirror (nail studio): a round glass on a chrome stem ----
   What stands on a nail tech's desk. The same black frame, chrome bezel and
   glint as the hand mirror; the stem and the round foot are the figure's
   ::before and ::after, so the image block still owns the photograph. */
.is-style-varnify-chair-desk-mirror,
.varnify-chair-desk-mirror {
	--w: 280px;
	--tilt: 0deg;
	--stem: calc(var(--w) * .34);
	--chrome: linear-gradient(160deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 40%, var(--wp--preset--color--chrome-lo) 75%, var(--wp--preset--color--chrome));
	position: relative;
	box-sizing: border-box;
	width: var(--w);
	max-width: none;
	aspect-ratio: 1;
	margin: 0 0 calc(var(--stem) + var(--w) * .1);
	padding: calc(var(--w) * .01);
	border: calc(var(--w) * .05) solid var(--wp--preset--color--mirror);
	border-radius: 50%;
	background: var(--chrome);
	rotate: var(--tilt);
	transform-origin: 50% 140%;
	overflow: visible;
	filter: drop-shadow(0 calc(var(--w) * .05) calc(var(--w) * .05) rgba(31, 18, 24, .28));
}
.is-style-varnify-chair-desk-mirror img,
.varnify-chair-desk-mirror img,
.is-style-varnify-chair-desk-mirror .components-resizable-box__container {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
	border-radius: 50%;
}
/* The stem, with a chrome pivot where it meets the frame. */
.is-style-varnify-chair-desk-mirror::before,
.varnify-chair-desk-mirror::before {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% + var(--w) * .035);
	width: calc(var(--w) * .07);
	height: var(--stem);
	translate: -50% 0;
	border-radius: 3px 3px 0 0;
	background:
		radial-gradient(circle at 50% calc(var(--w) * .035), var(--wp--preset--color--chrome-hi) 0, var(--wp--preset--color--chrome-lo) calc(var(--w) * .03), transparent calc(var(--w) * .032)) 0 0 / 100% calc(var(--w) * .07) no-repeat,
		linear-gradient(90deg, var(--wp--preset--color--chrome-lo), var(--wp--preset--color--chrome-hi) 40%, var(--wp--preset--color--chrome) 62%, var(--wp--preset--color--chrome-lo));
	pointer-events: none;
}
/* The round foot on the desk. */
.is-style-varnify-chair-desk-mirror::after,
.varnify-chair-desk-mirror::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% + var(--w) * .035 + var(--stem) - var(--w) * .045);
	width: calc(var(--w) * .58);
	height: calc(var(--w) * .1);
	translate: -50% 0;
	border-radius: 50%;
	background:
		radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, var(--wp--preset--color--mirror-2), var(--wp--preset--color--mirror) 70%);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 calc(var(--w) * .03) calc(var(--w) * .04) calc(var(--w) * -.02) rgba(31, 18, 24, .5);
	pointer-events: none;
}
.is-style-varnify-chair-desk-mirror figcaption { position: absolute; top: 100%; left: 0; right: 0; margin-top: calc(var(--stem) + var(--w) * .2); text-align: center; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink-2); }

/* ---- The hand rest (nail studio): the padded cushion a client's hand
   lies on, channel-stitched, in your exact paint. Decorative. ---- */
.is-style-varnify-chair-hand-rest {
	--welt: color-mix(in oklab, var(--wp--preset--color--paint), #000 30%);
	min-height: 80px;
	border-radius: 999px 999px 18px 18px / 120px 120px 18px 18px;
	background:
		radial-gradient(90% 70% at 50% 8%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 62%),
		linear-gradient(180deg, transparent 70%, var(--welt) 70% calc(70% + 3px), rgba(255, 255, 255, .08) calc(70% + 3px), rgba(0, 0, 0, .2) 100%),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0, rgba(0, 0, 0, .03) 9px, rgba(255, 255, 255, .1) 22px, rgba(255, 255, 255, .03) 36px, rgba(0, 0, 0, .18) 52px),
		var(--wp--preset--color--paint);
	box-shadow: inset 0 0 0 3px var(--welt), inset 0 -18px 24px -16px rgba(0, 0, 0, .45), 0 18px 26px -20px rgba(31, 18, 24, .65);
}

/* ---- An empty hand mirror: plaster in the glass (the 404) ---- */
.varnify-chair-empty-mirror {
	--w: clamp(200px, 22vw, 300px);
	--tilt: 6deg;
	position: relative;
	box-sizing: border-box;
	width: var(--w);
	aspect-ratio: 0.76;
	padding: calc(var(--w) * .008);
	border: calc(var(--w) * .042) solid var(--wp--preset--color--mirror);
	border-radius: 50%;
	background:
		linear-gradient(160deg, var(--wp--preset--color--plaster-lift), var(--wp--preset--color--plaster-deep)) content-box,
		linear-gradient(160deg, var(--wp--preset--color--chrome-hi), var(--wp--preset--color--chrome) 40%, var(--wp--preset--color--chrome-lo) 75%);
	rotate: var(--tilt);
	transform-origin: 50% 150%;
	margin-bottom: calc(var(--w) * .8);
	filter: drop-shadow(0 calc(var(--w) * .06) calc(var(--w) * .05) rgba(31, 18, 24, .28));
}
.varnify-chair-empty-mirror::before,
.varnify-chair-empty-mirror::after {
	content: "";
	position: absolute;
	left: 50%;
	translate: -50% 0;
	background: var(--wp--preset--color--mirror);
}
.varnify-chair-empty-mirror::before { top: calc(var(--w) * 1.2146); width: calc(var(--w) * .19); height: calc(var(--w) * .1); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.varnify-chair-empty-mirror::after { top: calc(var(--w) * 1.3096); width: calc(var(--w) * .15); height: calc(var(--w) * .6); clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }

/* In the editor: the image block's own toolbar and resize handles sit on the
   figure, so a selected mirror stands upright; the editor draws its selection
   outline with ::after, so while selected the handle gives way to it. The
   chair back and the empty mirror are empty groups: no layout picker on top. */
.editor-styles-wrapper .is-style-varnify-chair-hand-mirror.is-selected { rotate: 0deg; }
.editor-styles-wrapper .block-editor-block-list__block.is-style-varnify-chair-hand-mirror.is-selected::after,
.editor-styles-wrapper .block-editor-block-list__block.is-style-varnify-chair-hand-mirror:focus::after {
	background: none;
	clip-path: none;
	translate: none;
	width: auto;
	height: auto;
	border-radius: 50%;
}
.editor-styles-wrapper .is-style-varnify-chair-hand-rest .block-editor-block-variation-picker,
.editor-styles-wrapper .is-style-varnify-chair-hand-rest .components-placeholder,
.editor-styles-wrapper .is-style-varnify-chair-hand-rest .wp-block-group__placeholder,
.editor-styles-wrapper .is-style-varnify-chair-hand-rest .block-list-appender,
.editor-styles-wrapper .is-style-varnify-chair-headrest .block-editor-block-variation-picker,
.editor-styles-wrapper .is-style-varnify-chair-headrest .components-placeholder,
.editor-styles-wrapper .is-style-varnify-chair-headrest .wp-block-group__placeholder,
.editor-styles-wrapper .is-style-varnify-chair-headrest .block-list-appender,
.editor-styles-wrapper .is-style-varnify-chair-chair-back .block-editor-block-variation-picker,
.editor-styles-wrapper .is-style-varnify-chair-chair-back .components-placeholder,
.editor-styles-wrapper .is-style-varnify-chair-chair-back .wp-block-group__placeholder,
.editor-styles-wrapper .is-style-varnify-chair-chair-back .block-list-appender,
.editor-styles-wrapper .varnify-chair-empty-mirror .block-editor-block-variation-picker,
.editor-styles-wrapper .varnify-chair-empty-mirror .components-placeholder,
.editor-styles-wrapper .varnify-chair-empty-mirror .wp-block-group__placeholder,
.editor-styles-wrapper .varnify-chair-empty-mirror .block-list-appender { display: none; }
