/**
 * „Моят профил“ (/my-account/): the menu beside the content (chips on a
 * phone), the dashboard's cards, the orders, the addresses, the forms and
 * the login. The fields are the checkout's (checkout.css, .kt-form); an
 * order is laid out as „Благодарим“ (.kt-thanks, checkout.css).
 */

/* Layout ------------------------------------------------------------------ */

/* The inner pages' white page and head (1.2.0, page.php); until then white
   cards on the checkout's soft page. The cards are the checkout's (.kt-panel),
   with the line of „Доставка и връщане“'s cards to stand off the white. */
.kt-account-page .kt-panel,
.kt-account-nav,
.kt-orders,
.kt-account__content > form,
.kt-account-page .lost_reset_password,
.kt-withdrawal .woocommerce-order-withdrawal-content {
	border: 1px solid var(--line);
}

/* WooCommerce's „show password“ button (woocommerce.js), drawn as an eye */
.kt-account-page .password-input {
	position: relative;
	display: block;
}

.kt-account-page .password-input .input-text {
	padding-right: 52px;
}

.kt-account-page .show-password-input {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 22px no-repeat;
	transform: translateY(-50%);
	cursor: pointer;
}

.kt-account-page .show-password-input.display-password {
	background: var(--ink);
}

.kt-account-page .show-password-input:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.kt-account {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.kt-account__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.kt-account__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

.kt-account__lead {
	margin: 0;
	font-size: 15px;
	color: var(--ink-2);
}

/* The menu: pills with icons -------------------------------------------- */

.kt-account-nav {
	position: sticky;
	top: 24px;
	padding: 12px;
	border-radius: 28px;
	background: var(--white);
}

.kt-account-nav ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kt-account-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 16px;
	border-radius: var(--r-pill);
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-2);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.kt-account-nav a:hover {
	background: var(--soft);
	color: var(--ink);
}

.kt-account-nav a[aria-current='page'] {
	background: var(--ink);
	color: var(--white);
}

.kt-account-nav .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
}

/* Status chips -------------------------------------------------------------- */

.kt-status {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: var(--r-pill);
	background: var(--soft-3);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.kt-status--processing {
	background: var(--tint-sun);
	color: #6b4700;
}

.kt-status--completed {
	background: var(--tint-mint);
	color: var(--success);
}

.kt-status--on-hold {
	background: var(--tint-violet);
	color: var(--b2b-ink);
}

.kt-status--cancelled,
.kt-status--failed {
	background: var(--tint-pink);
	color: #a3123f;
}

/* Dashboard --------------------------------------------------------------- */

.kt-dash__hello p {
	margin: 0;
	font-size: 15px;
	color: var(--ink-2);
}

.kt-dash__hello a {
	font-weight: 600;
	color: var(--ink);
}

.kt-dash__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
}

.kt-dash__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.kt-dash__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.kt-dash__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
}

.kt-dash__main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	font-size: 20px;
}

.kt-dash__meta {
	margin: 0;
	font-size: 15px;
	font-style: normal;
	line-height: 1.6;
	color: var(--ink-2);
}

.kt-dash__meta strong {
	color: var(--ink);
}

.kt-dash__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.kt-dash__link:hover {
	text-decoration: underline;
}

/* Orders: a table beside the menu, a card per order on a phone ----------- */

.kt-orders {
	width: 100%;
	border-collapse: collapse;
	border-radius: 28px;
	background: var(--white);
	overflow: hidden;
	overflow: clip;
}

.kt-orders th,
.kt-orders td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
	font-size: 15px;
}

.kt-orders thead th {
	padding-top: 20px;
	padding-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.kt-orders tbody tr:last-child > * {
	border-bottom: 0;
}

.kt-orders .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--ink);
}

.kt-orders .woocommerce-orders-table__cell-order-actions {
	text-align: right;
	white-space: nowrap;
}

.kt-account-page .kt-orders .btn {
	height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

.kt-orders .woocommerce-orders-table__cell-order-actions .btn + .btn {
	margin-left: 6px;
}

.woocommerce-pagination--without-numbers {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* No orders yet */
.kt-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 28px;
	text-align: center;
}

.kt-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: var(--r-pill);
	background: var(--soft);
}

.kt-empty__text {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

/* One order (as „Благодарим“) -------------------------------------------- */

.kt-order-view {
	max-width: none;
	margin: 0;
}

.kt-order-view__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--ink-2);
	text-decoration: none;
}

.kt-order-view__back:hover {
	color: var(--ink);
}

.kt-order-view .kt-thanks__lead mark {
	background: none;
	color: var(--ink);
	font-weight: 600;
}

.kt-order-view .kt-thanks__facts strong .kt-status {
	align-self: flex-start;
}

.kt-order-view__notes h2 {
	margin: 0 0 12px;
	font: 700 18px var(--font-display);
}

