/* Kazhal: login, sign-up, recovery and profile forms. The color is the plugin's own blue
   until Settings choose another (or the SoftSara theme's, with «هماهنگ با قالب سافت‌سرا»). */
.kazhal-box {
	--kazhal-accent: #2271b1;
	--kazhal-border: #dcdcde;
	--kazhal-muted: #646970;
	--kazhal-ok-bg: #edfaef;
	--kazhal-ok-text: #1e5b2b;
	max-width: 560px;
	margin: 16px auto;
	padding: 20px;
	border: 1px solid var(--kazhal-border);
	border-radius: 8px;
	background: var(--kazhal-bg, #fff);
	color: var(--kazhal-text, #1d2327); /* Its own white card: its own dark text, whatever the theme's is. */
	box-sizing: border-box;
	line-height: 1.8;
}
.kazhal-box * {
	box-sizing: border-box;
}
/* Check boxes and radio buttons in the color of Settings. */
.kazhal-box input[type="checkbox"],
.kazhal-box input[type="radio"],
.kazhal-modal input[type="checkbox"],
.kazhal-modal input[type="radio"] {
	accent-color: var(--kazhal-accent);
}
/* Themes that color these themselves (dark ones, light text): the card's color here. */
.kazhal-box :where(td, th, p, li, label, legend, h1, h2, h3, h4, h5, strong, summary, dt, dd) {
	color: inherit;
}
.kazhal-box a:not(.kazhal-button) {
	color: var(--kazhal-accent);
}
.kazhal-profile {
	max-width: 760px;
}

.kazhal-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
/* A form under another one (the two requests of "My data"): apart from the button above it. */
.kazhal-form + .kazhal-form {
	margin-top: 28px;
}
.kazhal-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}
.kazhal-field > span {
	font-size: .9em;
	font-weight: 600;
}
.kazhal-field-note {
	font-size: .9em;
	font-weight: 400;
	opacity: .75;
}
.kazhal-field input,
.kazhal-field select,
.kazhal-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--kazhal-border);
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
}
/* The lists' own colors, whatever the theme gives every list of the site (a dark theme's light text on its dark options). */
.kazhal-field select,
.kazhal-box select,
.kazhal-modal select {
	color-scheme: light;
}
.kazhal-field select option,
.kazhal-box select option,
.kazhal-modal select option {
	background: #fff;
	color: #1d2327;
}
/* In browsers that let a list's options be styled (Chrome 135 and later): the option under the pointer in a
   light tint of the color, as the lists of Settings have it. Other browsers keep their own list. */
