/**
 * Mimus Configurator — storefront.
 *
 * Light-mode only by house rule: one explicit palette, and every block that sets
 * a background also sets a colour, so a client forcing a dark ground cannot
 * produce unreadable text.
 *
 * No class here is named ux-*. Flatsome installs a delegated click handler on
 * .ux-swatch across the whole variations form and re-arms it on every
 * ajaxComplete; these fields render inside that form on variable products.
 */

/*
 * min-width: 0 because the root is a flex item. Flatsome makes form.cart (and
 * .woocommerce-variation-add-to-cart) display:flex with children at flex 1 1 100%,
 * and a flex item's automatic minimum is its min-content width. Without this, one
 * descendant wider than the phone (the open palette's chip row is ~800px) widens
 * the whole form, and Flatsome's html { overflow-x: hidden } cuts off the right
 * half: colours, the search box and the close button.
 */
.mimus-configurator {
	min-width: 0;
	margin: 0 0 1.5em;
	color: #23282d;
}

.mimus-field {
	margin: 0 0 1.25em;
}

.mimus-field--hidden {
	display: none;
}

/*
 * A second name beside the first (Renderer::rows()): Bebek Adı | İkinci İsim.
 * Columns come from the fields that are displayed, so on Tek İsim, where İkinci
 * İsim is .mimus-field--hidden, Bebek Adı takes the whole row as it always did.
 * The row is as wide as one input elsewhere on the form, so the pair lines up with
 * the fields around it.
 */
.mimus-field-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax( 0, 1fr );
	column-gap: 12px;
	max-width: 26em;
}

@media ( max-width: 359px ) {
	.mimus-field-row {
		grid-auto-flow: row;
	}
}

.mimus-field__label {
	display: block;
	margin: 0 0 0.4em;
	font-weight: 600;
	color: #23282d;
}

.mimus-field__label .required {
	border: 0;
	color: #b32d2e;
	text-decoration: none;
}

.mimus-field__description {
	margin: 0.4em 0 0;
	font-size: 0.875em;
	color: #646970;
}

.mimus-field__error {
	margin: 0.4em 0 0;
	font-size: 0.875em;
	color: #b32d2e;
}

.mimus-field--invalid .mimus-input,
.mimus-field--invalid .mimus-textarea,
.mimus-field--invalid .mimus-select {
	border-color: #b32d2e;
}

/* Colour is not the only signal: the message below the control carries it too. */
.mimus-field--invalid .mimus-radios,
.mimus-field--invalid .mimus-swatches {
	border-left: 3px solid #b32d2e;
	padding-left: 8px;
}

.mimus-input,
.mimus-textarea,
.mimus-select {
	width: 100%;
	max-width: 26em;
	padding: 0.6em 0.75em;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #ffffff;
	color: #23282d;
	font-size: 1em;
	line-height: 1.4;
}

.mimus-input:focus,
.mimus-textarea:focus,
.mimus-select:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.35 );
}

.mimus-textarea {
	resize: vertical;
}

/* Swatches ---------------------------------------------------------------- */

/*
 * A grid rather than a wrapping flex row. Forty-four circles in a flex wrap end
 * in a ragged last line whose width says nothing, and the collapsed seven line
 * up differently on every viewport; even columns read as one list. The legend is
 * .screen-reader-text, which is position:absolute, so it takes no grid cell.
 *
 * Fixed columns rather than 1fr: stretched ones spread the collapsed seven over
 * the whole row, ~60px of blank between 40px circles on a desktop product page.
 * 4.5em is the narrowest column the longest one-word name (Krizantem) fits at
 * the label's size; two-word names wrap at the space.
 */
.mimus-swatches {
	display: grid;
	grid-template-columns: repeat( auto-fill, 4.5em );
	gap: 0.6em 0.25em;
	margin: 0;
	/* A fieldset's UA min-inline-size is min-content, which stops the grid
	   narrowing inside the showroom's panel column. */
	min-width: 0;
	padding: 0;
	border: 0;
}

