/* Връщания за WooCommerce – front-end стилове за Mario Moto (червен акцент #ff131c, тъмно #12151c, квадратни ъгли, шрифт на темата).
   Зареждат се от плъгина (дескриптор vfw-frontend): страница „Отказ от поръчка“, продукт, количка, чекаут, профил.
   Класовете is-selected, is-disabled, is-done, is-current ги слага JS/шаблонът на плъгина. */

.vfw-wrap,
.vfw-order-block,
.vfw-product-notice {
	--vfw-brand: #ff131c;
	--vfw-ink: #12151c;
	--vfw-rule: #e5e5e5;
	--vfw-field: #d5d5d5;
	--vfw-muted: #6b6b6b;
	--vfw-soft: #f6f6f6;
}
.vfw-wrap {
	max-width: 880px;
	margin-inline: auto;
	color: var(--vfw-ink);
}

/* ===== Карта ===== */
.vfw-card {
	margin: 0 0 24px;
	border: 1px solid var(--vfw-rule);
	background: #fff;
	padding: 32px;
}
.vfw-card__title {
	position: relative;
	margin: 0 0 12px;
	padding-left: 18px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
}
.vfw-card__title::before {
	content: "";
	position: absolute;
	inset-block: 3px;
	left: 0;
	width: 3px;
	background: var(--vfw-brand);
}
.vfw-order-meta { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--vfw-muted); }
.vfw-deadline {
	display: inline-block;
	margin-top: 6px;
	background: var(--vfw-ink);
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
}
.vfw-hint { font-size: 14px; color: var(--vfw-muted); }
.vfw-muted { color: var(--vfw-muted); }
.vfw-link { font-weight: 600; color: var(--vfw-brand); text-decoration: underline; }
.vfw-link:hover { color: #d90f17; }

/* ===== Съобщения ===== */
.vfw-notice {
	margin: 0 0 20px;
	border-left: 3px solid var(--vfw-ink);
	background: var(--vfw-soft);
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.6;
}
.vfw-notice--error { border-color: var(--vfw-brand); background: #fde8e9; color: #8a0c11; }
.vfw-notice--success { border-color: #2e9e4f; background: #e6f7ea; color: #1f6b33; }
.vfw-notice--info { border-color: var(--vfw-ink); background: var(--vfw-soft); color: var(--vfw-ink); }

/* ===== Полета ===== */
.vfw-field { margin: 0 0 16px; }
.vfw-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.vfw-field input[type="text"],
.vfw-field input[type="email"],
.vfw-field input[type="number"],
.vfw-field input[type="tel"],
.vfw-field select,
.vfw-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 44px;
	border: 1px solid var(--vfw-field);
	border-radius: 0;
	background: #fff;
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	color: #000;
}
.vfw-field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.vfw-field input[type="number"] { width: 90px; }
.vfw-field input:focus,
.vfw-field select:focus,
.vfw-field textarea:focus { border-color: #000; outline: 0; }
.vfw-field input[type="file"] { font-size: 14px; }
.vfw-field input[type="file"]::file-selector-button {
	margin-right: 12px;
	border: 0;
	background: #000;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}
.vfw-field--inline label { display: inline-block; margin-right: 8px; }
.vfw-field .required { color: var(--vfw-brand); }
.vfw-form input[type="checkbox"],
.vfw-form input[type="radio"] { accent-color: var(--vfw-brand); }

.vfw-fieldset { margin: 0 0 28px; border: 0; padding: 0; }
.vfw-fieldset legend {
	margin-bottom: 14px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}
.vfw-select-all-row { margin: 0 0 12px; font-size: 14px; }
.vfw-select-all-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ===== Продукти за избор ===== */
.vfw-items { display: flex; flex-direction: column; gap: 12px; }
.vfw-item { border: 1px solid var(--vfw-field); background: #fff; padding: 16px; transition: border-color .15s, background-color .15s; }
.vfw-item:hover { border-color: #000; }
.vfw-item.is-selected { border-color: #000; background: var(--vfw-soft); }
.vfw-item.is-disabled { background: var(--vfw-soft); opacity: .6; }
.vfw-item.is-disabled:hover { border-color: var(--vfw-field); }
.vfw-item__head { display: flex; align-items: flex-start; gap: 14px; margin: 0; font-weight: 400; cursor: pointer; }
.vfw-item.is-disabled .vfw-item__head { cursor: default; }
.vfw-item__check { flex: none; width: 18px; height: 18px; margin-top: 6px; }
.vfw-item__img { flex: 0 0 72px; }
.vfw-item__img img { display: block; width: 72px; height: 72px; border: 1px solid var(--vfw-rule); background: #fff; padding: 4px; object-fit: contain; }
.vfw-item__info { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.vfw-item__name { font-size: 17px; line-height: 1.35; font-weight: 600; }
.vfw-item__sku,
.vfw-item__qty { font-size: 14px; color: var(--vfw-muted); }
.vfw-item__blocked { margin-top: 4px; font-size: 14px; color: #b3151b; }
.vfw-item__details { display: none; margin-top: 16px; border-top: 1px dashed var(--vfw-field); padding-top: 16px; }
.vfw-item.is-selected .vfw-item__details { display: block; }
.vfw-item__reason { font-size: 14px; }

/* ===== Начин на възстановяване ===== */
.vfw-radios { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vfw-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	border: 1px solid var(--vfw-field);
	padding: 14px 16px;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.vfw-radio:hover { border-color: #000; }
.vfw-radio:has(input:checked) { border-color: #000; background: var(--vfw-soft); }
.vfw-radio input { margin-top: 4px; }
.vfw-bonus { display: inline-block; margin-left: 6px; background: #e6f7ea; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #1f6b33; }
.vfw-bank-fields,
.vfw-courier-fields { margin-bottom: 16px; border: 1px dashed var(--vfw-field); background: var(--vfw-soft); padding: 16px; }
.vfw-terms label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.vfw-terms a { color: var(--vfw-brand); text-decoration: underline; }

/* ===== Бутони ===== */
.vfw-actions { margin-top: 12px; }
.vfw-button,
.vfw-wrap .button.vfw-button,
.vfw-order-block .button.vfw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border: 2px solid var(--vfw-brand);
	border-radius: 0;
	background: var(--vfw-brand);
	padding: 0 28px;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.vfw-button:hover,
.vfw-wrap .button.vfw-button:hover,
.vfw-order-block .button.vfw-button:hover { background: #fff; color: var(--vfw-brand); }
.vfw-button--primary { min-width: 240px; }
.vfw-tracking__actions a.vfw-button { border-color: #000; background: #000; }
.vfw-tracking__actions a.vfw-button:hover { background: #fff; color: #000; }
.vfw-wrap .button.vfw-button--link,
.vfw-button--link {
	height: auto;
	border: 0;
	background: transparent;
	padding: 0;
	font-size: 14px;
	letter-spacing: 0;
	text-decoration: underline;
	text-transform: none;
	color: #b3151b;
}
.vfw-wrap .button.vfw-button--link:hover,
.vfw-button--link:hover { background: transparent; color: var(--vfw-brand); }

/* ===== Снимки ===== */
.vfw-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vfw-photo-preview img { width: 72px; height: 72px; border: 1px solid var(--vfw-rule); object-fit: cover; }

/* ===== Статуси ===== */
.vfw-status {
	display: inline-block;
	background: #eee;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #555;
}
.vfw-status--new { background: #fff4d6; color: #8a6100; }
.vfw-status--approved { background: var(--vfw-ink); color: #fff; }
.vfw-status--received { background: #e3e3e3; color: var(--vfw-ink); }
.vfw-status--completed { background: #e6f7ea; color: #1f6b33; }
.vfw-status--rejected { background: #fde8e9; color: var(--vfw-brand); }
.vfw-status--withdrawn { background: #eee; color: #666; }
.vfw-status--refund-not_due { background: #f1f1f1; color: #555; }
.vfw-status--refund-due { background: #fff1e0; color: #9a4b00; }
.vfw-status--refund-partial { background: #fff4d6; color: #8a6100; }
.vfw-status--refund-refunded { background: #e6f7ea; color: #1f6b33; }

/* ===== Проследяване ===== */
.vfw-tracking__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.vfw-tracking__head .vfw-card__title { margin-right: auto; }

.vfw-steps { display: flex; margin: 8px 0 28px; padding: 0; list-style: none; counter-reset: vfw; }
.vfw-steps li { position: relative; flex: 1; padding-top: 38px; text-align: center; font-size: 14px; color: #999; }
.vfw-steps li::before {
	counter-increment: vfw;
	content: counter(vfw);
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	width: 28px;
	height: 28px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #e5e5e5;
	line-height: 28px;
	font-size: 13px;
	font-weight: 700;
	color: #777;
}
.vfw-steps li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #e5e5e5; }
.vfw-steps li:first-child::after { display: none; }
.vfw-steps li.is-done { color: var(--vfw-ink); }
.vfw-steps li.is-done::before { content: "\2713"; background: var(--vfw-ink); color: #fff; }
.vfw-steps li.is-done::after { background: var(--vfw-ink); }
.vfw-steps li.is-current { font-weight: 700; }
.vfw-steps li.is-current::before { background: var(--vfw-brand); }

.vfw-instructions,
.vfw-coupon { margin: 0 0 20px; border-left: 3px solid var(--vfw-ink); background: var(--vfw-soft); padding: 18px 20px; }
.vfw-instructions h3,
.vfw-coupon h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.vfw-coupon__code { display: inline-block; border: 1px dashed #000; background: #fff; padding: 4px 12px; font-size: 20px; font-weight: 700; letter-spacing: .05em; }

.vfw-table { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: 15px; }
.vfw-table th,
.vfw-table td { border-bottom: 1px solid var(--vfw-rule); padding: 12px 10px; text-align: left; vertical-align: top; }
.vfw-table th { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--vfw-muted); }

.vfw-timeline { margin: 0 0 20px; padding: 0; list-style: none; }
.vfw-timeline li { margin-left: 6px; border-left: 2px solid #d5d5d5; padding: 10px 0 10px 18px; font-size: 15px; }
.vfw-timeline li p { margin: 0; }
.vfw-tracking__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.vfw-inline-form { display: inline; }

/* ===== Продукт, количка, профил ===== */
.vfw-product-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0;
	border-left: 3px solid #dba617;
	background: #fff4d6;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #8a6100;
}
.vfw-cart-notice { color: #8a6100; }
.vfw-order-block { margin: 32px 0; border: 1px solid var(--vfw-rule); background: #fff; padding: 24px; }
.vfw-order-block h2,
.vfw-order-block h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.vfw-order-block__requests { margin: 0 0 16px; padding: 0; list-style: none; }
.vfw-order-block__requests li { border-bottom: 1px solid var(--vfw-rule); padding: 8px 0; }

@media (max-width: 40rem) {
	.vfw-card { padding: 20px 16px; }
	.vfw-card__title { font-size: 18px; }
	.vfw-item { padding: 12px; }
	.vfw-item__img { flex-basis: 56px; }
	.vfw-item__img img { width: 56px; height: 56px; }
	.vfw-item__name { font-size: 16px; }
	.vfw-button,
	.vfw-wrap .button.vfw-button { width: 100%; }
	.vfw-button--primary { min-width: 0; }
	.vfw-steps li { padding-top: 36px; font-size: 12px; }
	.vfw-table { display: block; overflow-x: auto; }
	.vfw-order-block { padding: 16px; }
}
