/* Keep Seal Quick Order — front-end form styles (RTL) */

.ksqo-form-wrap {
	--ksqo-accent: #6366f1;
	--ksqo-accent-light: #818cf8;
	--ksqo-accent-glow: rgba(99, 102, 241, 0.45);
	--ksqo-bg: #0f172a;
	--ksqo-bg-card: rgba(255, 255, 255, 0.04);
	--ksqo-bg-chip: rgba(255, 255, 255, 0.06);
	--ksqo-bg-chip-hover: rgba(255, 255, 255, 0.1);
	--ksqo-text: #f1f5f9;
	--ksqo-text-muted: #94a3b8;
	--ksqo-border: rgba(255, 255, 255, 0.12);
	--ksqo-radius: 20px;
	--ksqo-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

	direction: rtl;
	text-align: right;
	color: var(--ksqo-text);
	font-family: inherit;
	max-width: 760px;
	margin: 0 auto;
}

/* ---------- Resume-after-login banner ---------- */
.ksqo-resume-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	border-radius: 14px;
	padding: 14px 18px;
	margin-bottom: 14px;
	font-weight: 700;
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
	animation: ksqoSlideIn 0.3s ease;
}
.ksqo-resume-spinner {
	width: 18px; height: 18px; flex-shrink: 0;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ksqoSpin 0.7s linear infinite;
}
@keyframes ksqoSpin { to { transform: rotate(360deg); } }

