/**
 * The commission page — only what the theme cannot know about.
 *
 * The theme has dressed this page since before the plugin could print it:
 * commission.css carries the hero, the dimensions row, the preset chips, the
 * loom note, the limits columns, the quote box and the request form's grid;
 * guide.css carries `.field`, which is what every select in the spec fieldset
 * wears; sections.css carries the pill row. None of that is repeated here.
 *
 * What is here is the three things the plugin invented on this page — the
 * photograph square the request form can carry, the delivery address it now
 * asks for, and the handful of states a payload-driven form needs that a static
 * prototype never had. And one thing more, which is the short list of places
 * where the theme's rules were written for a page that did not yet hold a form
 * full of selects, two fieldsets and a file input: nothing there is wrong, it
 * simply has never been asked these questions, and only a sheet that knows
 * about them can answer.
 *
 * The drawing this file used to help dress is gone. The rug is no longer shown
 * before it is asked for; the spec is asked for in the form itself, in real
 * named controls that work with the script switched off, and the rules for the
 * cards and swatches that carried it went out with the section they lived in.
 */

/*
 * There is no longer an offer block to dress. It was a banner under the room
 * planner with a sheet of its own; it is now one row at the foot of the theme's
 * size list, in the theme's own styles, and this module only answers where that
 * row should point.
 */

/* ── Where the browser is still drawing the control ──────────────────────── */

/*
 * Six selects, and until this rule the browser drew every one of them itself: a
 * grey system arrow on Windows, a tinted well on a Mac, a bevelled box on a page
 * that has no bevels anywhere in it. `.field` in guide.css undresses an input
 * and a textarea down to a single line under the text, which is the shop's whole
 * idea of a form field — and a select is the one control that quietly ignores
 * being undressed, so the six questions that decide the rug were the six that
 * looked least like the shop asking them.
 *
 * The chevron is not a new drawing. It is the one wp-admin already paints on
 * `.yselect` — the same path, the same `--muted` stroke — copied on purpose, so
 * that the menu a customer opens and the menu the shop opens in the back office
 * are recognisably the same mark.
 *
 * Where it sits is the one thing that had to change. Admin insets it 13px
 * because an admin select is a padded box with a border all the way round;
 * `.field` gives this one no side padding at all, so an inset chevron would
 * float in from an edge that is not there. It goes flush right, and
 * `padding-inline-end` is what keeps a colour named in full from running along
 * underneath it.
 */
.yemma-commission .field select {
	appearance: none;
	padding-inline-end: 1.6rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7B6B' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 15px;
}

/*
 * And this is why the two-column rows were never level.
 *
 * A select and a text input in this form carry the same font, the same
 * `font-size: .95rem` and the same `padding: .75rem 0`, and still compute
 * different heights, because neither one was told how tall a line is: the input
 * takes the font's own normal line box and the select takes whatever the
 * platform thinks a menu row should be. The difference is about three pixels,
 * and it lands on the bottom rule — the only thing either control draws — so
 * every row pairing a select with a text box had one underline sitting below
 * the other.
 *
 * Naming the leading takes that decision away from the browser and gives both
 * boxes the same 47.5px, measured, with nothing left over. Padding is left
 * exactly as the theme set it: what changes here is what the text inside the box
 * measures, never what the box is padded by.
 */
.yemma-commission .field input,
.yemma-commission .field select,
.yemma-commission .field textarea {
	line-height: 1.5;
}

/* ── The spec fieldset inside the request form ───────────────────────────── */

/*
 * A `<fieldset>` is the only element in HTML that says "these controls are one
 * question", and shape, size, weave, pattern, colour and tassels are exactly
 * that: they describe one rug. Nothing in the theme has ever styled one,
 * because until the configurator was deleted this page had no fieldset to
 * style — so the whole of the browser's own chrome comes off here.
 *
 * `min-width: 0` is not tidying up after the others. A fieldset's default
 * `min-inline-size` is `min-content`, and it is the one box in CSS that refuses
 * to shrink below its widest child. Sitting in the `.mform` grid as a
 * `.mform__full` item, that lets a single long option label — a weave named in
 * full, a colour called "Saffron on undyed ground" — push the entire form wider
 * than the phone it is being read on.
 */