.mimus-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 0;
	padding: 0;
	border: 0;
}

/* margin: 0 holds off Flatsome's `label { margin-bottom: .4em }`, which stacks under the row gap. */
.mimus-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	cursor: pointer;
	text-align: center;
}

/*
 * The swatch's real radio is hidden by this rule, never by .screen-reader-text.
 * Themes give that class a :focus "skip link" reveal (Flatsome: top/left 5px,
 * width/height auto, clip:auto !important). A click on the label focuses the
 * radio in Chrome, Edge and Firefox, the reveal moved it to the top of the
 * product row, and the browser scrolled the page up to the gallery.
 * position:relative on the label keeps the radio inside the swatch that was
 * clicked, even under a child theme's field-palette.php copied before 1.23.1
 * that still carries the class. The :focus selector is listed, and the clip is
 * !important, because the reveal's clip is. 0,3,0 beats the reveal (0,2,0) and
 * Flatsome's input[type=radio] margins (0,1,1) whatever loads first.
 */
.mimus-swatch {
	position: relative;
}

.mimus-swatch .mimus-swatch__input,
.mimus-swatch .mimus-swatch__input:focus {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px ) !important;
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}

/*
 * 2.75em is 44px at a 16px root — the smallest target a thumb hits reliably. The
 * whole label is clickable, so the real target is taller again.
 */
.mimus-swatch__color {
	position: relative;
	display: block;
	width: 2.75em;
	height: 2.75em;
	border: 1px solid #c3c4c7;
	border-radius: 50%;
	background-color: #ffffff;
	background-size: cover;
	background-position: center;
	transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.mimus-swatch__note-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75em;
	height: 2.75em;
	border: 1px dashed #8c8f94;
	border-radius: 50%;
	background: #f6f7f7;
	color: #50575e;
	font-weight: 700;
}

.mimus-swatch__name {
	font-size: 0.8125em;
	line-height: 1.25;
	color: #50575e;
	overflow-wrap: anywhere;
}

/* Selected state is driven by the real radio, so it works without JS. */
.mimus-swatch__input:checked + .mimus-swatch__color,
.mimus-swatch__input:checked + .mimus-swatch__note-icon {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #23282d;
	transform: scale( 1.04 );
}

/*
 * The tick inside the selected swatch, and it has to be a pseudo-element: the
 * rings above are driven by `input:checked + .mimus-swatch__color`, so a real
 * element between the radio and this span would kill the selected state
 * silently. --mimus-tick is written per swatch by field-palette.php through
 * Palette_Type::tick_color(), because one fixed colour cannot be seen on both
 * Bebek Pembe (#FBD2E0) and Kahve (#3D2A1E).
 */
.mimus-swatch__input:checked + .mimus-swatch__color::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.8em;
	height: 0.45em;
	border: solid var( --mimus-tick, #ffffff );
	border-width: 0 0 2px 2px;
	transform: translate( -50%, -75% ) rotate( -45deg );
	content: "";
}

/*
 * Gold and Gumus are gradients of ~1,100 and ~600 distinct pixels, so there is
 * no single value to measure a tick against. White plus a shadow is legible on
 * every part of both.
 */
.mimus-swatch__input:checked + .mimus-swatch__color--image::after {
	border-color: #ffffff;
	filter: drop-shadow( 0 0 1px rgba( 0, 0, 0, 0.7 ) );
}

.mimus-swatch__input:focus-visible + .mimus-swatch__color,
.mimus-swatch__input:focus-visible + .mimus-swatch__note-icon {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2271b1;
}

.mimus-swatch__input:checked ~ .mimus-swatch__name {
	color: #23282d;
	font-weight: 600;
}

/* Selected colour echo ---------------------------------------------------- */