.kt-order-view__notes ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kt-order-view__notes li {
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--soft);
}

.kt-order-view__notes .meta {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--muted);
}

.kt-order-view__notes .description p {
	margin: 0;
}

/* „Поръчай отново“ (WooCommerce's, under an order that has arrived): the
   theme's outline button (.btn--line), not a bare link */
.kt-account-page .order-again {
	margin: 24px 0 0;
}

.kt-account-page .order-again .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--ink);
	border-radius: var(--r-pill);
	color: var(--ink);
	font: 600 15px/1 var(--font-body);
	text-decoration: none;
	transition: background-color 0.15s;
}

.kt-account-page .order-again .button:hover {
	background: var(--soft-3);
}

/* Addresses ------------------------------------------------------------- */

.kt-addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.kt-address {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kt-address header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.kt-address__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font: 700 18px var(--font-display);
}

.kt-account-page .kt-address .edit {
	height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

.kt-address address {
	font-size: 15px;
	font-style: normal;
	line-height: 1.6;
	color: var(--ink-2);
}

/* Forms: an address, the profile and password, a lost password ----------- */

.kt-account__content > form,
.kt-account-page .lost_reset_password {
	padding: 28px;
	border-radius: 28px;
	background: var(--white);
}

.kt-account__content > form > h2 {
	margin: 0 0 22px;
	font: 700 22px var(--font-display);
}

.kt-account-page form.edit-account {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
}

.kt-account-page form.edit-account > * {
	grid-column: 1 / -1;
}

.kt-account-page form.edit-account > .form-row-first {
	grid-column: 1;
}

.kt-account-page form.edit-account > .form-row-last {
	grid-column: 2;
}

.kt-account-page .clear {
	display: none;
}

.kt-account-page form.edit-account em {
	font-size: 13px;
	font-style: normal;
	color: var(--muted);
}

.kt-account-page fieldset {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	margin: 8px 0 0;
	padding: 22px 0 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.kt-account-page legend {
	float: left;
	width: 100%;
	margin: 0;
	padding: 0;
	font: 700 17px var(--font-display);
}

.kt-account-page .woocommerce-address-fields > p:last-child,
.kt-account-page form.edit-account > p:last-of-type {
	margin: 22px 0 0;
}

.kt-account-page form.edit-account > p:last-of-type {
	margin-top: 4px;
}

/* WooCommerce's own buttons in the account, as the theme's */
.kt-account-page button.button:not(.btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 32px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font: 700 16px var(--font-body);
	cursor: pointer;
	transition: background-color 0.15s;
}

.kt-account-page button.button:not(.btn):hover {
	background: var(--ink-hover);
}

/* A lost password: one card, not wider than a field needs */
.kt-account-page .lost_reset_password {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 560px;
}

/* WooCommerce's line over the field says what the head's line says (1.2.0, kingtex_account_head()) */
.kt-account-page .lost_reset_password > p:first-child {
	display: none;
}

.kt-account-page .lost_reset_password .form-row {
	width: 100%;
}

/* Not logged in: „Вход“ and „Регистрация“ ---------------------------------- */
/* .kt-login wraps the two cards only when registration is on; what is in a
   card is styled through .kt-login__card, which is there either way. */

.kt-login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.kt-login__card--alone {
	max-width: 560px;
}

.kt-login__card form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.kt-login__title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
}

.kt-login__lead {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--ink-2);
}