.yemma-commission .mspecf {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/*
 * The legend is the shop's own words — `design_heading`, "Your rug" until she
 * renames it. It names a block of controls rather than opening a section, so it
 * is set in the same small caps the page gives every other control heading,
 * and deliberately does not compete with the `<h2>` a few lines above it.
 *
 * `padding: 0` because a legend is the one element the browser insets from both
 * sides on its own, to leave a gap in a border that is no longer drawn.
 */
.yemma-commission .mspecf > legend {
	padding: 0;
	margin-bottom: 1.1rem;
	font-size: var(--fs-xs, .72rem);
	font-weight: 500;
	letter-spacing: var(--track-label, .26em);
	text-transform: uppercase;
	color: var(--muted-d, #6b5e51);
}

/*
 * The gap the grid cannot reach.
 *
 * `.mform` is a grid with `gap: 1rem 1.4rem`, and a gap belongs to the grid, not
 * to the boxes in it: it spaces the fieldset from the fields beside it and stops
 * dead at the fieldset's own edge, because the fieldset is one grid item and
 * everything inside it is somebody else's problem. Inside, shape, weave, pattern
 * and tassels are in ordinary flow with no margins of their own, so the rhythm
 * the rest of the form keeps went to nothing exactly where the form turns
 * serious — eight controls stacked touching, measuring 0px between them.
 *
 * The spacing is put back by hand, and on the second box of a pair rather than
 * on every box, so the first control still sits where the legend's own margin
 * left it and the fieldset does not open with a gap above nothing.
 */
.yemma-commission .mspecf > .field + .field,
.yemma-commission .mspecf > .cblock + .field {
	margin-top: 1.4rem;
}

/*
 * The colour heading, which is a heading with no block around it.
 *
 * `.cblock` is what the theme gives a group of controls — a rule across the top,
 * padding under the rule, margin above it — and the colour slots are the one
 * group on this page forbidden to have one. The script decides which fields to
 * replace when somebody picks a pattern by climbing out of a select until it
 * reaches a node another slot also lives in, and a wrapper holding exactly these
 * fields and nothing else is such a node: the last slot standing would carry it
 * off the page with it. So the fields hang off the fieldset and the heading is a
 * bare `.cblock__h` beside them, which left it wearing nothing but its own
 * bottom margin, sitting on the pattern select above.
 *
 * It is given the separator here instead, in the values `.cblock` would have
 * given it, so the eye reads a new group starting — and the box it is not
 * allowed to have stays unbuilt.
 */
.yemma-commission .mspecf > .cblock__h {
	border-top: 1px solid var(--line, #dfd4c2);
	padding-top: 1.3rem;
	margin-top: 1.4rem;
}

/*
 * A line of fine print under a select, inside the field it belongs to — the rug
 * she started from, under the pattern; the date the message should carry, under
 * when she needs it. The theme's `.mform__fine` sets the type and nothing about
 * spacing, because the notes it was written for are inline spans that simply
 * fall to the line under their box. These are paragraphs, and with no gap the
 * sentence sits on the rule of the control it explains.
 *
 * A margin and never a `display`. The script shows and hides both with the
 * `hidden` attribute, and an author `display` would out-rank the browser's own
 * `[hidden]` rule and print them for every answer.
 */
.yemma-commission .field > p.mform__fine {
	margin-top: .6rem;
}

/*
 * The rug she started from, when the shop offers no patterns at all and there
 * is no pattern question to stand under: it takes the question's place in the
 * fieldset, spaced as a field of its own would be, and so does whatever follows
 * it.
 */
.yemma-commission .mspecf > p.mform__fine,
.yemma-commission .mspecf > p.mform__fine + .field {
	margin-top: 1.4rem;
}

/*
 * A choice the chosen weave rules out — a fringe on a knotted pile, say.
 *
 * The old page dimmed a card and set `aria-disabled`, because a `<button>` has
 * no other way to say it. A `<select>` does: `disabled` on the option already
 * refuses the click and already tells a screen reader, and the only thing
 * missing is that it should look refused. It stays in the list rather than
 * being removed, so the menu does not change length underneath somebody who is
 * halfway down it.
 */
.yemma-commission .mspecf option:disabled {
	color: var(--muted, #8a7b6b);
}

/*
 * A round rug has one measurement, so the script hides the length field and the
 * × that separates it from the width.
 *
 * `.dims` is a three-column grid and a hidden grid item leaves its column
 * standing: the width input would keep a third of the row while two empty
 * thirds sat beside it. This collapses the row to the one number that is left.
 * It matches nothing at all while both fields are shown, which is the point —
 * the rule costs a rectangle nothing.
 */
.yemma-commission .mspecf .dims:has([data-yemma-length-wrap][hidden]) {
	grid-template-columns: 1fr;
}

/*
 * The total line on the day it is a sentence and not a figure.
 *
 * `.quote-box__total b` is drawn for "$1,240" — serif, `clamp(1.9rem, 3vw,
 * 2.5rem)`, leading of exactly one — and at that size a price reads as the
 * answer the box was built to give. The same rule catches the shop's other
 * answer, the one that arrives when the plan refuses to quote, and sets a whole
 * sentence in it: thirty-eight pixels of "We price every commission by hand."
 * running half the width of the form, shouting a refusal in the voice reserved
 * for the number.
 *
 * `is-said` is the one word the page and the script both use for "this line is
 * prose", and all it buys is prose treatment. The serif stays, because the line
 * is still the answer to the question the box is asking; only its size, its
 * leading and its right to break across lines change.
 */
.yemma-commission .quote-box__total b.is-said {
	max-width: 32ch;
	font-size: 1.05rem;
	line-height: 1.55;
	text-align: right;
	text-wrap: balance;
}

/* ── Where the rug goes ──────────────────────────────────────────────────── */

/*
 * The delivery address, asked for with the request because the order raised
 * once a price is agreed is made out to it. A `<fieldset>` for the reason the
 * spec is one: country, town, street, postcode and phone answer one question —
 * where is this going — and a screen reader announces them as one group, named
 * by the legend.
 *
 * It is taken apart the way the spec's fieldset is and for the same two
 * reasons: the browser's own chrome comes off, and `min-width: 0` takes away a
 * fieldset's `min-content` floor, which would otherwise let the longest country
 * in the list push the whole form wider than the phone it is read on.
 *
 * What it does not share is the spec's bare top. The spec opens the form and
 * needs nothing over it; this group arrives in the middle, after the name and
 * the email, and without a line it read as five more fields that happened to be
 * in a row. So it is given the separator `.cblock` gives a group, in the same
 * values — and the line is drawn by the legend, not by the fieldset. A
 * fieldset's top border is the one border a browser breaks around its legend,
 * so a line there would run into the heading from both sides instead of
 * sitting over it.
 */
.yemma-commission .mshipf {
	min-width: 0;
	margin: .4rem 0 0;
	padding: 0;
	border: 0;
}

.yemma-commission .mshipf > legend {
	width: 100%;
	padding: 1.3rem 0 0;
	margin-bottom: 1.1rem;
	border-top: 1px solid var(--line, #dfd4c2);
	font-size: var(--fs-xs, .72rem);
	font-weight: 500;
	letter-spacing: var(--track-label, .26em);
	text-transform: uppercase;
	color: var(--muted-d, #6b5e51);
}

/* Why an address is wanted before there is a price, said before the fields. */
.yemma-commission .mshipf__note {
	margin-bottom: 1.1rem;
}

/*
 * The form's own two columns, restated. `.mform`'s grid spaces the fieldset
 * and stops at its edge — the fieldset is one grid item and what is inside it is
 * ordinary flow — so the five fields would otherwise stack at full width, which
 * on a desktop is a postcode box a metre long.
 *
 * `min-width: 0` on each field for the country. Select2 draws the chosen name
 * on one line that does not wrap, and a grid track will not shrink below what
 * its item's content asks for — so "Heard Island and McDonald Islands" would
 * widen its column and push the town box into a sliver.
 *
 * One column below 760px, which is where the theme folds `.mform` itself.
 */
.yemma-commission .mshipf__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.4rem;
}

.yemma-commission .mshipf__grid > .field {
	min-width: 0;
}

.yemma-commission .mshipf__wide {
	grid-column: 1 / -1;
}

/*
 * While the state box is showing, the street gives up its whole row.
 *
 * The box makes five half-width fields around the one wide street, and five
 * halves cannot pair: the telephone was left alone on the last row with an
 * empty half beside it. With the street halved too, the rows pair up again —
 * country beside town, street beside state, postcode beside telephone. A
 * country with no state keeps the wide street, and the rows it always had.
 * Without the script the box is always showing, so that page pairs the same
 * way. Phones are one column and never see any of this.
 */
.yemma-commission .mshipf__grid:has(> [data-yemma-region]:not([hidden])) > .mshipf__wide {
	grid-column: auto;
}

@media (max-width: 760px) {
	.yemma-commission .mshipf__grid {
		grid-template-columns: 1fr;
	}
}

/* ── The photograph the request can carry ────────────────────────────────── */

/*
 * A bare `<input type="file">` is the one control on this page the theme never
 * had to dress, and it shows — a grey system button and the words "No file
 * chosen", sitting directly under a label set in the shop's small caps. The
 * review form answered this long ago with a dashed square a photograph goes
 * into, and this is that square in the same idiom.
 *
 * Written out rather than borrowed, and the distinction matters: those rules are
 * scoped to `#review_form`, and reviews.css is not loaded on this page at all.
 * Nothing here is an import. It is the same design, said again.
 *
 * One square, where the review form has five. A review is asking for evidence
 * and takes as much of it as it is offered; a commission is asking "is this the
 * rug you mean", and that is one photograph. Capping the width is what keeps it
 * an object the eye reads as a square — the field is a `.mform__full` row, and
 * an uncapped dropzone would stretch the whole way across it.
 *
 * `position: relative` is here for the clear button, which is a sibling of the
 * label and not a child of it. A `<button>` inside a `<label>` is a press the
 * browser hands on to the label's own control, so a customer reaching for the ×
 * to take the photograph off would have been given the file picker again.
 */
.yemma-commission .cpic {
	position: relative;
	width: min(150px, 100%);
}

/*
 * The square itself, which is a `<label>` and therefore arrives already wearing
 * `.field label` — small caps and a half-rem margin under it, written for the
 * word above a text box. That is overruled here rather than avoided, because
 * the label is the only thing on the page that can open the picker by being
 * clicked, and it has to be the square for the whole square to be pressable.
 */
.yemma-commission .cpic__slot {
	position: relative;
	display: grid;
	place-items: center;
	/*
	 * And the rows together, which `place-items` does not do. It centres each
	 * item inside its own row; the rows themselves are auto-sized and still
	 * share out the whole square, so the mark and the words drift to opposite
	 * ends of it. The review page's squares are a fifth of this one's width and
	 * never showed the gap — at 150px it reads as two unrelated things.
	 */
	align-content: center;
	gap: .3rem;
	margin: 0;
	padding: .4rem;
	overflow: hidden;
	aspect-ratio: 1;
	text-align: center;
	font-size: var(--fs-xs, .72rem);
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted-d, #6b5e51);
	background: var(--bone-2, #f3ece0);
	border: 1px dashed var(--line-2, #c9bca6);
	cursor: pointer;
	transition: border-color .3s var(--ease, ease), color .3s var(--ease, ease);
}

.yemma-commission .cpic__slot:hover {
	border-color: var(--ink, #14100d);
}

/*
 * The focus ring belongs to the square and not to `.cpic`, because the input
 * lives in the label and the clear button does not: an outline on the wrapper
 * would draw a ring round the whole component every time the × took the keyboard,
 * which already has a ring of its own.
 */
.yemma-commission .cpic__slot:focus-within {
	outline: 1px solid var(--ink, #14100d);
	outline-offset: 2px;
}

/*
 * Out of sight and still the control. A file input cannot be stretched over its
 * own square — only the part the browser draws as a button opens the picker — so
 * the label does the opening and the input keeps the keyboard, the tab stop and
 * the name it posts under. Padding and the bottom rule come off because `.field
 * input` gave them to it for a life as a visible text box that it is not living.
 */
.yemma-commission .cpic input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	opacity: 0;
}

.yemma-commission .cpic__i svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

/*
 * The caption is above the photograph rather than behind it once there is one,
 * and it breaks anywhere because what it is holding by then is a file name — and
 * a file name is the one string on this page nobody in the shop chose the length
 * of.
 */
.yemma-commission .cpic__s {
	position: relative;
	z-index: 1;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

/*
 * Drawn only on a square that is holding something. The `<img>` stands on the
 * page from the first paint so the script has a box to fill rather than one to
 * build, which means it is also standing there with no source for every visitor
 * who never chooses a file — and an empty `<img>` stretched across the square is
 * a broken-image glyph laid over the plus. `is-ok` goes on at the same moment the
 * source does, so the preview loses nothing by waiting for it.
 */
.yemma-commission .cpic__img {
	position: absolute;
	inset: 0;
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yemma-commission .cpic.is-ok .cpic__img {
	display: block;
}

/* A square that is holding a photograph has stopped asking for one. */
.yemma-commission .cpic.is-ok .cpic__i {
	display: none;
}

.yemma-commission .cpic.is-ok .cpic__slot {
	border-style: solid;
	border-color: var(--ok, #4f7a52);
}

/*
 * Over the photograph, because the photograph is now the answer and the words
 * are only saying which one arrived.
 */
.yemma-commission .cpic.is-ok .cpic__s {
	padding: .25em .6em;
	background: var(--ink, #14100d);
	color: var(--bone, #faf6ef);
}

/*
 * The way back out: the small dark square, top right. It is born `display: none`
 * and only `is-ok` brings it, which is also what keeps the scriptless page
 * honest — with no script the class is never set, so a button that has nothing
 * to clear is never on the screen and never in the tab order either. The native
 * input is the whole of the control there, and it already knows how to be
 * changed.
 */
.yemma-commission .cpic__x {
	position: absolute;
	top: 3px;
	right: 3px;
	z-index: 2;
	display: none;
	place-items: center;
	width: 20px;
	height: 20px;
	padding: 0;
	background: var(--ink, #14100d);
	border: 0;
	cursor: pointer;
}

.yemma-commission .cpic.is-ok .cpic__x {
	display: grid;
}

/*
 * Twenty pixels is the drawing and twenty-four is the smallest thing a thumb
 * reliably hits, so the button keeps its size and the target grows around it.
 */
.yemma-commission .cpic__x::after {
	content: "";
	position: absolute;
	inset: -3px;
}

.yemma-commission .cpic__x svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: var(--bone, #faf6ef);
	stroke-width: 2.2;
}

.yemma-commission .cpic__x:hover {
	background: var(--clay, #a9522f);
}

/* Against a photograph, in the shop's own light rather than the browser's. */
.yemma-commission .cpic__x:focus-visible {
	outline: 2px solid var(--bone, #faf6ef);
	outline-offset: 1px;
}

/* ── The wool under the colour menu ──────────────────────────────────────── */

/*
 * Ground and Motif are the same question asked twice, and until this row the
 * page asked it in words alone: twenty wools in a plain menu, seven of them
 * browns and creams that an adjective is the only thing separating — Fawn,
 * Taupe, Medium Brown, Sahara Brown, Chocolate Brown, Desert Rose, Natural
 * Wool. The shop has photographed all twenty and the menu was throwing the
 * photographs away, which is a strange thing to do to somebody choosing the
 * colour of a rug she will not see for three months.
 *
 * So the wool is put back, as a row of circles the script builds inside the
 * same `.field` and hangs under the select it is coating. Nothing here
 * replaces the control: the select stays visible, stays focusable, keeps its
 * name and keeps posting, and with the script switched off this row is never
 * built at all. Which is also why every rule below is written against the row
 * and never against `.field` or the select — a coat that alters the garment
 * underneath is not a coat, and the scriptless page is only still honest for
 * as long as nothing in this section touches it.
 *
 * The names are printed, not hinted. Every other swatch in this shop carries
 * its colour in a `title`, which is a tooltip: invisible to a thumb, invisible
 * to a keyboard, and therefore useless to most of the people the row was added
 * for. The word goes under the circle, where it can simply be read.
 */
.yemma-commission .cwools {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem .5rem;
	margin-top: .85rem;
}

/*
 * A chip is a circle with a word under it, and the width is capped rather than
 * left to the word. A flex row of twenty items each sized by its own name is
 * twenty different widths, and twenty different widths read as a list of
 * options — the thing the select above already is — where an even row of
 * circles reads as a palette. Sixty-four pixels holds the longest wool the
 * shop sells on a single line; anything longer takes a second one and the
 * circles stay exactly where they were.
 *
 * The button reset is re-asserted rather than inherited. base.css does strip a
 * button down in the theme, but this is the plugin's sheet, and a component
 * that only looks right because somebody else's file happened to load first is
 * a component that breaks on the day it does not.
 */
.yemma-commission .cwool {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	width: 64px;
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: center;
	background: none;
	border: 0;
	cursor: pointer;
}

/*
 * The circle. The ring around it is not decoration: Natural Wool is #EFE0C8
 * and the page it is being shown on is #FAF6EF, so without an edge a pale wool
 * is a circle of nothing — and its photograph is barely better, because a
 * cream fleece shot on a white ground fades out at its own rim.
 *
 * The ring is an inset shadow and not a border, for the same reason it exists
 * at all. A background image paints underneath a border box, so a translucent
 * border would let the photograph show through the one mark drawn to contain
 * it, and would be faintest in precisely the pale case it was added for. An
 * inset shadow is painted over the image instead.
 *
 * Neither `background-image` nor `background-color` is set here, and the
 * omission is the point. Which of the two a circle wears is the difference
 * between a wool that has been photographed and a wool that has not; the
 * script is the only thing that knows which, and a default in this sheet would
 * either sit lying underneath a photograph or leave a hole where one never
 * arrived.
 */
.yemma-commission .cwool__s {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba(20, 16, 13, .14);
	transition: box-shadow .3s var(--ease, ease), transform .3s var(--ease, ease);
}

/*
 * The name, set in the small caps this form gives every other label — a size
 * under them, barely letterspaced so that "Terracotta" keeps to one line of its
 * 64px, `--muted-d` — so that a row the script put there reads as part of the
 * page rather than as something bolted onto it.
 *
 * It is allowed to wrap and the chip is not allowed to grow, and that is the
 * whole of the arrangement: "Chocolate Brown" takes two lines under a circle
 * that has not moved. `overflow-wrap` is the net under that — it never fires
 * on a name the shop sells today, and it is what keeps a longer one, dyed and
 * added next season, from pushing the row off a 375px screen.
 */
.yemma-commission .cwool__n {
	max-width: 100%;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--muted-d, #6b5e51);
	overflow-wrap: break-word;
	transition: color .3s var(--ease, ease);
}

/*
 * Chosen, in the mark this shop has used for a chosen swatch since the
 * prototype: a ring of the page's own bone with a ring of ink outside it. Two
 * rings and not one, because a single dark ring is emphatic on Natural Wool
 * and almost invisible on Aubergine, and the selection has to weigh the same
 * on all twenty.
 *
 * The name darkens with it. A ring alone carries the choice only at the one
 * place the eye is least likely to be, three rows down a wrapped palette; a
 * word that has gone to ink is legible from anywhere in the row, and a second
 * channel is the entire reason this component was written.
 */
.yemma-commission .cwool.is-on .cwool__s {
	box-shadow:
		inset 0 0 0 1px rgba(20, 16, 13, .14),
		0 0 0 1px var(--bone, #faf6ef),
		0 0 0 2px var(--ink, #14100d);
}

.yemma-commission .cwool.is-on .cwool__n {
	color: var(--ink, #14100d);
}

/*
 * Feedback for the pointer, on a row the keyboard is deliberately not given.
 * The chips are `tabindex="-1"` and the row is `aria-hidden`, because twenty
 * circles beside each of two colour questions would add forty-two tab stops to
 * a form whose own history already includes eight dead ones between the shape
 * and the width — the select underneath is the keyboard's control and it has
 * lost nothing to this row. A mouse can still reach the circles, though, and
 * is owed an answer when it does.
 *
 * The focus ring is written anyway. It costs a rectangle nothing while the
 * chips stay out of the tab order, and it is already correct on the day
 * somebody decides that arithmetic has changed.
 */
.yemma-commission .cwool:hover .cwool__s {
	transform: scale(1.12);
}

.yemma-commission .cwool:hover .cwool__n {
	color: var(--ink-3, #3b322a);
}

.yemma-commission .cwool:focus-visible {
	outline: 1px solid var(--ink, #14100d);
	outline-offset: 2px;
}

/* ── States a payload-driven form has and a static one does not ──────────── */

/*
 * The loom note is not shown until there is something to say, and the rule
 * below hands it `display: flex` — which out-specifies the browser's own
 * `[hidden]` rule and would otherwise print an empty note on every page. Hence
 * `!important`: it is not force, it is putting the attribute back in charge of
 * a property this file took off it three lines later.
 */
.yemma-commission [data-yemma-warn][hidden] {
	display: none !important;
}

/*
 * And the size chips, for exactly the same reason and with a sharper edge on it.
 *
 * The row is printed `hidden` and the script takes the attribute off, because a
 * button that announces itself to a keyboard as actionable and does nothing on
 * the press is worse than no button — with no script that was eight dead tab
 * stops between the shape and the width. But the theme's own `.crange` sets
 * `display: flex`, which is an author rule and out-specifies the browser's
 * `[hidden]`, so the attribute alone would hide nothing at all and the chips
 * would sit there looking pressable on every scriptless page. This is what makes
 * the attribute mean what it says.
 */
.yemma-commission [data-yemma-presets][hidden] {
	display: none !important;
}

/*
 * The loom note itself. It is not an error — above one loom's width a rug is
 * woven in two panels and joined by hand, which is a fact about the craft and
 * reads better in the shop's own clay than in a warning red.
 */
.yemma-commission .cwarn {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	margin-top: .9rem;
	font-size: .82rem;
	line-height: 1.5;
	color: var(--clay, #a9522f);
}

.yemma-commission .cwarn svg {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: .15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

/* The specification carried into the request form. */
.yemma-commission .mspec:empty {
	display: none;
}

/*
 * The sending state. The button keeps its width so the form does not jump, and
 * the status line beside it carries every sentence — all of which arrive from
 * PHP in the payload's own text block.
 *
 * This is the look and nothing more. It used to be the only thing standing
 * between a request and a second copy of it, and `pointer-events` stops a
 * mouse and nothing else — Enter in any text box still sent the form again. The
 * script now disables the button while a request travels and refuses a submit
 * that arrives meanwhile; this dims it so the refusal can be seen.
 */
.yemma-commission [data-yemma-form][data-sending] button[type="submit"] {
	opacity: .55;
	pointer-events: none;
}

.yemma-commission [data-yemma-status][data-tone="bad"] {
	color: var(--clay, #a9522f);
}

.yemma-commission [data-yemma-status][data-tone="good"] {
	color: var(--ink, #241d18);
}
