/* Yonar Customer Platform — portal styles.
   Uses CSS logical properties so the same file works for RTL (fa) and LTR (en).
   Palette matches yonartools.com: navy #081b33/#143258, yellow #f5c518. */

:root {
	--ycp-navy: #081b33;
	--ycp-navy-2: #143258;
	--ycp-navy-tile: #0d2440;
	--ycp-yellow: #f5c518;
	--ycp-yellow-2: #ffb200;
	--ycp-yellow-soft: #fffaeb;
	--ycp-yellow-border: #f3dc8a;
	--ycp-green: #1d8a46;
	--ycp-text: #22303f;
	--ycp-muted: #64748b;
	--ycp-bg: #f6f8fb;
	--ycp-border: #e3e9f0;
	--ycp-border-strong: #cfd9e4;
	--ycp-radius: 14px;
	--ycp-radius-sm: 10px;
	--ycp-shadow: 0 4px 18px rgba(8, 27, 51, 0.07);
	--ycp-shadow-lift: 0 12px 30px rgba(8, 27, 51, 0.14);
	--ycp-font: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
}

.ycp-portal {
	font-family: var(--ycp-font);
	color: var(--ycp-text);
	line-height: 1.9;
	background: #fff;
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	padding: 24px 26px;
	box-shadow: var(--ycp-shadow);
}
.ycp-portal :is(input, button, textarea, select) { font-family: inherit; }

/* ---- Buttons (theme .button restyled inside portal areas) ---- */
.ycp-portal .button,
.ycp-portal a.button,
.ycp-portal button.button {
	display: inline-block;
	padding: 9px 22px;
	border: 1.5px solid var(--ycp-border-strong);
	border-radius: var(--ycp-radius-sm);
	background: #fff;
	color: var(--ycp-navy-2);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ycp-portal .button:hover {
	background: var(--ycp-bg);
	border-color: var(--ycp-navy-2);
	color: var(--ycp-navy);
}
.ycp-portal .button.alt,
.ycp-portal button.button.alt {
	background: var(--ycp-yellow);
	border-color: var(--ycp-yellow);
	color: var(--ycp-navy);
	font-weight: 700;
}
.ycp-portal .button.alt:hover {
	background: var(--ycp-yellow-2);
	border-color: var(--ycp-yellow-2);
	color: var(--ycp-navy);
	box-shadow: var(--ycp-shadow);
	transform: translateY(-1px);
}

/* ---- Form controls ---- */
.ycp-portal input[type="text"],
.ycp-portal input[type="number"],
.ycp-portal input[type="email"],
.ycp-portal textarea,
.ycp-portal select {
	padding: 8px 12px;
	border: 1.5px solid var(--ycp-border-strong);
	border-radius: var(--ycp-radius-sm);
	background: #fff;
	color: var(--ycp-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ycp-portal input:focus,
.ycp-portal textarea:focus,
.ycp-portal select:focus {
	outline: none;
	border-color: var(--ycp-navy-2);
	box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25);
}

/* ---- Tables ---- */
.ycp-portal table.shop_table {
	border: 1px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	box-shadow: var(--ycp-shadow);
}
.ycp-portal table.shop_table thead th {
	background: var(--ycp-navy-tile);
	color: #fff;
	font-weight: 600;
	border: 0;
	padding: 12px 16px;
}
.ycp-portal table.shop_table td {
	border: 0;
	border-block-start: 1px solid var(--ycp-border);
	padding: 11px 16px;
	background: #fff;
}
.ycp-portal table.shop_table tbody tr:hover td { background: var(--ycp-bg); }

/* ---- Dashboard banner ---- */
.ycp-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 28px;
	margin-block-end: 22px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ycp-navy) 0%, var(--ycp-navy-2) 100%);
	color: #fff;
}
.ycp-banner::before {
	content: "";
	position: absolute;
	inset-block-start: -70px;
	inset-inline-end: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 197, 24, 0.28) 0%, rgba(245, 197, 24, 0) 70%);
	pointer-events: none;
}
.ycp-banner h3 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 1.35em;
	font-weight: 800;
}
.ycp-banner p { margin: 0; color: #c7d2df; font-size: 0.95em; max-width: 34em; }
.ycp-banner-stats {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
.ycp-banner-stats li {
	min-width: 96px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	text-align: center;
}
.ycp-banner-stats strong {
	display: block;
	font-size: 1.5em;
	font-weight: 800;
	color: var(--ycp-yellow);
	line-height: 1.4;
}
.ycp-banner-stats span { font-size: 0.8em; color: #c7d2df; }

/* ---- Dashboard cards ---- */
.ycp-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin-block: 16px 28px;
}
.ycp-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px;
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-shadow: var(--ycp-shadow);
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ycp-card:hover {
	border-color: var(--ycp-yellow);
	box-shadow: var(--ycp-shadow-lift);
	transform: translateY(-3px);
}
.ycp-card-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ycp-navy-tile), var(--ycp-navy-2));
	color: var(--ycp-yellow);
}
.ycp-card-icon svg { width: 28px; height: 28px; }
.ycp-card-body strong {
	display: block;
	margin-block-end: 4px;
	color: var(--ycp-navy);
	font-size: 1.02em;
}
.ycp-card-body > span { display: block; font-size: 0.86em; color: var(--ycp-muted); }
.ycp-card-cta {
	margin-block-start: 8px;
	font-size: 0.85em;
	font-weight: 700;
	color: var(--ycp-navy-2);
	transition: color 0.15s ease;
}
.ycp-card:hover .ycp-card-cta { color: var(--ycp-yellow-2); }