/*
 * The one part of this control the server renders, because it can: the stored
 * value is known at render time, so this line is true with JS off rather than
 * inert. It exists because the selected state used to be a 4px ring on a 40px
 * circle, and on a pale colour against a white page that ring was the only
 * thing saying anything had been chosen at all.
 */

/*
 * Once a colour is chosen this line stops being a caption and becomes the whole
 * field: the grid goes, and the edit button configurator.js puts in here is the
 * way back. Hence flex-wrap — "Seçilen renk: Bebek Pembe" plus a button does not
 * fit a phone on one line, and a button that squeezes the colour name is worse
 * than one on its own row.
 */
.mimus-palette-echo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 0.7em;
	padding: 0.5em 0.7em;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #ffffff;
	color: #23282d;
	font-size: 0.9375em;
	line-height: 1.3;
}

.mimus-palette-echo__dot {
	flex: 0 0 auto;
	width: 1.5em;
	height: 1.5em;
	border: 1px solid #c3c4c7;
	border-radius: 50%;
	background-color: #ffffff;
	background-size: cover;
	background-position: center;
}

.mimus-palette-echo__label {
	color: #50575e;
}

.mimus-palette-echo__name {
	font-weight: 600;
}

.mimus-palette-echo--empty {
	border-style: dashed;
	background: #f6f7f7;
	color: #50575e;
}

/* "Secilen renk: Henuz renk secmediniz" is not a sentence anyone should read. */
.mimus-palette-echo--empty .mimus-palette-echo__label {
	display: none;
}

.mimus-palette-echo--empty .mimus-palette-echo__name {
	font-weight: 400;
}

.mimus-palette-echo--empty .mimus-palette-echo__dot {
	border-style: dashed;
	background: #ffffff;
}

/* Palette filter --------------------------------------------------------- */

/*
 * Built by configurator.js, never rendered. Every rule here is inert on a page
 * with no JavaScript, which is the point: the swatches stay exactly as they are
 * today, all of them, in most-used order.
 *
 * The panel stays hidden until the customer opens the palette. A search box and
 * seven hue chips shown to someone who has not asked for them is the complexity
 * this field was reported for; its own background says the panel is a set of
 * tools rather than more colours to choose between.
 */

.mimus-palette-tools {
	margin-bottom: 0.7em;
	padding: 0.75em;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
	color: #23282d;
}

/*
 * The panel is opened and closed through the `hidden` property, so no rule here
 * may hand it a `display` — and this one says so out loud rather than trusting
 * that to be noticed. The version of .mimus-palette-tools this replaced was
 * `display: flex`, which would have won against `hidden` and left the search box
 * and the chips on screen permanently, which is the whole thing being fixed.
 */
.mimus-palette-tools[hidden] {
	display: none;
}

.mimus-palette-search {
	display: block;
	width: 100%;
	padding: 0.55em 0.8em;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #ffffff;
	color: #23282d;
	font-size: 0.9375em;
	line-height: 1.4;
}

.mimus-palette-search:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.35 );
}

/*
 * Visible, not just announced. The chips filter where a customer reasonably
 * reads them as selecting a colour, and one word of heading separates the two.
 */
.mimus-palette-groups__caption {
	margin: 0.7em 0 0.4em;
	color: #50575e;
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.3;
}

/*
 * One scrolling line rather than a wrap. Seven chips wrap into three ragged
 * rows on a phone, which is most of what made this row look like clutter.
 *
 * contain: inline-size because overflow-x: auto does not stop the chips' width
 * from reaching an ancestor's min-content, the way a <pre> blows out a flex item.
 * This row is the one element meant to be wider than its box, so it reports no
 * width of its own, wherever the root sits (a child theme's form, Flatsome's
 * sticky add-to-cart, Quick View). It still takes its container's width and
 * scrolls sideways. The root's min-width: 0 covers browsers without containment.
 */