/* ---------- Success modal (over the blurred form) ---------- */
.ksqo-form-wrap { position: relative; }
.ksqo-has-modal .ksqo-form { filter: blur(4px); transition: filter 0.2s ease; pointer-events: none; user-select: none; }
.ksqo-success-overlay {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(8, 12, 24, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border-radius: var(--ksqo-radius);
	animation: ksqoFadeIn 0.2s ease;
}
.ksqo-success-card {
	position: relative;
	width: min(360px, 92%);
	background: #fff;
	color: #0f172a;
	border-radius: 20px;
	padding: 30px 26px 26px;
	text-align: center;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
	animation: ksqoBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ksqo-sm-close {
	position: absolute; top: 12px; left: 14px;
	width: 30px; height: 30px; border: none; border-radius: 50%;
	background: #f1f5f9; color: #64748b; font-size: 18px; cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.ksqo-sm-close:hover { background: #fee2e2; color: #dc2626; }
.ksqo-sm-check { margin-bottom: 14px; }
.ksqo-sm-check svg { display: inline-block; }
.ksqo-sm-circle { stroke: #10b981; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ksqoDash 0.5s ease forwards; }
.ksqo-sm-tick { stroke: #10b981; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: ksqoDash 0.4s 0.35s ease forwards; }
@keyframes ksqoDash { to { stroke-dashoffset: 0; } }
.ksqo-sm-title { font-size: 1.15rem; font-weight: 800; color: #047857; margin-bottom: 8px; }
.ksqo-sm-num { color: #475569; font-size: 0.9rem; margin-bottom: 20px; }
.ksqo-sm-num b { color: #0f172a; }
.ksqo-sm-ok {
	background: #10b981; color: #fff; border: none; cursor: pointer;
	padding: 12px 40px; border-radius: 12px; font-weight: 700; font-family: inherit; font-size: 0.95rem;
	transition: background 0.15s ease, transform 0.15s ease;
}
.ksqo-sm-ok:hover { background: #059669; transform: translateY(-1px); }
@keyframes ksqoFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Presets ---------- */
.ksqo-preset-midnight { --ksqo-bg: #0f172a; }
.ksqo-preset-obsidian {
	--ksqo-bg: #000000;
	--ksqo-bg-card: rgba(255, 255, 255, 0.03);
	--ksqo-bg-chip: rgba(255, 255, 255, 0.05);
}
.ksqo-preset-frost {
	--ksqo-bg: rgba(255, 255, 255, 0.85);
	--ksqo-bg-card: rgba(255, 255, 255, 0.55);
	--ksqo-bg-chip: rgba(255, 255, 255, 0.7);
	--ksqo-bg-chip-hover: rgba(255, 255, 255, 0.9);
	--ksqo-text: #0f172a;
	--ksqo-text-muted: #475569;
	--ksqo-border: rgba(15, 23, 42, 0.12);
}
.ksqo-preset-frost .ksqo-form { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ksqo-preset-aurora {
	--ksqo-bg: #0b1026;
	--ksqo-accent: #a855f7;
	--ksqo-accent-light: #c084fc;
	--ksqo-accent-glow: rgba(168, 85, 247, 0.5);
}
.ksqo-preset-aurora .ksqo-form {
	background-image:
		radial-gradient(circle at 20% 10%, rgba(168, 85, 247, 0.25), transparent 45%),
		radial-gradient(circle at 85% 90%, rgba(34, 197, 94, 0.2), transparent 45%);
}

/* ---------- Form shell ---------- */
.ksqo-form {
	background: var(--ksqo-bg);
	border: 1px solid var(--ksqo-border);
	border-radius: var(--ksqo-radius);
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ksqo-step-title {
	font-size: 1.1rem;
	margin: 0 0 14px;
	color: var(--ksqo-text);
}

.ksqo-step { margin-bottom: 26px; }
.ksqo-mode-step .ksqo-step { display: none; }
.ksqo-mode-step .ksqo-step.active { display: block; }
.ksqo-animated .ksqo-step.active { animation: ksqoSlideIn 0.35s ease; }

/* ---------- Progress bar ---------- */
.ksqo-progress {
	display: flex;
	justify-content: space-between;
	margin-bottom: 28px;
	position: relative;
}
.ksqo-progress::before {
	content: "";
	position: absolute;
	top: 16px;
	right: 16px;
	left: 16px;
	height: 2px;
	background: var(--ksqo-border);
}
.ksqo-progress-step { position: relative; z-index: 1; }
.ksqo-progress-dot {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ksqo-bg-chip);
	border: 2px solid var(--ksqo-border);
	color: var(--ksqo-text-muted);
	font-weight: 700;
	transition: var(--ksqo-transition);
}
.ksqo-progress-step.active .ksqo-progress-dot,
.ksqo-progress-step.done .ksqo-progress-dot {
	background: var(--ksqo-accent);
	border-color: var(--ksqo-accent);
	color: #fff;
	box-shadow: 0 0 0 4px var(--ksqo-accent-glow);
}

/* ---------- Fields & chips ---------- */
.ksqo-field-group { margin-bottom: 20px; }
.ksqo-field-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: var(--ksqo-text);
}
.ksqo-req { color: #ef4444; }

.ksqo-chips,
.ksqo-category-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ksqo-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	border-radius: 14px;
	background: var(--ksqo-bg-chip);
	border: 1px solid var(--ksqo-border);
	color: var(--ksqo-text);
	cursor: pointer;
	user-select: none;
	transition: var(--ksqo-transition);
	line-height: 1.4;
}
.ksqo-chip:hover { border-color: var(--ksqo-accent-light); background: var(--ksqo-bg-chip-hover); }

.ksqo-chip.ksqo-selected {
	background: var(--ksqo-accent-light);
	border-color: var(--ksqo-accent);
	color: #fff;
	box-shadow: 0 0 18px var(--ksqo-accent-glow);
}
.ksqo-animated .ksqo-chip.ksqo-selected { animation: ksqoPop 0.25s ease; }

.ksqo-chip-disabled {
	opacity: 0.28;
	text-decoration: line-through;
	border-style: dashed;
	pointer-events: none;
}

/* Category chips */
.ksqo-category-chip { min-width: 120px; padding: 16px; }
.ksqo-cat-icon { font-size: 1.6rem; }
.ksqo-cat-label { font-weight: 700; }
.ksqo-cat-desc { font-size: 0.78rem; color: var(--ksqo-text-muted); }
.ksqo-category-chip.ksqo-selected .ksqo-cat-desc { color: rgba(255, 255, 255, 0.85); }

/* ---------- Size ---------- */
.ksqo-size-row { display: flex; align-items: center; gap: 14px; }
.ksqo-size-input {
	width: 140px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--ksqo-border);
	background: var(--ksqo-bg-chip);
	color: var(--ksqo-text);
	font-size: 1rem;
}
.ksqo-size-live { font-size: 1.3rem; font-weight: 700; color: var(--ksqo-accent-light); }
.ksqo-hint { color: var(--ksqo-text-muted); font-size: 0.85rem; margin-top: 8px; }

/* ---------- Quantity ---------- */
.ksqo-qty-row { display: flex; align-items: center; gap: 8px; }
.ksqo-qty-btn {
	width: 42px; height: 42px;
	border-radius: 12px;
	border: 1px solid var(--ksqo-border);
	background: var(--ksqo-bg-chip);
	color: var(--ksqo-text);
	font-size: 1.3rem; line-height: 1; cursor: pointer;
	transition: var(--ksqo-transition);
}
.ksqo-qty-btn:hover { border-color: var(--ksqo-accent-light); background: var(--ksqo-bg-chip-hover); }
.ksqo-qty-input {
	width: 90px; text-align: center;
	padding: 12px 8px;
	border-radius: 12px;
	border: 1px solid var(--ksqo-border);
	background: var(--ksqo-bg-chip);
	color: var(--ksqo-text);
	font-size: 1.05rem; font-weight: 700;
}
.ksqo-qty-unit { color: var(--ksqo-text-muted); }

/* Hidden Digits modal trigger holder (clicked programmatically). */
.ksqo-digits-holder { display: none; }

/* ---------- Notes ---------- */
.ksqo-notes {
	width: 100%;
	padding: 14px;
	border-radius: 12px;
	border: 1px solid var(--ksqo-border);
	background: var(--ksqo-bg-chip);
	color: var(--ksqo-text);
	resize: vertical;
	font-family: inherit;
}

/* ---------- Footer / buttons ---------- */
.ksqo-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--ksqo-border);
}
.ksqo-footer-spacer { flex: 0 0 auto; }
.ksqo-footer-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-inline-start: auto; /* push the action group to the end side */
}
.ksqo-btn {
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-family: inherit;
	transition: var(--ksqo-transition);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.ksqo-btn-large { padding: 14px 38px; font-size: 1.05rem; }
.ksqo-btn-small { padding: 9px 16px; font-size: 0.82rem; }

.ksqo-next, .ksqo-submit { background: var(--ksqo-accent); color: #fff; }
.ksqo-next:hover, .ksqo-submit:hover { box-shadow: 0 0 18px var(--ksqo-accent-glow); }
.ksqo-prev { background: var(--ksqo-bg-chip); color: var(--ksqo-text); border: 1px solid var(--ksqo-border); padding: 12px 24px; }
.ksqo-reset { background: transparent; color: var(--ksqo-text-muted); border: 1px solid var(--ksqo-border); }
.ksqo-reset:hover { color: var(--ksqo-text); border-color: var(--ksqo-accent-light); }
.ksqo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Submit loading spinner */
.ksqo-btn-spinner { display: none; width: 16px; height: 16px; }
.ksqo-submit.is-loading .ksqo-btn-spinner {
	display: inline-block;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ksqoSpin 0.7s linear infinite;
}
@keyframes ksqoSpin { to { transform: rotate(360deg); } }

@media ( max-width: 520px ) {
	.ksqo-footer { flex-wrap: wrap; }
	.ksqo-footer-actions { width: 100%; justify-content: space-between; }
	.ksqo-btn-large { flex: 1; }
}

/* ---------- Messages ---------- */
.ksqo-message { margin-top: 16px; }
.ksqo-message.ksqo-error { color: #fca5a5; }
.ksqo-message.ksqo-success {
	color: #86efac;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.35);
	border-radius: 12px;
	padding: 14px 16px;
}
.ksqo-success-title { font-weight: 800; font-size: 1.05rem; }
.ksqo-success-number { color: var(--ksqo-text-muted); }
.ksqo-animated .ksqo-success-icon { animation: ksqoBounceIn 0.5s ease; display: inline-block; font-size: 1.2rem; }

/* ---------- Login lock ---------- */
.ksqo-locked { position: relative; min-height: 280px; }
.ksqo-lock-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: var(--ksqo-radius);
}
.ksqo-lock-card { text-align: center; padding: 30px; }
.ksqo-lock-icon { font-size: 2.4rem; }
.ksqo-lock-text { color: #e2e8f0; margin: 12px 0 20px; }
.ksqo-lock-btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--ksqo-accent);
	color: #fff !important;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
}

/* ---------- Horizontal (wide) layout ----------
 * Desktop order: ① size & quantity (compact, side by side)
 *                ② category + attributes (merged into ONE section)
 *                ③ notes (bottom)
 * Below 992px it falls back to the normal column flow. */
@media (min-width: 992px) {
	.ksqo-layout-horizontal { max-width: 1240px; }
	.ksqo-layout-horizontal .ksqo-form { padding: 34px 38px; }

	/* Visual re-ordering (DOM stays 1,2,3,4). */
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-form { display: flex; flex-direction: column; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] { order: 1; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="1"] { order: 2; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="3"] { order: 3; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="4"] { order: 4; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-footer  { order: 5; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-message { order: 6; }

	/* Steps become tidy cards. */
	.ksqo-layout-horizontal .ksqo-step {
		background: var(--ksqo-bg-card);
		border: 1px solid var(--ksqo-border);
		border-radius: 16px;
		padding: 20px 24px;
		margin-bottom: 18px;
	}
	.ksqo-layout-horizontal .ksqo-step-title {
		font-size: 1rem;
		padding-bottom: 10px;
		margin-bottom: 16px;
		border-bottom: 1px solid var(--ksqo-border);
	}

	/* ① Size & quantity: a compact 2-column bar — no dead space. */
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 32px;
		align-items: start;
	}
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] .ksqo-step-title { grid-column: 1 / -1; }
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] .ksqo-field-group {
		margin-bottom: 0;
		position: relative;
		/* Center each control inside its own column. */
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] .ksqo-size-row,
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] .ksqo-qty-row {
		justify-content: center;
	}
	/* Subtle divider between size and quantity. */
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="2"] .ksqo-qty-group::before {
		content: "";
		position: absolute;
		top: 4px;
		bottom: 4px;
		right: -16px;
		width: 1px;
		background: var(--ksqo-border);
	}
	.ksqo-layout-horizontal .ksqo-size-input { width: 160px; }
	.ksqo-layout-horizontal .ksqo-hint { margin-top: 6px; }

	/* ② Category + attributes: two cards visually MERGED into one section. */
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="1"] {
		margin-bottom: 0;
		border-bottom: none;
		border-radius: 16px 16px 0 0;
		padding-bottom: 18px;
	}
	.ksqo-layout-horizontal.ksqo-mode-single .ksqo-step[data-step="3"] {
		margin-top: 0;
		border-top: 1px dashed var(--ksqo-border);
		border-radius: 0 0 16px 16px;
	}

	/* Category chips: equal-width responsive grid. */
	.ksqo-layout-horizontal .ksqo-category-group {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 10px;
	}
	.ksqo-layout-horizontal .ksqo-category-chip { min-width: 0; }

	/* Attribute fields: two columns, each in its own soft box. */
	.ksqo-layout-horizontal .ksqo-fields {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px 20px;
	}
	.ksqo-layout-horizontal .ksqo-fields .ksqo-field-group {
		margin-bottom: 0;
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid var(--ksqo-border);
		border-radius: 12px;
		padding: 14px 16px;
	}
	.ksqo-preset-frost.ksqo-layout-horizontal .ksqo-fields .ksqo-field-group { background: rgba(255, 255, 255, 0.4); }

	/* ③ Notes: full-width at the very bottom. */
	.ksqo-layout-horizontal .ksqo-notes { min-height: 120px; }
}

/* ---------- My orders (modern, minimal) ---------- */
.ksqo-myorders {
	direction: rtl;
	display: grid;
	gap: 18px;
	--mo-ink: #0f172a;
	--mo-muted: #64748b;
	--mo-line: #eef2f7;
	--mo-soft: #f8fafc;
}
.ksqo-order-card {
	position: relative;
	border: 1px solid var(--mo-line);
	border-radius: 18px;
	padding: 22px;
	background: #fff;
	color: var(--mo-ink);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

/* Cancelled card: dim content + big rubber-stamp overlay */
.ksqo-order-cancelled { background: #fcfcfd; }
.ksqo-order-cancelled > *:not(.ksqo-cancel-stamp) { opacity: 0.45; filter: grayscale(0.5); }
.ksqo-cancel-stamp {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 3;
}
.ksqo-cancel-stamp span {
	transform: rotate(-15deg);
	border: 4px solid #dc2626;
	color: #dc2626;
	font-size: 2rem;
	font-weight: 900;
	letter-spacing: 6px;
	padding: 8px 28px;
	border-radius: 12px;
	opacity: 0.82;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) inset;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Header */
.ksqo-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ksqo-order-head-main { display: flex; flex-direction: column; gap: 3px; }
.ksqo-order-number { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.2px; }
.ksqo-order-date { color: var(--mo-muted); font-size: 0.8rem; }
.ksqo-status-badge {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	background: var(--badge, #888);
}
.ksqo-status-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); }

/* Specs — bold, readable size & quantity */
.ksqo-order-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 14px;
}
.ksqo-spec {
	flex: 1 1 0;
	min-width: 96px;
	background: var(--mo-soft);
	border: 1px solid var(--mo-line);
	border-radius: 14px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ksqo-spec-label { color: var(--mo-muted); font-size: 0.74rem; }
.ksqo-spec-value { font-size: 1.05rem; font-weight: 700; color: var(--mo-ink); }
.ksqo-spec-value small { font-size: 0.72rem; color: var(--mo-muted); font-weight: 600; }
.ksqo-spec-strong .ksqo-spec-value, .ksqo-spec-strong { font-weight: 800; }
.ksqo-spec-strong { font-size: 1.25rem; }

/* Attribute chips */
.ksqo-order-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.ksqo-chip-static {
	background: var(--mo-soft); color: #334155; border: 1px solid var(--mo-line);
	padding: 5px 12px; border-radius: 999px; font-size: 0.78rem;
}
.ksqo-order-notes {
	color: #475569; font-size: 0.88rem; line-height: 1.7;
	background: var(--mo-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px;
}

/* Progress flow */
.ksqo-flow { display: flex; justify-content: space-between; margin: 18px 0 4px; position: relative; }
.ksqo-flow::before {
	content: ""; position: absolute; top: 8px; right: 8px; left: 8px;
	height: 2px; background: var(--mo-line);
}
.ksqo-flow-step { display: flex; flex-direction: column; align-items: center; gap: 7px; z-index: 1; }
.ksqo-flow-dot { width: 18px; height: 18px; border-radius: 50%; background: #e2e8f0; border: 2px solid #fff; }
.ksqo-flow-step.done .ksqo-flow-dot { background: #10b981; }
.ksqo-flow-step.current .ksqo-flow-dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22); }
.ksqo-flow-label { font-size: 0.72rem; color: var(--mo-muted); }
.ksqo-flow-step.done .ksqo-flow-label, .ksqo-flow-step.current .ksqo-flow-label { color: #047857; font-weight: 600; }

.ksqo-cancel-msg {
	margin-top: 8px; color: #b91c1c; font-weight: 700;
	background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 11px 14px;
}
.ksqo-registered-msg {
	margin-top: 8px; color: #047857; font-weight: 700;
	background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 11px 14px;
}

/* Footer: clear, readable action buttons */
.ksqo-order-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--mo-line);
}
.ksqo-btn-track, .ksqo-btn-pf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 12px;
	text-decoration: none !important;
	font-weight: 700;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ksqo-btn-track {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff !important;
	padding: 12px 22px;
	font-size: 0.95rem;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.ksqo-btn-track:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(37, 99, 235, 0.42); color: #fff !important; }
.ksqo-btn-track svg, .ksqo-btn-pf svg { flex-shrink: 0; }
.ksqo-btn-pf {
	background: #fff;
	color: #1d4ed8 !important;
	border: 1.5px solid #bfdbfe;
	padding: 11px 18px;
	font-size: 0.9rem;
}
.ksqo-btn-pf:hover { background: #eff6ff; border-color: #2563eb; }
.ksqo-cancel-order {
	margin-right: auto; /* far side in RTL */
	background: transparent; color: #dc2626; border: 1px solid #fde2e2;
	padding: 10px 16px; border-radius: 12px; cursor: pointer;
	font-weight: 600; font-family: inherit; font-size: 0.85rem;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ksqo-cancel-order:hover { background: #fef2f2; border-color: #fca5a5; }
.ksqo-cancel-order:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 560px) {
	.ksqo-order-footer { flex-direction: column; align-items: stretch; }
	.ksqo-btn-track, .ksqo-btn-pf { justify-content: center; }
	.ksqo-cancel-order { margin-right: 0; }
	.ksqo-spec { min-width: calc(50% - 5px); }
}
.ksqo-myorders-guest { text-align: center; padding: 30px; }
.ksqo-empty {
	text-align: center; color: var(--mo-muted);
	background: #fff; border: 1px dashed #e2e8f0; border-radius: 16px; padding: 40px 20px;
}

/* ---------- Animations ---------- */
@keyframes ksqoSlideIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes ksqoPop {
	0% { transform: scale(0.92); }
	60% { transform: scale(1.05); }
	100% { transform: scale(1); }
}
@keyframes ksqoBounceIn {
	0% { transform: scale(0); }
	60% { transform: scale(1.2); }
	100% { transform: scale(1); }
}