@supports (appearance: base-select) {
	.kazhal-field select:not([multiple]):not([size]),
	.kazhal-field select:not([multiple]):not([size])::picker(select) {
		appearance: base-select;
	}
	.kazhal-field select:not([multiple]):not([size]) {
		align-items: center;
		min-height: 0;
	}
	.kazhal-field select::picker(select) {
		margin-top: 4px;
		padding: 4px;
		border: 1px solid var(--kazhal-border, #dcdcde);
		border-radius: 6px;
		background: #fff;
		box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	}
	.kazhal-field select option {
		padding: 6px 10px;
		line-height: 1.5;
		border-radius: 4px;
		cursor: pointer;
	}
	.kazhal-field select option::checkmark {
		display: none;
	}
	.kazhal-field select option:hover,
	.kazhal-field select option:focus-visible {
		background: color-mix(in srgb, var(--kazhal-accent, #2271b1) 20%, var(--kazhal-bg, #fff));
		outline: 0;
	}
	.kazhal-field select option:checked {
		font-weight: 600;
	}
}
.kazhal-field input:focus,
.kazhal-field select:focus,
.kazhal-field textarea:focus {
	border-color: var(--kazhal-accent);
	outline: 2px solid color-mix(in srgb, var(--kazhal-accent) 25%, transparent);
}
.kazhal-code {
	font-size: 1.4em !important;
	letter-spacing: .3em;
	text-align: center;
}
.kazhal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
/* Fields side by side: a row of 12 parts, each field as wide as Settings → Fields says. */
.kazhal-fields-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
}
.kazhal-col {
	grid-column: span 12;
	min-width: 0;
}
.kazhal-w-1-2 { grid-column: span 6; }
.kazhal-w-1-3 { grid-column: span 4; }
.kazhal-w-2-3 { grid-column: span 8; }
.kazhal-w-1-4 { grid-column: span 3; }
.kazhal-check {
	display: flex;
	align-items: center;
	gap: 6px;
}

.kazhal-button {
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.kazhal-button:hover {
	filter: brightness(1.08);
}
/* The plugin's buttons (buttons and links alike: pay, track the parcel, save...) keep their colors in every state:
   the theme's colors of links and buttons under the mouse do not reach them. */
.kazhal-button,
.kazhal-button:is(:hover, :focus, :active, :visited) {
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
	text-decoration: none;
}
.kazhal-button.kazhal-button-light,
.kazhal-button.kazhal-button-light:is(:hover, :focus, :active, :visited) {
	background: transparent;
	color: var(--kazhal-accent);
}
.kazhal-button.kazhal-button-light:hover {
	background: color-mix(in srgb, var(--kazhal-accent) 10%, transparent);
}
.kazhal-link:is(:hover, :focus) {
	background: none;
	color: var(--kazhal-accent);
}
.kazhal-button.kazhal-button-danger:is(:hover, :focus, :active, :visited) {
	background: #b32d2e;
	color: #fff;
}
.kazhal-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--kazhal-accent);
	font: inherit;
	cursor: pointer;
}
.kazhal-link:disabled {
	color: var(--kazhal-muted);
	cursor: default;
}
.kazhal-inline {
	display: inline;
	margin: 0;
}
.kazhal-hidden {
	display: none;
}
.kazhal-resend {
	display: block;
	margin-bottom: 12px;
}

/*
 * The panel: a bar of tabs and, under it (or beside it), what the chosen one shows. A tab is
 * white with the chosen color as its text; the chosen one is filled with the color.
 */
.kazhal-has-tabs {
	padding: 0;
	overflow: hidden;
}
.kazhal-body {
	padding: 20px;
	min-width: 0;
}
.kazhal-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--kazhal-border);
	background: color-mix(in srgb, var(--kazhal-accent) 6%, var(--kazhal-bg, #fff));
}
.kazhal-tabs [data-kazhal-tab],
.kazhal-tabs .kazhal-logout button {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid color-mix(in srgb, var(--kazhal-accent) 28%, var(--kazhal-bg, #fff));
	border-radius: 8px;
	background: var(--kazhal-bg, #fff);
	color: var(--kazhal-accent);
	font: inherit;
	font-size: .93em;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.kazhal-tabs [data-kazhal-tab]:hover,
.kazhal-tabs .kazhal-logout button:hover {
	border-color: var(--kazhal-accent);
	background: color-mix(in srgb, var(--kazhal-accent) 10%, var(--kazhal-bg, #fff));
}
.kazhal-tabs [data-kazhal-tab]:focus-visible,
.kazhal-tabs .kazhal-logout button:focus-visible {
	outline: 2px solid var(--kazhal-accent);
	outline-offset: 1px;
}
.kazhal-tabs [aria-selected="true"],
.kazhal-tabs [aria-selected="true"]:hover {
	border-color: var(--kazhal-accent);
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
}
.kazhal-tabs [aria-selected="true"] .kazhal-icon {
	opacity: 1;
}
.kazhal-logout {
	margin-inline-start: auto;
}
.kazhal-tabs .kazhal-logout button {
	border-color: transparent;
	background: transparent;
}

/* The same space everywhere in a form, whatever the theme gives paragraphs: under the tabs, between the button and
   the line under it, and nothing extra at the bottom of the card. */
.kazhal-box > .kazhal-tabs ~ .kazhal-panel {
	padding-top: 16px;
}
.kazhal-box p.kazhal-hint,
.kazhal-box p.kazhal-sent,
.kazhal-box p.kazhal-links {
	margin-bottom: 0;
	padding: 0;
}
.kazhal-box p.kazhal-links {
	margin-top: 16px;
}
.kazhal-box > :last-child,
.kazhal-box > .kazhal-panel > :last-child {
	margin-bottom: 0;
}
/* Two links under a form: one at each end. */
.kazhal-links-split {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* The one page of login and registration: two tabs over the forms. */
.kazhal-account {
	--kazhal-accent: #2271b1;
	--kazhal-border: #dcdcde;
	--kazhal-muted: #646970;
	max-width: 560px;
	margin: 16px auto;
}
.kazhal-account > [data-kazhal-account-view] > .kazhal-box {
	max-width: none !important;
	margin: 0;
}
.kazhal-account-tabs {
	display: flex;
	margin-bottom: 12px;
	border-bottom: 2px solid var(--kazhal-border, #dcdcde);
}
.kazhal-account-tabs button {
	flex: 1;
	margin: 0 0 -2px;
	padding: 10px 12px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--kazhal-muted, #646970);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.kazhal-account-tabs button[aria-selected="true"] {
	border-bottom-color: var(--kazhal-accent);
	color: var(--kazhal-accent);
}
.kazhal-muted {
	color: var(--kazhal-muted);
}

.kazhal-info {
	display: block;
}
/* A user's picture: cut to the shape of Settings (the rule with the shape is printed with the colors). */
.kazhal-photo-img {
	display: block;
	flex: none;
	max-width: none;
	object-fit: cover;
	object-position: 50% 25%;
}
.kazhal-photo-none {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	background: var(--kazhal-border, #dcdcde);
}
.kazhal-photo-none svg {
	display: block;
	width: 78%;
	height: 78%;
	fill: var(--kazhal-bg, #fff);
}
.kazhal-with-photo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.kazhal-box .kazhal-photo,
.kazhal-box button.kazhal-photo:hover,
.kazhal-box button.kazhal-photo:focus {
	flex: none;
	display: block;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	line-height: 0;
}
.kazhal-box button.kazhal-photo {
	cursor: pointer;
}
.kazhal-box button.kazhal-photo:focus-visible {
	outline: 2px solid var(--kazhal-accent, #2271b1);
	outline-offset: 3px;
}
/* The picture whole, in a popup. */
.kazhal-photo-dialog {
	position: fixed;
	inset: 0;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 24px);
	margin: auto !important;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: none;
	overflow: visible;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.kazhal-photo-dialog::backdrop {
	background: rgba(15, 23, 42, .6);
}
.kazhal-photo-dialog img {
	display: block;
	min-width: min(220px, calc(100vw - 24px));
	max-width: min(720px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	width: auto;
	height: auto;
	border-radius: 12px;
}
.kazhal-photo-dialog button,
.kazhal-photo-dialog button:hover,
.kazhal-photo-dialog button:focus {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}
/* Choosing a picture: the one there is now beside the file field. */
.kazhal-photo-pick {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 400;
}
/* Here the picture is plain (not cut to the shape of Settings), and as tall as the file field (account.js gives it that size). */
.kazhal-photo-pick .kazhal-photo-img {
	border-radius: 3px !important;
	-webkit-mask: none !important;
	mask: none !important;
}
.kazhal-field > .kazhal-photo-pick {
	font-size: 1em;
}
.kazhal-photo-pick input[type="file"] {
	flex: 1;
	min-width: 0;
}
.kazhal-table {
	width: 100%;
	border-collapse: collapse;
}
.kazhal-table th,
.kazhal-table td {
	padding: 6px 8px !important;
	border-bottom: 1px solid var(--kazhal-border);
	text-align: start;
	vertical-align: middle;
}
.kazhal-table th {
	width: 35%;
	color: var(--kazhal-muted);
	font-weight: normal;
}

.kazhal-required {
	color: #d63638;
	font-weight: 400;
}
.kazhal-button-light {
	border: 1px solid var(--kazhal-accent);
	background: transparent;
	color: var(--kazhal-accent);
}
.kazhal-verify-current {
	margin-bottom: 16px;
}

/* Verified / not verified */
.kazhal-badge {
	display: inline-block;
	margin-inline-start: 4px;
	padding: 0 8px;
	border-radius: 10px;
	font-size: .8em;
	line-height: 1.9;
	white-space: nowrap;
	vertical-align: middle;
}
.kazhal-badge.kazhal-ok {
	background: var(--kazhal-ok-bg, #edfaef);
	color: var(--kazhal-ok-text, #1e5b2b);
}
.kazhal-badge.kazhal-no {
	background: #fcf9e8;
	color: #8a6116;
}

/* Widgets in a tab of one's own */
.kazhal-widgets {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.kazhal-widget-title {
	margin: 0 0 8px;
	font-size: 1em;
}

/* Lists of the panel's shortcodes (posts, comments, downloads) */
.kazhal-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kazhal-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--kazhal-border);
}
.kazhal-list li:last-child {
	border-bottom: 0;
}
.kazhal-orders th {
	width: auto;
}

/* Favorites: the button and the lists */
.kazhal-fav-button,
.kazhal-fav-list {
	--kazhal-accent: #2271b1;
	--kazhal-border: #dcdcde;
}
.kazhal-fav-wrap {
	margin: 12px 0;
}
/* The look is a few values (--kf-*) that a style of Settings (kazhal-fav-s-*) changes; --kf-text is the color chosen there. */
.kazhal-fav-button {
	--kf-radius: 20px;
	--kf-border: transparent; /* No line around it; the outlined styles have one, in the color of the text. */
	--kf-bg: transparent;
	--kf-color: var(--kazhal-accent);
	--kf-pad: 6px 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--kf-pad);
	border: 1px solid var(--kf-border);
	border-radius: var(--kf-radius);
	background: var(--kf-fill, var(--kf-bg));
	color: var(--kf-text, var(--kf-color));
	font: inherit;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}
.kazhal-fav-guest {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
/* The two icons: the one of "before adding", and the one of "after" once it is added. */
.kazhal-fav-i {
	display: inline-flex;
}
.kazhal-fav-i-on,
.kazhal-fav-button[aria-pressed="true"] .kazhal-fav-i-off {
	display: none;
}
.kazhal-fav-button[aria-pressed="true"] .kazhal-fav-i-on {
	display: inline-flex;
}
.kazhal-fav-svg {
	flex: none;
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.kazhal-fav-svg.is-line,
.kazhal-fav-svg.is-full {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.kazhal-fav-svg.is-full {
	fill: currentColor;
}
/* Added: the outlined button fills with the color (not with a text color of its own, which stays readable as it is). */
.kazhal-fav-button[aria-pressed="true"]:not(.has-color) {
	--kf-bg: var(--kazhal-accent);
	--kf-color: #fff;
}
.kazhal-fav-button.kazhal-fav-s-outline-round,
.kazhal-fav-button.kazhal-fav-s-outline-soft {
	--kf-border: var(--kf-text, var(--kazhal-accent));
}
.kazhal-fav-s-outline-soft,
.kazhal-fav-s-filled-soft {
	--kf-radius: 6px;
}
.kazhal-fav-button.kazhal-fav-s-filled-round,
.kazhal-fav-button.kazhal-fav-s-filled-soft {
	--kf-bg: var(--kazhal-accent);
	--kf-color: #fff;
}
.kazhal-fav-button.kazhal-fav-s-plain,
.kazhal-fav-button.kazhal-fav-s-plain[aria-pressed="true"] {
	--kf-border: transparent;
	--kf-bg: transparent;
	--kf-color: var(--kazhal-accent);
	--kf-pad: 4px 0;
}
.kazhal-fav-c-icon {
	--kf-pad: 6px;
}
.kazhal-fav-c-icon .kazhal-fav-svg {
	width: 22px;
	height: 22px;
}
.kazhal-fav-c-icon .kazhal-fav-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Favorites: the icon on a product's picture in the shop (the script lays the box over the picture). */
.kazhal-fav-host {
	position: relative;
}
.kazhal-fav-over {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	box-sizing: border-box;
	padding: 8px;
	direction: ltr;
	pointer-events: none;
}
.kazhal-fav-at-top-left { align-items: flex-start; justify-content: flex-start; }
.kazhal-fav-at-top-right { align-items: flex-start; justify-content: flex-end; }
.kazhal-fav-at-bottom-left { align-items: flex-end; justify-content: flex-start; }
.kazhal-fav-at-bottom-right { align-items: flex-end; justify-content: flex-end; }
.kazhal-fav-at-center { align-items: center; justify-content: center; }
.kazhal-fav-over .kazhal-fav-guest {
	pointer-events: auto;
}
span.kazhal-fav-over {
	line-height: 1;
}
.kazhal-fav-over .kazhal-fav-button.kazhal-fav-s-chip,
.kazhal-fav-over .kazhal-fav-button.kazhal-fav-s-chip[aria-pressed="true"] {
	justify-content: center;
	width: calc(var(--kf-size, 18px) + 16px);
	height: calc(var(--kf-size, 18px) + 16px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--kf-text, var(--kazhal-accent));
	box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
	pointer-events: auto;
}
.kazhal-fav-over .kazhal-fav-s-chip .kazhal-fav-svg {
	width: var(--kf-size, 18px);
	height: var(--kf-size, 18px);
}

/* Favorites: the popup that says what was added or removed, its heart filling or emptying. */
.kazhal-fav-dialog {
	--kazhal-accent: #2271b1;
	position: fixed;
	inset: 0;
	width: max-content;
	min-width: min(280px, calc(100vw - 24px));
	max-width: min(520px, calc(100vw - 24px));
	box-sizing: border-box;
	margin: auto !important;
	padding: 26px 32px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--kazhal-bg, #fff);
	color: var(--kazhal-text, #1f2937);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	text-align: center;
}
.kazhal-fav-dialog[open] {
	animation: kazhal-pop .18s ease-out;
}
.kazhal-fav-dialog::backdrop {
	background: rgba(15, 23, 42, .45);
}
.kazhal-fav-dialog svg {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	overflow: visible;
	stroke: #e53935;
	stroke-width: 1.6;
	stroke-linejoin: round;
	transform-origin: center;
}
.kazhal-fav-dialog.is-add svg {
	fill: rgba(229, 57, 53, 0);
	animation: kazhal-heart-beat .9s ease-in-out .15s 1 both, kazhal-heart-fill .35s ease-out .75s 1 forwards;
}
.kazhal-fav-dialog.is-remove svg {
	fill: #e53935;
	animation: kazhal-heart-beat .9s ease-in-out .15s 1 both, kazhal-heart-empty .35s ease-out .75s 1 forwards;
}
.kazhal-fav-dialog p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.9;
}
.kazhal-fav-dialog button {
	min-width: 96px;
	padding: 8px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
	font: inherit;
	cursor: pointer;
}
/* Waiting for the answer: the heart beats on, as it is now; no text and no button yet. */
.kazhal-fav-dialog.is-wait svg {
	fill: rgba(229, 57, 53, 0);
	animation: kazhal-heart-beat .9s ease-in-out infinite;
}
.kazhal-fav-dialog.is-wait.was-on svg,
.kazhal-fav-dialog.is-error.was-on svg {
	fill: #e53935;
}
.kazhal-fav-dialog.is-wait p,
.kazhal-fav-dialog.is-wait button {
	display: none;
}
.kazhal-fav-dialog.is-wait svg {
	margin-bottom: 0;
}
/* Not done: the heart still, as it was. */
.kazhal-fav-dialog.is-error svg {
	fill: rgba(229, 57, 53, 0);
	animation: none;
}
/* The button itself, while its request is on its way. */
.kazhal-fav-button.is-busy svg {
	animation: kazhal-heart-beat .9s ease-in-out infinite;
}
@keyframes kazhal-heart-beat {
	0%, 100% { transform: scale(1); }
	20% { transform: scale(1.22); }
	40% { transform: scale(.94); }
	60% { transform: scale(1.3); }
	80% { transform: scale(.98); }
}
@keyframes kazhal-heart-fill {
	to { fill: #e53935; }
}
@keyframes kazhal-heart-empty {
	to { fill: rgba(229, 57, 53, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.kazhal-fav-dialog.is-add svg { animation: none; fill: #e53935; }
	.kazhal-fav-dialog.is-remove svg { animation: none; fill: rgba(229, 57, 53, 0); }
}
.kazhal-fav-button:disabled {
	opacity: .6;
}
.kazhal-fav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kazhal-fav-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--kazhal-border);
	transition: opacity .15s;
}
.kazhal-fav-list li:last-child {
	border-bottom: 0;
}
.kazhal-fav-pic img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: contain;
}
.kazhal-fav-name {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.kazhal-fav-name small {
	color: var(--kazhal-muted, #646970);
}
.kazhal-fav-remove {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--kazhal-border);
	border-radius: 50%;
	background: var(--kazhal-bg, #fff);
	color: #b32d2e;
	font-size: 18px;
	line-height: 26px;
	cursor: pointer;
}
.kazhal-fav-remove:hover {
	border-color: #b32d2e;
}
/* The whole row of a favorite opens it (its title's link covers the row); only "×" stays its own. */
.kazhal-fav-list > li {
	position: relative;
	transition: background-color .15s;
}
/* Under the mouse: a tenth of the chosen color behind the row (or card), in every list of the panel:
   favorites, waiting for stock, latest posts, comments, downloads, orders. */
.kazhal-fav-list:not(.kazhal-cards) > li,
.kazhal-list > li {
	padding-inline: 8px;
	transition: background-color .15s;
}
.kazhal-fav-list:not(.kazhal-cards) > li:hover,
.kazhal-list > li:hover,
:is(.kazhal-orders, .kazhal-order-items) tbody tr:hover {
	background-color: color-mix(in srgb, var(--kazhal-accent, #2271b1) 10%, transparent); /* Over the site's own background, light or dark. */
}
:is(.kazhal-orders, .kazhal-order-items) tbody tr {
	transition: background-color .15s;
}
.kazhal-cards > .kazhal-card-item {
	transition: background-color .15s;
}
.kazhal-cards > .kazhal-card-item:hover {
	background-color: color-mix(in srgb, var(--kazhal-accent, #2271b1) 10%, var(--kazhal-bg, #fff));
}
/* A card opens as a whole (its title's link covers it); its "remove" stays its own. */
.kazhal-cards > .kazhal-card-item a.kazhal-card-title::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.kazhal-cards > .kazhal-card-item .kazhal-fav-remove {
	z-index: 2;
}
.kazhal-cards > .kazhal-card-item .kazhal-fav-remove:not(.kazhal-cards-grid *) {
	position: relative;
}
.kazhal-fav-list > li :is(.kazhal-fav-name > a, a.kazhal-card-title)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.kazhal-fav-list > li .kazhal-fav-remove {
	z-index: 2;
}
.kazhal-fav-list > li .kazhal-fav-remove:not(.kazhal-cards-grid *) {
	position: relative;
}

/* Notices: the board's date, the popup */
.kazhal-notice-date {
	margin-inline-start: 6px;
	color: #9ca3af;
	font-size: .85em;
}
.kazhal-notice-dialog {
	--kazhal-accent: #2271b1;
	position: fixed;
	inset: 0;
	/* As wide as what it says, between a width that still looks like a window and its largest one. */
	width: fit-content;
	min-width: min(300px, calc(100vw - 24px));
	max-width: min(640px, calc(100vw - 24px));
	max-height: calc(100vh - 48px);
	margin: auto !important;
	padding: 0;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	overflow: hidden;
}
.kazhal-notice-dialog[open] {
	display: flex;
	flex-direction: column;
	animation: kazhal-pop .18s ease-out;
}
.kazhal-notice-dialog::backdrop {
	background: rgba(15, 23, 42, .55);
}
.kazhal-notice-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
}
.kazhal-notice-head h3 {
	flex: 1;
	margin: 0;
	color: inherit;
	font-size: 1.05em;
}
.kazhal-notice-close,
.kazhal-notice-timer {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	text-align: center;
	line-height: 30px;
}
.kazhal-notice-close {
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, .2);
	color: var(--kazhal-on-accent, #fff);
	font-size: 22px;
	cursor: pointer;
}
.kazhal-notice-close:hover {
	background: rgba(255, 255, 255, .35);
}
/* The theme's focus outline (square, dark) off; for the keyboard, a ring of the button's own round shape. */
.kazhal-notice-dialog:focus,
.kazhal-notice-close:focus {
	outline: none;
	box-shadow: none;
}
.kazhal-notice-close:focus-visible {
	box-shadow: 0 0 0 2px var(--kazhal-on-accent, #fff);
}
.kazhal-notice-timer {
	border: 2px solid rgba(255, 255, 255, .6);
	font-weight: 700;
	line-height: 26px;
}
.kazhal-notice-close[hidden],
.kazhal-notice-timer[hidden],
.kazhal-notice-hide[hidden] {
	display: none;
}
.kazhal-notice-body {
	padding: 16px;
	overflow-y: auto;
	line-height: 1.9;
}
.kazhal-notice-body img {
	max-width: 100%;
	height: auto;
}
.kazhal-notice-hide {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-top: 1px solid #e5e7eb;
	font-size: .9em;
	cursor: pointer;
}

/* Long fields (biography, postal address) across the form: themes fix a textarea's width. */
.kazhal-box .kazhal-field textarea {
	width: 100% !important;
	max-width: none !important;
	height: auto;
	min-height: 90px;
	resize: vertical;
}

/* A category of fields: a bar across the form (and the "Account" table). */
.kazhal-cat-bar {
	display: block;
	margin-top: 8px;
	padding: 6px 12px;
	border-inline-start: 4px solid var(--kazhal-accent);
	border-radius: 4px;
	background: color-mix(in srgb, var(--kazhal-accent) 9%, var(--kazhal-bg, #fff));
	color: var(--kazhal-accent);
	font-weight: 600;
}
.kazhal-table .kazhal-cat-row th {
	width: auto;
	padding-top: 14px !important;
	color: inherit;
}

/* Icons beside the tabs and the labels of fields. */
.kazhal-icon {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	vertical-align: -.2em;
	margin-inline-end: .4em;
	fill: currentColor;
	opacity: .85;
}
.kazhal-tab-icon {
	margin-inline-end: .45em;
}
.kazhal-field > span .kazhal-icon,
.kazhal-table th .kazhal-icon {
	width: 1em;
	height: 1em;
	opacity: .65;
}

/* The plugin's own look of the lists of posts and products (Settings → Appearance): a list, or blocks. */
.kazhal-cards {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kazhal-cards > .kazhal-card-item {
	position: relative;
	margin: 0;
	border: 1px solid var(--kazhal-border);
	border-radius: 8px;
	background: var(--kazhal-bg, #fff);
}
.kazhal-card-pic {
	display: block;
	flex: none;
	overflow: hidden;
	border-radius: 6px;
	background: color-mix(in srgb, var(--kazhal-text, #1d2327) 7%, var(--kazhal-bg, #fff));
}
.kazhal-card-pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kazhal-card-main {
	flex: 1;
	min-width: 0;
}
.kazhal-card-title {
	display: block;
	color: inherit;
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
}
a.kazhal-card-title:hover {
	color: var(--kazhal-accent);
}
.kazhal-card-meta {
	color: var(--kazhal-muted);
	font-size: .9em;
}
.kazhal-card-main .kazhal-badge {
	display: inline-block;
	margin-top: 4px;
}
.kazhal-cards-list {
	display: grid;
	gap: 8px;
}
.kazhal-cards.kazhal-cards-list > .kazhal-card-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
}
.kazhal-cards-list .kazhal-card-pic {
	width: 56px;
	height: 56px;
}
.kazhal-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}
.kazhal-cards.kazhal-cards-grid > .kazhal-card-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 8px 8px 12px;
	overflow: hidden;
}
.kazhal-cards-grid .kazhal-card-pic {
	width: 100%;
	aspect-ratio: 4 / 3;
}
.kazhal-cards-grid .kazhal-card-main {
	padding: 0 4px;
}
/* A favorite's "remove" on a block: over the corner of its picture. */
.kazhal-cards-grid .kazhal-fav-remove {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--kazhal-bg, #fff);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	line-height: 26px;
}
/* WooCommerce in the panel: an order, "notify me when back in stock", the login of checkout. */
.kazhal-order-back {
	margin: 0 0 10px;
}
.kazhal-order-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 12px;
	font-size: 1.05em;
}
.kazhal-order-track {
	margin: 0 0 10px;
}
.kazhal-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.kazhal-order-actions .kazhal-button {
	text-decoration: none;
}
.kazhal-order-items tfoot th {
	font-weight: 600;
	text-align: start;
}
.kazhal-order-note {
	margin: 12px 0 0;
}
.kazhal-order-addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.kazhal-order-addresses address {
	margin-top: 4px;
	color: var(--kazhal-muted);
	font-style: normal;
	line-height: 1.9;
}
/* The question a form asks first: the plugin's own dialog, in the color of Settings. */
.kazhal-ask {
	--kazhal-accent: #2271b1;
	position: fixed;
	inset: 0;
	width: fit-content;
	min-width: min(260px, calc(100vw - 24px));
	max-width: min(420px, calc(100vw - 24px));
	box-sizing: border-box;
	margin: auto !important;
	padding: 22px 24px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--kazhal-bg, #fff);
	color: var(--kazhal-text, #1d2327);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.kazhal-ask[open] {
	animation: kazhal-pop .18s ease-out;
}
.kazhal-ask::backdrop {
	background: rgba(15, 23, 42, .45);
}
.kazhal-ask p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.9;
	white-space: pre-line;
}
.kazhal-ask-buttons {
	display: flex;
	gap: 8px;
}
.kazhal-ask-buttons button {
	min-width: 84px;
	padding: 8px 18px;
	border: 1px solid var(--kazhal-accent);
	border-radius: 8px;
	background: var(--kazhal-accent);
	color: var(--kazhal-on-accent, #fff);
	font: inherit;
	cursor: pointer;
}
.kazhal-ask-buttons [data-cancel] {
	background: var(--kazhal-bg, #fff);
	color: var(--kazhal-accent);
}
/* Headings inside the plugin's boxes: the box's own text color, whatever the theme gives the site's headings (a light one, on a dark theme). */
.kazhal-box :is(h1, h2, h3, h4, h5, h6),
.kazhal-modal :is(h1, h2, h3, h4, h5, h6),
.kazhal-fav-dialog :is(h1, h2, h3, h4, h5, h6) {
	color: inherit !important;
}
.kazhal-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}
.kazhal-card-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 14px 8px;
	border: 1px solid var(--kazhal-border, #e0e0e6);
	border-radius: 10px;
	text-align: center;
}
.kazhal-card-stat strong {
	font-size: 1.15em;
}
.kazhal-card-stat > span {
	font-size: .85em;
	opacity: .75;
}
/* A card whose value is a state: verified in the accent color, not verified or not set faded. */
.kazhal-card-stat strong.kazhal-stat-ok {
	color: var(--kazhal-accent, #2271b1);
}
.kazhal-card-stat strong.kazhal-stat-off {
	opacity: .35;
}
.kazhal-stat-icon {
	width: 1.6em;
	height: 1.6em;
	margin: 0 0 2px;
	color: var(--kazhal-accent, #2271b1);
	opacity: 1;
}
.kazhal-status-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kazhal-status-list li {
	padding: 6px 0;
}
.kazhal-sessions {
	margin-bottom: 14px;
}
.kazhal-button-danger {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}
.kazhal-box textarea {
	width: 100%;
	box-sizing: border-box;
}

/* Not bold: a site font without a bold face would be thickened by the browser, and digits read badly that way. */
.kazhal-level-opt b { margin-inline-start: auto; font-size: 1.05em; font-weight: 500; white-space: nowrap; }
.kazhal-level-opt em { font-style: normal; font-size: .8em; color: #008a20; white-space: nowrap; }
.kazhal-level-buy {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 22px;
	border-radius: 8px;
	background: var(--kazhal-accent, #2271b1);
	color: var(--kazhal-on-accent, #fff);
	font-weight: 600;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}
.kazhal-level-buy:hover,
.kazhal-level-buy:focus { filter: brightness(.93); color: var(--kazhal-on-accent, #fff); text-decoration: none; }
.kazhal-level .kazhal-badge + .kazhal-level-buy { display: block; width: fit-content; margin-inline: auto; }
.kazhal-level-how {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
}

/* Province and city: of their inputs (Iran's lists, another country's, text) only the one in use shows. */
.kazhal-field [hidden] {
	display: none !important;
}

/* A field of choices (radio buttons): its title as the legend, the choices side by side. */
fieldset.kazhal-radios { min-width: 0; padding: 0; border: 0; font: inherit; } /* Some themes give every fieldset a font of their own (SoftSara: 7px). */
.kazhal-radios > legend { margin-bottom: 4px; padding: 0; font-size: .9em; font-weight: 600; }
.kazhal-radios .kazhal-radio-choice { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; margin-inline-end: 18px; font-weight: 400; }
.kazhal-radios .kazhal-radio-choice input { width: auto; margin: 0; }

/* A password input: the eye that shows what is typed (at the right, where a left-to-right password ends), and the strength of a new one. */
.kazhal-pass {
	position: relative;
}
.kazhal-field .kazhal-pass input {
	padding-right: 42px;
}
.kazhal-pass input::-ms-reveal {
	display: none;
}
.kazhal-box .kazhal-eye,
.kazhal-box .kazhal-eye:hover,
.kazhal-box .kazhal-eye:focus {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	box-shadow: none;
	color: var(--kazhal-muted, #646970);
	cursor: pointer;
}
.kazhal-box .kazhal-eye:hover {
	color: var(--kazhal-text, #1d2327);
}
.kazhal-box .kazhal-eye:focus-visible {
	outline: 2px solid var(--kazhal-accent, #2271b1);
	outline-offset: -2px;
}
.kazhal-eye svg {
	display: block;
}
/* Crossed out while the password is hidden; the plain eye while it shows. */
.kazhal-eye[aria-pressed="true"] .kazhal-eye-off {
	display: none;
}
.kazhal-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 20px;
	margin-top: 2px;
	font-size: .82em;
	font-weight: 400;
}
/* Nothing typed yet: not shown (its place is kept, so the form does not move as it comes and goes). */
.kazhal-strength:not([data-level]),
.kazhal-strength[data-level="0"] {
	visibility: hidden;
}
.kazhal-strength-bar {
	flex: 1;
	display: flex;
	gap: 4px;
}
.kazhal-strength-bar i {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--kazhal-border, #dcdcde);
	transition: background-color .15s;
}
.kazhal-strength-text {
	flex: none;
	min-width: 4.5em;
	text-align: end;
	color: var(--kazhal-muted, #646970);
}
.kazhal-strength[data-level="1"] i:nth-child(-n+1) { background: #d63638; }
.kazhal-strength[data-level="2"] i:nth-child(-n+2) { background: #dba617; }
.kazhal-strength[data-level="3"] i:nth-child(-n+3) { background: #4ab866; }
.kazhal-strength[data-level="4"] i { background: #008a20; }

/* [kazhal_form]: the field that people do not see (a robot fills it). */
.kazhal-form-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.kazhal-form-box {
	position: relative;
}
/* Where the administrator put the form: to the right or the left of the page (else in the middle). */
.kazhal-form-box.is-right {
	margin-right: 0;
	margin-left: auto;
}
.kazhal-form-box.is-left {
	margin-right: auto;
	margin-left: 0;
}

/* A field of a [kazhal_form] form and its error in words under it. */
.kazhal-form-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.kazhal-field-error {
	color: #d63638;
	font-size: .85em;
}
.kazhal-form-field.is-wrong input:not([type="checkbox"]):not([type="radio"]),
.kazhal-form-field.is-wrong select,
.kazhal-form-field.is-wrong textarea {
	border-color: #d63638;
}

/* A checkbox whose words open a text (terms and conditions). */
.kazhal-check-more {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.kazhal-popup-text p {
	max-height: 60vh;
	overflow-y: auto;
}