.mimus-palette-groups {
	contain: inline-size;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4em;
	padding: 2px 2px 0.3em;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

/*
 * font/letter-spacing/text-transform/box-shadow are all here to hold off
 * Flatsome's global `button` rule, which is where the SHOUTING CAPS in the
 * original came from — never from this file.
 */
.mimus-palette-group {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.4em;
	min-height: 2.25em;
	padding: 0.35em 0.75em;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	background: #ffffff;
	color: #50575e;
	font: inherit;
	font-size: 0.875em;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

.mimus-palette-group:hover {
	border-color: #c3c4c7;
	background: #f0f0f1;
	color: #23282d;
}

.mimus-palette-group:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.mimus-palette-group.is-active {
	border-color: #23282d;
	background: #23282d;
	color: #ffffff;
}

.mimus-palette-group__dot {
	display: block;
	width: 0.85em;
	height: 0.85em;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 50%;
	background: #dcdcde;
}

/* "Tumu" has no hue of its own. */
.mimus-palette-group[data-mimus-palette-group=""] .mimus-palette-group__dot {
	display: none;
}

/*
 * Two real catalogue colours per group, so the dot is a sample rather than a
 * decoration. The six slugs are Catalog::FAMILIES, which catalogcheck.js
 * already guards against drift.
 */
.mimus-palette-group[data-mimus-palette-group="kirmizi-pembe"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #ba1111 50%, #fbd2e0 50% );
}

.mimus-palette-group[data-mimus-palette-group="mavi-yesil"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #165ba8 50%, #9dd1c6 50% );
}

.mimus-palette-group[data-mimus-palette-group="sari-turuncu"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #f1813c 50%, #f8dd70 50% );
}

.mimus-palette-group[data-mimus-palette-group="kahve-bej"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #3d2a1e 50%, #d9cbb0 50% );
}

.mimus-palette-group[data-mimus-palette-group="notr"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #1d1d1b 50%, #ffffff 50% );
}

.mimus-palette-group[data-mimus-palette-group="metalik"] .mimus-palette-group__dot {
	background: linear-gradient( 135deg, #c79e2e 50%, #8e8e8e 50% );
}

.mimus-palette-group__count {
	color: #787c82;
	font-size: 0.875em;
	font-variant-numeric: tabular-nums;
}

.mimus-palette-group.is-active .mimus-palette-group__count {
	color: #c3c4c7;
}

/*
 * The only control this field has when it is closed, so it is sized like one.
 * Same defences against Flatsome's button rule as the chips. The edit button
 * shares all of it — it is the same control for the same field in a different
 * state, and two descriptions of one button is how the two start to drift.
 */
.mimus-palette-more,
.mimus-palette-edit {
	display: block;
	width: 100%;
	margin-top: 0.7em;
	padding: 0.7em 1em;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #ffffff;
	color: #23282d;
	font: inherit;
	font-size: 0.9375em;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.mimus-palette-more:hover,
.mimus-palette-edit:hover {
	border-color: #23282d;
	background: #f6f7f7;
	color: #23282d;
}

.mimus-palette-more:focus-visible,
.mimus-palette-edit:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

/*
 * Both buttons are toggled with the `hidden` property and both are given a
 * `display` above, which beats the UA rule for [hidden] — the same trap
 * .mimus-palette-tools carries, and the reason that one says so out loud. On the
 * toggle it never showed because the branch that hides it is unreachable on a
 * real palette: visible_count() returns 0 unless there is a tail to hide. On the
 * edit button it is the common case, not a corner — the button is hidden until a
 * colour is chosen, and again whenever the grid is open.
 */
.mimus-palette-more[hidden],
.mimus-palette-edit[hidden] {
	display: none;
}

/*
 * Sized to sit in the echo line rather than to span the field: it is one end of
 * a summary row, not the field's only control. margin-left:auto pushes it to the
 * far end, and past the wrap it right-aligns on its own row. font-size inherits
 * because the echo line already sets one, and the base rule's 0.9375em would
 * compound against it.
 */
.mimus-palette-edit {
	width: auto;
	margin: 0 0 0 auto;
	padding: 0.35em 0.9em;
	font-size: inherit;
}

.mimus-palette-empty {
	margin: 0.6em 0 0;
	color: #50575e;
	font-size: 0.9375em;
}

/*
 * The swatches the collapse or the filter is holding back. display:none rather
 * than a visibility trick, so the grid closes up and — the load-bearing half —
 * so a hidden radio is not focusable and Tab walks only the colours on screen.
 * That is also why applyPalette() moves `required` to a visible radio: a
 * display:none control that still carries it makes Chrome refuse to submit and
 * say nothing.
 */
.mimus-swatch--filtered {
	display: none;
}

/*
 * Open, the grid scrolls inside itself. Forty-four swatches at three rows a
 * screen would otherwise push add-to-cart out of reach on a phone, which is the
 * cost the collapse was paying for in the first place. The padding is not
 * decoration: the selected ring is a 4px box-shadow and an overflow container
 * with no room clips it.
 *
 * No overscroll-behavior here, on purpose. With `contain`, a swipe that reached
 * the end of the grid never passed on to the page, and on a phone the open grid
 * is a third of the screen: a thumb resting on the colours pinned the page. Once
 * the grid hits its end, the swipe carries on scrolling the page.
 */
.mimus-swatches.is-expanded {
	max-height: 17em;
	padding: 0.45em 0.45em 0.6em;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #ffffff;
	overflow-y: auto;
}

/*
 * The rule above and `.mimus-field--invalid .mimus-swatches` near the top of
 * this file have the same specificity, and this one comes later — so without
 * this the red rule marking an unanswered required palette is overwritten at
 * exactly the moment it matters. focusFirstError() calls expandPalette() before
 * focusing, so a palette that failed validation is always an open one.
 */
.mimus-field--invalid .mimus-swatches.is-expanded {
	border-color: #b32d2e;
	border-left-width: 3px;
}

/*
 * Answered, so there is nothing left to choose between: the echo line above says
 * which colour, and the button in it brings the grid back. Last of the three
 * .mimus-swatches state rules on purpose, though it is the one rule here that
 * cannot actually lose a cascade fight — is-expanded sets max-height and a
 * border, not a display. applyPalette() makes sure the two are never both on
 * anyway, so this is about where the rule is read, not about which one wins.
 *
 * display:none and not visibility, for the reason .mimus-swatch--filtered gives:
 * Tab must not walk forty-four colours that are not on the screen. The checked
 * radio goes with them and still posts — a display:none control is submitted,
 * and applyPalette() has moved `required` onto it precisely because it is the
 * one radio in there that native validation can never object to.
 */
.mimus-swatches.is-settled {
	display: none;
}

/*
 * The first media queries in this file. Light palette only, per the house rule
 * at the top — there is no dark variant of any of this.
 */

/*
 * Closed, on a narrow screen, the swatches are ONE row that scrolls sideways.
 *
 * Wrapping, the collapsed seven broke 4 + 3 on a phone (4em columns in the ~315px
 * a set page leaves), so every colour field was two rows of circles plus a
 * full-width button — about 13.7em. The catalogue has 72 palette fields, 58 of
 * them 39 or 40 colours, and 20015 carries six on one form; since showroom 2.26.0
 * prints every product's form open, that height is the set page's height. One row
 * plus the button is about 8.2em, and roughly 4.7 colours are on screen with the
 * fifth cut in half, which is what says the row scrolls. The way to the rest is
 * the button that was already there: "Tüm renkleri göster (39)", left full width
 * under the row because beside it it would eat ~170px and leave two colours.
 *
 * Five things this rests on:
 *
 *   - [data-mimus-collapse] is the gate. field-palette.php emits the attribute
 *     only when visible_count() > 0, which is exactly when the toggle exists. A
 *     palette short enough not to collapse (the restricted pa_baski-rengi, four
 *     colours) keeps the wrapping grid — it already fits one row — so a scroller
 *     with no way to see the rest can never be built.
 *   - contain: inline-size is not optional. The root is a flex item of Flatsome's
 *     form.cart at flex 1 1 100%, whose automatic minimum is its min-content
 *     width, and overflow-x: auto does not stop a descendant reaching it. Eight
 *     chips are ~540px; without containment the whole form widens and
 *     html { overflow-x: hidden } CLIPS the overflow rather than scrolling it.
 *     That is 1.26.1's bug, in a new element — see the rule in CLAUDE.md.
 *   - The padding is for the ring, not for looks. overflow-x: auto forces
 *     overflow-y to auto as well (one axis may not stay visible while the other
 *     is not), and the selected ring is a 4px box-shadow: with padding 0 it is
 *     clipped at the top and the row grows a phantom vertical scrollbar. Same
 *     reason .mimus-swatches.is-expanded pads itself.
 *   - overscroll-behavior-X, never the shorthand. The open grid deliberately has
 *     none on the block axis (a thumb resting on the colours pinned the page);
 *     the shorthand would set both.
 *   - 599px, not 480px. Seven 4.5em columns plus six 4px gaps need a 528px box,
 *     and a set page's box is about the viewport less 60px, so the row only
 *     becomes one row by itself past ~590px. Cutting at 480px would leave big
 *     phones and phones in landscape still wrapping. grid-auto-columns is not
 *     touched by the 480px block below, so the two never fight.
 */
@media ( max-width: 599px ) {
	.mimus-swatches[data-mimus-collapse]:not(.is-expanded):not(.is-settled) {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 4em;
		contain: inline-size;
		padding: 0.35em 0.35em 0.4em;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.35em;
		scrollbar-width: thin;
	}
}

@media ( max-width: 480px ) {
	.mimus-swatches {
		grid-template-columns: repeat( auto-fill, 4em );
	}

	.mimus-swatches.is-expanded {
		max-height: 14em;
	}

	.mimus-palette-echo {
		font-size: 0.875em;
	}
}

@media ( min-width: 700px ) {
	.mimus-swatches.is-expanded {
		max-height: 22em;
	}
}


/* Radios ------------------------------------------------------------------ */

/*
 * margin: 0 on every label here holds off Flatsome's global
 * `label { margin-bottom: .4em }`, which otherwise stacks under the flex gap.
 */
.mimus-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	padding: 0.45em 0.8em;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	background: #ffffff;
	color: #23282d;
	cursor: pointer;
}

.mimus-radio__price {
	font-size: 0.875em;
	color: #646970;
}

.mimus-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	color: #23282d;
	cursor: pointer;
}

/*
 * Flatsome gives every input `margin-bottom: 1em`, and every radio and checkbox
 * `margin-right: 10px`. align-items:center centres the margin box, not the
 * circle, so the radio sat half an em above the label in a pill 16px too tall,
 * with 10px of extra gap. Two classes deep because Flatsome's
 * `input[type=radio]` is 0,1,1 and a lone `.mimus-radio__input` would lose to it.
 * `.mimus-swatch__input` is not here: the swatch section hides it with its own
 * rule, which sets its margin.
 */
.mimus-radio .mimus-radio__input,
.mimus-checkbox .mimus-checkbox__input,
.mimus-addon__option input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
}

/*
 * İsim Tercihi as buttons (Attribute_Buttons, built by configurator.js). The
 * <select> stays in the form, hidden but enabled, because it is what WooCommerce
 * reads and posts. Two classes and an element deep to beat a theme's
 * `.variations select`.
 */
form.variations_form select.mimus-attribute-buttons--built {
	display: none;
}

.mimus-attribute-radios {
	margin: 0 0 0.5em;
}

/* .mimus-radio's display beats the UA [hidden] rule: an option WooCommerce removed. */
.mimus-attribute-radios .mimus-radio[hidden] {
	display: none;
}

/* The optional note's "Ürüne not eklemek istiyorum" box, built by configurator.js. */
.mimus-note-toggle {
	margin: 0 0 1.25em;
}

/* Open, the note belongs to the box above it rather than a field's gap away. */
.mimus-note-toggle.is-open {
	margin-bottom: 0.5em;
}

/*
 * "Tercihlerimi hatırla" (1.31.0), built by configurator.js at the end of the
 * form, and by the showroom on a set page. A light panel of its own: it is a
 * question about the customer's data, not one more field of the product.
 */
.mimus-remember-tick {
	margin: 0.25em 0 1.25em;
	padding: 0.6em 0.85em;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	color: #23282d;
}

.mimus-remember-tick__hint {
	margin: 0.35em 0 0;
	background: transparent;
	color: #50575e;
	font-size: 0.8125em;
	line-height: 1.45;
}

/* Profile chip ------------------------------------------------------------ */

.mimus-configurator__profile {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 1em;
	padding: 0.5em 0.85em;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	background: #f6f7f7;
	color: #23282d;
	font-size: 0.9375em;
}

.mimus-configurator__profile-change {
	padding: 0;
	border: 0;
	background: none;
	color: #2271b1;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 1px, 1px, 1px, 1px );
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------- cart edit */

.mimus-cart-edit {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.85em;
	color: #6b5b4e;
	text-decoration: underline;
}

.mimus-cart-edit:hover,
.mimus-cart-edit:focus {
	color: #3d332b;
}

.mimus-edit-banner {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid #b08968;
	background: #f7f1ea;
	color: #3d332b;
	font-size: 0.9em;
}

/* ----------------------------------------------------------------- addon */

.mimus-addon {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2f2a26;
}

.mimus-addon__option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.35rem 0;
	cursor: pointer;
}

.mimus-addon__price {
	margin-left: auto;
	color: #6b5b4e;
}

.mimus-addon__note {
	margin: 0.35rem 0 0;
	font-size: 0.85em;
	color: #6b5b4e;
}

.mimus-addon-qty {
	display: inline-block;
	color: #2f2a26;
}

/*
 * "Seçimlerinizle toplam", between the price and the button.
 *
 * min-width: 0 and flex-basis: 100% for the root's reason one element along:
 * this block renders as a direct child of form.cart on a simple product and of
 * .woocommerce-variation-add-to-cart on a variable one, and Flatsome makes both
 * display:flex with children at flex 1 1 100%. Left at auto it would sit beside
 * the quantity box and the button instead of above them.
 *
 * Its own display:none for [hidden] because the rule below gives it a display,
 * which beats the UA sheet's [hidden] — the same trap .mimus-palette-tools
 * documents, and here it is the common case: the block ships hidden and most
 * customers never tick anything that shows it.
 */
.mimus-total {
	display: block;
	flex: 1 1 100%;
	min-width: 0;
	margin: 0 0 1em;
	padding: 0.75em 0.9em;
	border: 1px solid #e3dbd2;
	border-radius: 4px;
	background: #faf7f4;
	color: #23282d;
	font-size: 0.95em;
	line-height: 1.4;
}

.mimus-total[hidden] {
	display: none;
}

.mimus-total__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	margin: 0 0 0.3em;
}

.mimus-total__row[hidden] {
	display: none;
}

.mimus-total__label {
	min-width: 0;
	color: #6b5b4e;
}

/*
 * The amount never wraps and never shrinks: "1.550,00 ₺" broken across two lines
 * beside its label reads as two numbers. The label is the part that gives way,
 * and it has min-width: 0 above so it can.
 */
.mimus-total__amount {
	flex: 0 0 auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: #23282d;
}

.mimus-total__row--grand {
	margin: 0;
	padding-top: 0.45em;
	border-top: 1px solid #e3dbd2;
	font-weight: 600;
}

.mimus-total__row--grand .mimus-total__label,
.mimus-total__row--grand .mimus-total__amount {
	color: #23282d;
}