.kt-login__card form > p:not(.form-row) {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.kt-login__card .woocommerce-form-login > .form-row:not(.form-row-wide) {
	gap: 16px;
}

.kt-login__card .btn {
	width: 100%;
}

.kt-login__card .lost_password a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

/* Tablet and phone --------------------------------------------------------- */

@media (max-width: 960px) {
	.kt-account {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	/* The menu becomes a row of chips that scrolls sideways */
	.kt-account-nav {
		position: static;
		margin: 0 -16px;
		padding: 0;
		border-radius: 0;
		background: none;
	}

	.kt-account-nav ul {
		flex-direction: row;
		gap: 8px;
		padding: 2px 16px 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.kt-account-nav ul::-webkit-scrollbar {
		display: none;
	}

	.kt-account-nav li {
		flex: none;
	}

	.kt-account-nav a {
		min-height: 44px;
		gap: 8px;
		padding: 0 16px;
		border: 1.5px solid var(--line-2);
		background: var(--white);
		font-size: 14px;
		white-space: nowrap;
	}

	.kt-account-nav a[aria-current='page'] {
		border-color: var(--ink);
	}

	.kt-account-nav .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}
}

@media (max-width: 700px) {
	.kt-account__content > form,
	.kt-account-page .lost_reset_password {
		padding: 20px;
		border-radius: 22px;
	}

	.kt-login {
		grid-template-columns: minmax(0, 1fr);
	}

	.kt-account-page form.edit-account > .form-row-first,
	.kt-account-page form.edit-account > .form-row-last {
		grid-column: 1 / -1;
	}

	/* An order per card: its number on top, the rest as label · value */
	.kt-orders,
	.kt-orders tbody,
	.kt-orders tr,
	.kt-orders th,
	.kt-orders td {
		display: block;
		width: 100%;
	}

	.kt-orders {
		border-radius: 0;
		background: none;
	}

	.kt-orders thead {
		display: none;
	}

	.kt-orders tbody {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.kt-orders tr {
		padding: 6px 20px 16px;
		border-radius: 22px;
		background: var(--white);
	}

	.kt-orders th,
	.kt-orders td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 0;
	}

	.kt-orders tbody tr > *:last-child {
		border-bottom: 0;
	}

	.kt-orders td[data-title]::before {
		content: attr(data-title);
		font-size: 13px;
		font-weight: 600;
		color: var(--muted);
	}

	.kt-orders .woocommerce-orders-table__cell-order-number {
		font: 700 18px var(--font-display);
	}

	.kt-orders .woocommerce-orders-table__cell-order-actions {
		justify-content: stretch;
		padding-bottom: 0;
	}

	.kt-orders .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	.kt-orders .woocommerce-orders-table__cell-order-actions .btn {
		flex: 1;
	}

	.kt-orders .woocommerce-orders-table__cell-order-actions .btn + .btn {
		margin-left: 0;
	}
}

/* Touch screens (main.css, „Touch screens“): the password's „show“, the
   links of the dashboard and the login, the orders' links and buttons are
   44 px. */
@media (pointer: coarse) {
	.kt-account-page .password-input .input-text {
		padding-right: 58px;
	}

	.kt-account-page .show-password-input {
		right: 6px;
		width: 44px;
		height: 44px;
	}

	.kt-dash__link,
	.kt-login__card .lost_password a,
	.kt-orders .woocommerce-orders-table__cell-order-number a,
	.kt-order-view__back {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.kt-account-page .kt-orders .btn,
	.kt-account-page .kt-address .edit {
		height: 44px;
	}
}


/* „Отказ от договора“: WooCommerce's own withdrawal page (11.1+) ----------- */
/* Its template (myaccount/form-order-withdrawal.php) is styled through its
   classes only, with no copy in the theme to fall behind WooCommerce's. The
   page is open to everyone, so it has no account menu: one card, and beside
   it the short of the Общи условия (template-parts/withdrawal-aside.php,
   inner.css). page.php names it and adds .kt-withdrawal. */

.kt-withdrawal .woocommerce-order-withdrawal-content {
	padding: 32px;
	border-radius: 28px;
	background: var(--white);
}

/* WooCommerce's first line („Попълни формуляра…“, „Провери данните…“)
   repeats the line under the page's title and the steps: out, in both
   steps (1.2.1, Denis). The note under it stays. */
.kt-withdrawal .woocommerce-order-withdrawal-content__intro {
	display: none;
}

.woocommerce-order-withdrawal-content__note {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* The two steps, numbered as the checkout's (.kt-step); the one done is a tick */
.woocommerce-order-withdrawal-content__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 24px 0 26px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--line);
	list-style: none;
	counter-reset: kt-withdrawal;
}

.woocommerce-order-withdrawal-content__step {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	counter-increment: kt-withdrawal;
}

.woocommerce-order-withdrawal-content__step::before {
	content: counter(kt-withdrawal);
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	border: 1.5px solid var(--line-2);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.woocommerce-order-withdrawal-content__step--current {
	color: var(--ink);
}

.woocommerce-order-withdrawal-content__step--current::before {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.woocommerce-order-withdrawal-content__step:has(~ .woocommerce-order-withdrawal-content__step--current)::before {
	content: "✓";
	border-color: var(--success-dot);
	background: var(--tint-mint);
	color: var(--success);
}

/* The form: the account's fields, the names side by side */
.kt-withdrawal .woocommerce-OrderWithdrawalForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0;
}

.kt-withdrawal .woocommerce-OrderWithdrawalForm > * {
	grid-column: 1 / -1;
}

.kt-withdrawal .woocommerce-OrderWithdrawalForm > .form-row-first {
	grid-column: 1;
}

.kt-withdrawal .woocommerce-OrderWithdrawalForm > .form-row-last {
	grid-column: 2;
}

.woocommerce-order-withdrawal-content__field-error {
	font-size: 13px;
	color: #c62828;
}

/* The textarea's hint, under it */
.kt-withdrawal .woocommerce-OrderWithdrawalForm > .woocommerce-order-withdrawal-content__note {
	margin-top: -10px;
	font-size: 13px;
}

/* „От какво се отказвате?“: two options, drawn as the couriers' (.kt-opt) */
.kt-withdrawal .woocommerce-order-withdrawal-content__radio-field {
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
}

.kt-withdrawal .woocommerce-order-withdrawal-content__radio-field legend {
	margin: 0 0 8px;
	font: 600 14px var(--font-body);
	color: var(--ink);
}

.woocommerce-order-withdrawal-content__radio-label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 16px;
	box-sizing: border-box;
	border: 1.5px solid var(--line-2);
	border-radius: var(--r-field);
	background: var(--white);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s;
}

.woocommerce-order-withdrawal-content__radio-label:hover {
	border-color: var(--field-border);
}

.woocommerce-order-withdrawal-content__radio-label:has(.input-radio:checked) {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 0.5px var(--ink);
}

.woocommerce-order-withdrawal-content__radio-label .input-radio {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	box-sizing: border-box;
	border: 2px solid var(--field-border);
	border-radius: var(--r-pill);
	background: var(--white);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-width 0.15s;
}

.woocommerce-order-withdrawal-content__radio-label .input-radio:checked {
	border: 7px solid var(--ink);
}

.woocommerce-order-withdrawal-content__radio-label .input-radio:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.woocommerce-invalid .woocommerce-order-withdrawal-content__radio-label {
	border-color: #c62828;
}

/* The buttons: „Към прегледа“, „Потвърждавам отказа“ and „Промени данните“ */
.woocommerce-order-withdrawal-content__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 6px 0 0;
}

.kt-account-page button.button.woocommerce-order-withdrawal-content__button--secondary:not(.btn) {
	box-shadow: inset 0 0 0 1.5px var(--ink);
	background: var(--white);
	color: var(--ink);
}

.kt-account-page button.button.woocommerce-order-withdrawal-content__button--secondary:not(.btn):hover {
	background: var(--soft-3);
}

/* The review: what is about to be sent */
.woocommerce-order-withdrawal-content__review {
	margin: 0 0 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
}

.woocommerce-order-withdrawal-content__review-row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 4px 16px;
	padding: 14px 18px;
}