/* Hide WooCommerce's default "Hello X" line on the dashboard — the banner
   greets the customer instead. The orientation paragraph with links stays. */
.woocommerce-MyAccount-content:has(> .ycp-dashboard) > p:first-of-type { display: none; }

/* ---- Status badges ---- */
.ycp-badge {
	display: inline-block;
	padding: 3px 13px;
	border-radius: 20px;
	font-size: 0.78em;
	font-weight: 700;
	background: #eef1f4;
	color: var(--ycp-muted);
	vertical-align: middle;
}
.ycp-badge-submitted    { background: #e9effa; color: var(--ycp-navy-2); }
.ycp-badge-under_review { background: #fff4d1; color: #8a6400; }
.ycp-badge-quoted       { background: var(--ycp-yellow); color: var(--ycp-navy); }
.ycp-badge-confirmed    { background: #e2f5e8; color: var(--ycp-green); }
.ycp-badge-declined,
.ycp-badge-closed       { background: #eef1f4; color: var(--ycp-muted); }

.ycp-muted { color: var(--ycp-muted); font-size: 0.88em; }

/* ---- List headers & empty states ---- */
.ycp-list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-end: 16px;
}
.ycp-list-head h3 { margin: 0; color: var(--ycp-navy); }
.ycp-empty {
	padding: 42px 24px;
	border: 1.5px dashed var(--ycp-border-strong);
	border-radius: var(--ycp-radius);
	background: #fbfcfe;
	text-align: center;
}
.ycp-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-block-end: 12px;
	border-radius: 50%;
	background: var(--ycp-bg);
	color: var(--ycp-navy-2);
}
.ycp-empty-icon svg { width: 30px; height: 30px; }
.ycp-empty p { margin: 0 0 16px; color: var(--ycp-muted); }

/* ---- RFQ form ---- */
.ycp-panel {
	padding: 20px 22px;
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	background: #fff;
	box-shadow: var(--ycp-shadow);
	margin-block-end: 18px;
}
.ycp-panel > h4 { margin-block-start: 0; color: var(--ycp-navy); }
/* The generic .shop_table rule clips corners with overflow:hidden, which also
   clipped the product-search dropdown below it — let it overflow instead. */
.ycp-portal table.shop_table.ycp-rfq-items { overflow: visible; }
.ycp-rfq-items input[type="text"],
.ycp-rfq-items input[type="number"] { width: 100%; }
.ycp-rfq-items .ycp-col-qty { width: 90px; }
.ycp-rfq-items td { position: relative; }
.ycp-remove-item { line-height: 1 !important; padding: 8px 12px !important; }
.ycp-autocomplete-results {
	position: absolute;
	inset-inline: 8px;
	z-index: 30;
	background: #fff;
	border: 1.5px solid var(--ycp-border-strong);
	border-radius: var(--ycp-radius-sm);
	box-shadow: var(--ycp-shadow-lift);
	max-height: 220px;
	overflow-y: auto;
}
.ycp-autocomplete-results button {
	display: block;
	width: 100%;
	padding: 9px 14px;
	background: none;
	border: 0;
	border-block-end: 1px solid var(--ycp-bg);
	text-align: start;
	cursor: pointer;
	color: var(--ycp-text);
}
.ycp-autocomplete-results button:hover { background: var(--ycp-yellow-soft); }
.ycp-rfq-form textarea { width: 100%; }

.ycp-quote-box {
	border: 1px solid var(--ycp-yellow-border);
	border-inline-start: 4px solid var(--ycp-yellow);
	background: var(--ycp-yellow-soft);
	border-radius: var(--ycp-radius);
	padding: 18px 22px;
	margin-block: 18px;
	box-shadow: var(--ycp-shadow);
}
.ycp-quote-box h4 { margin-block-start: 0; color: var(--ycp-navy); }
.ycp-quote-actions { display: flex; gap: 10px; margin-block-start: 14px; }
.ycp-quote-block {
	border-inline-start: 3px solid var(--ycp-yellow);
	padding-inline-start: 14px;
	color: var(--ycp-muted);
}

/* ---- Tracking timeline ---- */
.ycp-tracking { margin-block-start: 28px; }
.ycp-tracking h2 { color: var(--ycp-navy); }
.ycp-shipment {
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	padding: 18px 22px;
	margin-block-end: 16px;
	background: #fff;
	box-shadow: var(--ycp-shadow);
}
.ycp-shipment h4 { margin-block-start: 0; color: var(--ycp-navy); }
.ycp-chip {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 20px;
	background: var(--ycp-bg);
	border: 1px solid var(--ycp-border);
	color: var(--ycp-navy-2);
	font-size: 0.82em;
	font-weight: 600;
	vertical-align: middle;
}
.ycp-shipment code {
	background: var(--ycp-navy-tile);
	color: var(--ycp-yellow);
	padding: 2px 10px;
	border-radius: 6px;
	direction: ltr;
	unicode-bidi: embed;
}
.ycp-track-link { font-weight: 700; color: var(--ycp-navy-2); text-decoration: none; }
.ycp-track-link:hover { color: var(--ycp-yellow-2); }

.ycp-timeline {
	display: flex;
	list-style: none;
	margin: 22px 0 8px;
	padding: 0;
	counter-reset: step;
}
.ycp-step {
	flex: 1;
	text-align: center;
	position: relative;
	font-size: 0.82em;
	font-weight: 600;
	color: #9aa7b5;
}
.ycp-step::before {
	content: "";
	position: absolute;
	top: 10px;
	inset-inline-start: -50%;
	width: 100%;
	height: 4px;
	background: var(--ycp-border-strong);
}
.ycp-step:first-child::before { display: none; }
.ycp-step-dot {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: var(--ycp-border-strong);
	border: 3px solid #fff;
	box-sizing: border-box;
	box-shadow: 0 0 0 1px var(--ycp-border-strong);
	position: relative;
	z-index: 1;
}
.ycp-step-label { display: inline-block; margin-block-start: 2px; }

/* Passed steps: green, connecting line leading into them filled green. */
.ycp-step-done .ycp-step-dot,
.ycp-step-done::before { background: var(--ycp-green); }
.ycp-step-done .ycp-step-dot { box-shadow: 0 0 0 1px var(--ycp-green); }
.ycp-step-done .ycp-step-dot::after {
	content: "\2713";
	position: absolute;
	inset: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.ycp-step-done { color: var(--ycp-green); }

/* Current step: yellow, pulsing to draw the eye. */
.ycp-step-current .ycp-step-dot {
	background: var(--ycp-yellow);
	box-shadow: 0 0 0 1px var(--ycp-yellow);
	animation: ycp-pulse 2s ease-out infinite;
}
.ycp-step-current { color: var(--ycp-navy); font-weight: 700; }
.ycp-step-current::before { background: var(--ycp-yellow); }

/* Delivered (last step) reached: success green, no pulse. */
.ycp-step-current:last-child .ycp-step-dot {
	background: var(--ycp-green);
	box-shadow: 0 0 0 1px var(--ycp-green);
	animation: none;
}
.ycp-step-current:last-child { color: var(--ycp-green); }
.ycp-step-current:last-child::before { background: var(--ycp-green); }
@keyframes ycp-pulse {
	0%   { box-shadow: 0 0 0 1px var(--ycp-yellow), 0 0 0 1px rgba(245, 197, 24, 0.4); }
	70%  { box-shadow: 0 0 0 1px var(--ycp-yellow), 0 0 0 9px rgba(245, 197, 24, 0); }
	100% { box-shadow: 0 0 0 1px var(--ycp-yellow), 0 0 0 1px rgba(245, 197, 24, 0); }
}

.ycp-events { margin-block-start: 12px; }
.ycp-events summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ycp-navy-2);
}
.ycp-events ul { list-style: none; padding: 6px 0 0; margin: 8px 0 0; }
.ycp-events li {
	padding: 6px 0;
	border-block-end: 1px dashed var(--ycp-border);
	font-size: 0.88em;
}

/* ---- Assistant ---- */
.ycp-tabs {
	display: inline-flex;
	gap: 4px;
	margin-block-end: 18px;
	padding: 4px;
	border-radius: 999px;
	background: #eef2f7;
}
.ycp-tab {
	padding: 8px 22px;
	border: 0;
	background: transparent;
	border-radius: 999px;
	cursor: pointer;
	color: var(--ycp-muted);
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.ycp-tab:hover { color: var(--ycp-navy); }
.ycp-tab.is-active {
	background: var(--ycp-yellow);
	color: var(--ycp-navy);
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(8, 27, 51, 0.12);
}
.ycp-tab-panel { display: none; }
.ycp-tab-panel.is-active { display: block; }

.ycp-chat {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 16px;
	min-height: 420px;
}
@media (max-width: 700px) {
	.ycp-chat { grid-template-columns: 1fr; }
	.ycp-chat-sidebar ul { display: flex; flex-wrap: wrap; gap: 6px; }
	.ycp-banner { padding: 20px; }
	.ycp-banner-stats { width: 100%; }
	.ycp-banner-stats li { flex: 1; min-width: 0; padding: 8px 6px; }
}
.ycp-chat-sidebar ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ycp-chat-sidebar li button {
	display: block;
	width: 100%;
	padding: 8px 12px;
	margin-block-end: 6px;
	background: #fff;
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius-sm);
	cursor: pointer;
	text-align: start;
	font-size: 0.85em;
	color: var(--ycp-text);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ycp-chat-sidebar li button:hover { border-color: var(--ycp-border-strong); }
.ycp-chat-sidebar li button.is-active {
	border-color: var(--ycp-yellow);
	background: var(--ycp-yellow-soft);
	font-weight: 600;
}

.ycp-chat-main {
	display: flex;
	flex-direction: column;
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--ycp-shadow);
}
.ycp-chat-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: linear-gradient(135deg, var(--ycp-navy) 0%, var(--ycp-navy-2) 100%);
	color: #fff;
}
.ycp-chat-header strong { color: #fff; }
.ycp-chat-header .ycp-chat-tagline { font-size: 0.8em; color: #c7d2df; }
.ycp-chat-header-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3ddc73;
	box-shadow: 0 0 6px rgba(61, 220, 115, 0.9);
}
.ycp-chat-messages {
	flex: 1;
	padding: 16px;
	overflow-y: auto;
	max-height: 480px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--ycp-bg);
}
.ycp-chat-empty { margin: auto; text-align: center; color: var(--ycp-muted); }
.ycp-chat-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-block-end: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ycp-navy-tile), var(--ycp-navy-2));
	color: var(--ycp-yellow);
}
.ycp-chat-empty-icon svg { width: 32px; height: 32px; }
.ycp-msg {
	max-width: 85%;
	padding: 10px 16px;
	border-radius: 14px;
	line-height: 1.9;
	white-space: pre-wrap;
	word-break: break-word;
}
.ycp-msg-user {
	align-self: flex-start;
	background: var(--ycp-navy-2);
	color: #fff;
	border-end-start-radius: 4px;
}
.ycp-msg-assistant {
	align-self: flex-end;
	background: #fff;
	border: 1px solid var(--ycp-border);
	border-inline-start: 3px solid var(--ycp-yellow);
	color: var(--ycp-text);
	border-end-end-radius: 4px;
	box-shadow: 0 2px 8px rgba(8, 27, 51, 0.05);
}
.ycp-msg-pending {
	font-style: italic;
	animation: ycp-thinking 1.4s ease-in-out infinite;
}
@keyframes ycp-thinking {
	0%, 100% { opacity: 0.45; }
	50%      { opacity: 0.9; }
}
.ycp-chat-input {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-block-start: 1px solid var(--ycp-border);
	background: #fff;
}
.ycp-chat-input textarea { flex: 1; resize: none; }
.ycp-chat-quota { padding: 0 14px 10px; margin: 0; background: #fff; }

/* ---- Calculators ---- */
.ycp-calculators {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
.ycp-calc {
	border: 1.5px solid var(--ycp-border);
	border-radius: var(--ycp-radius);
	padding: 18px 20px;
	background: #fff;
	box-shadow: var(--ycp-shadow);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ycp-calc:hover { border-color: var(--ycp-border-strong); box-shadow: var(--ycp-shadow-lift); }
.ycp-calc h4 { margin-block-start: 0; color: var(--ycp-navy); }
.ycp-formula {
	display: inline-block;
	direction: ltr;
	unicode-bidi: embed;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82em;
	padding: 3px 14px;
	border-radius: 6px;
	background: var(--ycp-navy-tile);
	color: var(--ycp-yellow);
	margin-block-end: 8px;
}
.ycp-calc label { display: block; margin-block-end: 10px; font-size: 0.9em; color: var(--ycp-text); }
.ycp-calc input { width: 100%; margin-block-start: 4px; }
.ycp-calc input[readonly] {
	background: var(--ycp-yellow-soft);
	border-color: var(--ycp-yellow-border);
	font-weight: 700;
	color: var(--ycp-navy);
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
	.ycp-step-current .ycp-step-dot,
	.ycp-msg-pending { animation: none; }
	.ycp-card:hover,
	.ycp-portal .button.alt:hover { transform: none; }
}


/* ---- RFQ visual progress timeline ---- */
.ycp-rfq-progress {
	margin: 18px 0 24px;
	padding: 18px 20px 20px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--ycp-navy) 0%, #07182e 100%);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #e7eef8;
}
.ycp-rfq-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 6px;
}
.ycp-rfq-progress-head h4 {
	margin: 0;
	color: #fff;
	font-size: 1em;
	font-weight: 800;
}
.ycp-rfq-progress-head p { margin: 3px 0 0; color: #aebdd0; }
.ycp-active-progress { margin-bottom: 26px; }
.ycp-active-progress .button {
	background: rgba(255,255,255,.10) !important;
	color: #fff !important;
	border-color: rgba(255,255,255,.18) !important;
}
.ycp-rfq-timeline,
.ycp-portal .ycp-rfq-timeline {
	--ycp-step-done: #22c55e;
	--ycp-step-current: #f5c518;
	--ycp-step-next: #24405f;
	direction: rtl;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	align-items: start;
	gap: 0;
	position: relative;
	list-style: none;
	margin: 16px 0 0;
	padding: 12px 6px 2px;
	counter-reset: none;
}
.ycp-rfq-timeline::before {
	content: "";
	position: absolute;
	top: 27px;
	right: 7%;
	left: 7%;
	height: 3px;
	border-radius: 999px;
	background: rgba(255,255,255,.13);
}
.ycp-rfq-timeline .ycp-step {
	position: relative;
	z-index: 1;
	text-align: center;
	font-size: 0.78em;
	font-weight: 650;
	color: #9fb0c4;
	min-width: 0;
	padding: 0 4px;
}
.ycp-rfq-timeline .ycp-step::before,
.ycp-rfq-timeline .ycp-step::after,
.ycp-rfq-timeline .ycp-step-label::after {
	display: none !important;
	content: none !important;
}
.ycp-rfq-timeline .ycp-step-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0 auto 8px;
	border-radius: 999px;
	background: var(--ycp-step-next);
	border: 2px solid rgba(255,255,255,.12);
	box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
.ycp-rfq-timeline .ycp-step-label {
	display: block;
	max-width: 78px;
	margin: 0 auto;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: inherit;
}
.ycp-rfq-timeline .ycp-step-done { color: #dffbea; }
.ycp-rfq-timeline .ycp-step-done .ycp-step-dot {
	background: linear-gradient(135deg, #16a34a, var(--ycp-step-done));
	border-color: rgba(134, 239, 172, .75);
}
.ycp-rfq-timeline .ycp-step-done .ycp-step-dot::after {
	content: "✓" !important;
	display: block !important;
	color: #061b10;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}
.ycp-rfq-timeline .ycp-step-current {
	color: #fff2b2;
	font-weight: 850;
}
.ycp-rfq-timeline .ycp-step-current .ycp-step-dot {
	width: 34px;
	height: 34px;
	margin-top: -3px;
	margin-bottom: 5px;
	background: linear-gradient(135deg, #fff2a8, var(--ycp-step-current));
	border-color: #fff2a8;
	box-shadow: 0 0 0 6px rgba(245, 197, 24, .14), 0 16px 34px rgba(245, 197, 24, .20);
}
.ycp-rfq-timeline .ycp-step-current .ycp-step-dot::after {
	content: "" !important;
	display: block !important;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #081b33;
}
.ycp-rfq-timeline.ycp-progress-0::before { background: linear-gradient(270deg, var(--ycp-step-current) 0 7%, rgba(255,255,255,.13) 7% 100%); }
.ycp-rfq-timeline.ycp-progress-1::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 14%, var(--ycp-step-current) 14% 21%, rgba(255,255,255,.13) 21% 100%); }
.ycp-rfq-timeline.ycp-progress-2::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 28%, var(--ycp-step-current) 28% 35%, rgba(255,255,255,.13) 35% 100%); }
.ycp-rfq-timeline.ycp-progress-3::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 42%, var(--ycp-step-current) 42% 49%, rgba(255,255,255,.13) 49% 100%); }
.ycp-rfq-timeline.ycp-progress-4::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 56%, var(--ycp-step-current) 56% 63%, rgba(255,255,255,.13) 63% 100%); }
.ycp-rfq-timeline.ycp-progress-5::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 70%, var(--ycp-step-current) 70% 77%, rgba(255,255,255,.13) 77% 100%); }
.ycp-rfq-timeline.ycp-progress-6::before { background: linear-gradient(270deg, var(--ycp-step-done) 0 84%, var(--ycp-step-current) 84% 91%, rgba(255,255,255,.13) 91% 100%); }
.ycp-rfq-timeline.ycp-progress-7::before { background: var(--ycp-step-done); }
.ycp-rfq-timeline.ycp-progress-7 .ycp-step-current .ycp-step-dot {
	background: linear-gradient(135deg, #16a34a, var(--ycp-step-done));
	border-color: rgba(134, 239, 172, .75);
	box-shadow: 0 0 0 6px rgba(34, 197, 94, .13), 0 16px 34px rgba(34, 197, 94, .18);
}
@media (max-width: 900px) {
	.ycp-rfq-timeline,
	.ycp-portal .ycp-rfq-timeline {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 16px;
	}
	.ycp-rfq-timeline::before { display: none; }
	.ycp-rfq-timeline .ycp-step-label { max-width: 92px; }
}
@media (max-width: 560px) {
	.ycp-rfq-progress { padding: 16px; }
	.ycp-rfq-progress-head { display: block; }
	.ycp-rfq-timeline,
	.ycp-portal .ycp-rfq-timeline {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 6px 0 0;
	}
	.ycp-rfq-timeline .ycp-step {
		display: grid;
		grid-template-columns: 38px 1fr;
		align-items: center;
		text-align: right;
		min-height: 36px;
	}
	.ycp-rfq-timeline .ycp-step-dot,
	.ycp-rfq-timeline .ycp-step-current .ycp-step-dot {
		width: 28px;
		height: 28px;
		margin: 0;
	}
	.ycp-rfq-timeline .ycp-step-label {
		max-width: none;
		margin: 0;
	}
}