.woocommerce-order-withdrawal-content__review-row + .woocommerce-order-withdrawal-content__review-row {
	border-top: 1px solid var(--line);
}

.woocommerce-order-withdrawal-content__review dt {
	font-size: 14px;
	color: var(--muted);
}

.woocommerce-order-withdrawal-content__review dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.woocommerce-order-withdrawal-content__review + .woocommerce-order-withdrawal-content__note {
	margin-bottom: 20px;
}

/* Submitted: its line as a heading with a tick, „Към магазина“ as a button.
   The only paragraphs here without a class (WooCommerce's markup). */
.woocommerce-order-withdrawal-content > p:not([class]):first-of-type {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	font: 700 22px/1.25 var(--font-display);
}

.woocommerce-order-withdrawal-content > p:not([class]):first-of-type::before {
	content: "✓";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--r-pill);
	background: var(--tint-mint);
	color: var(--success);
	font: 700 20px var(--font-body);
}

.woocommerce-order-withdrawal-content > p:not([class]):first-of-type strong {
	font-weight: inherit;
}

.woocommerce-order-withdrawal-content > p:not([class]):first-of-type ~ .woocommerce-order-withdrawal-content__note + .woocommerce-order-withdrawal-content__note {
	margin-top: 8px;
}

.woocommerce-order-withdrawal-content > p:not([class]):last-of-type:not(:first-of-type) {
	margin: 24px 0 0;
}

.woocommerce-order-withdrawal-content > p:not([class]):last-of-type:not(:first-of-type) > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 28px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s;
}

.woocommerce-order-withdrawal-content > p:not([class]):last-of-type:not(:first-of-type) > a:hover {
	background: var(--ink-hover);
}

/* „Откажете се от договора тук“ under the orders and under one order (kingtex-core) */
.kt-withdrawal-link {
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--ink-2);
}

.kt-withdrawal-link a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 700px) {
	.kt-withdrawal .woocommerce-order-withdrawal-content {
		padding: 20px;
		border-radius: 22px;
	}

	.kt-withdrawal .woocommerce-OrderWithdrawalForm > :is(.form-row-first, .form-row-last) {
		grid-column: 1 / -1;
	}

	.woocommerce-order-withdrawal-content__review-row {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px 16px;
	}

	.woocommerce-order-withdrawal-content__actions button,
	.woocommerce-order-withdrawal-content > p:not([class]):last-of-type:not(:first-of-type) > a {
		width: 100%;
	}

	.woocommerce-order-withdrawal-content > p:not([class]):first-of-type {
		font-size: 19px;
	}
}

/* A touch screen: the link on a line of its own, 44 px tall */
@media (pointer: coarse) {
	.kt-withdrawal-link a {
		display: flex;
		align-items: center;
		width: fit-content;
		min-height: 44px;
	}
}
