.ywc-wrap {
	--ywc-primary: #b8862c;
	--ywc-primary-dark: #8f6720;
	--ywc-bg: #fffaf2;
	--ywc-border: #e7dcc8;
	--ywc-text: #2b2620;
	--ywc-muted: #74695a;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 28px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ywc-text);
	box-sizing: border-box;
}
.ywc-wrap * { box-sizing: border-box; }
.ywc-wrap { width: 100%; }

.ywc-main-col { min-width: 0; }
.ywc-estimate-panel { min-width: 0; }

@media (max-width: 860px) {
	.ywc-wrap { grid-template-columns: 1fr; }
	.ywc-estimate-panel { position: static !important; order: -1; }
	.ywc-main-col { order: 1; }
}

.ywc-form {
	background: #fff;
	border: 1px solid var(--ywc-border);
	border-radius: 14px;
	padding: 28px;
	width: 100%;
}

.ywc-step h3 { margin-top: 0; font-size: 1.3em; color: var(--ywc-primary-dark); }
.ywc-step h4 { margin: 22px 0 8px; font-size: 1.02em; }
.ywc-hint { color: var(--ywc-muted); font-size: 0.88em; margin: 4px 0 12px; }

.ywc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (max-width: 560px) { .ywc-grid { grid-template-columns: 1fr; } }

.ywc-grid label, .ywc-form > label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--ywc-text);
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select {
	padding: 10px 12px;
	border: 1px solid var(--ywc-border);
	border-radius: 8px;
	font-size: 0.95em;
	font-weight: 400;
	background: var(--ywc-bg);
	color: var(--ywc-text);
}
input[type="range"] { accent-color: var(--ywc-primary); }

.ywc-live-val { color: var(--ywc-primary); font-weight: 700; }

.ywc-toggle-group { display: flex; gap: 20px; margin-bottom: 18px; }
.ywc-toggle-group label { font-weight: 600; display: flex; align-items: center; gap: 6px; }

.ywc-chip-group, .ywc-package-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.ywc-chip {
	border: 1px solid var(--ywc-border);
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 0.88em;
	background: var(--ywc-bg);
	user-select: none;
	text-align: center;
}
.ywc-chip.selected { background: var(--ywc-primary); border-color: var(--ywc-primary); color: #fff; }

.ywc-card {
	border: 1px solid var(--ywc-border);
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	background: var(--ywc-bg);
	transition: box-shadow .15s, border-color .15s;
}
.ywc-card:hover { box-shadow: 0 2px 10px rgba(184,134,44,0.15); }
.ywc-card.selected { border-color: var(--ywc-primary); box-shadow: 0 0 0 2px var(--ywc-primary) inset; }
.ywc-card h5 { margin: 0 0 6px; font-size: 1em; }
.ywc-card p { margin: 0; font-size: 0.82em; color: var(--ywc-muted); }
.ywc-card .ywc-tag { display: inline-block; font-size: 0.72em; padding: 2px 8px; border-radius: 999px; background: #eee0c4; color: var(--ywc-primary-dark); margin-top: 6px; }

.ywc-dish-category { margin-bottom: 18px; }
.ywc-dish-category h5 { margin: 0 0 8px; text-transform: capitalize; color: var(--ywc-primary-dark); }
.ywc-dish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ywc-dish-item {
	display: flex; align-items: center; gap: 8px;
	border: 1px solid var(--ywc-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 0.88em;
}
.ywc-dish-item.selected { border-color: var(--ywc-primary); background: #fff6e6; }

.ywc-nav-buttons { display: flex; justify-content: space-between; margin-top: 26px; gap: 10px; }
.ywc-btn {
	border: none; border-radius: 999px; padding: 12px 26px; font-weight: 700; cursor: pointer; font-size: 0.95em;
}
.ywc-btn-primary { background: var(--ywc-primary); color: #fff; margin-left: auto; }
.ywc-btn-primary:hover { background: var(--ywc-primary-dark); }
.ywc-btn-secondary { background: #f1ece0; color: var(--ywc-text); }
.ywc-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ywc-steps-nav { display: flex; gap: 6px; margin-bottom: 18px; }
.ywc-steps-nav .ywc-dot {
	flex: 1; height: 6px; border-radius: 4px; background: var(--ywc-border);
}
.ywc-steps-nav .ywc-dot.active { background: var(--ywc-primary); }
.ywc-steps-nav .ywc-dot.done { background: #d8c290; }

.ywc-estimate-panel {
	position: sticky; top: 20px; align-self: start;
	background: linear-gradient(160deg, #1f1a12, #362a14);
	color: #f6ecd8;
	border-radius: 14px;
	padding: 24px;
	height: fit-content;
}
.ywc-estimate-heading { font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.ywc-estimate-total { font-size: 2.1em; font-weight: 800; color: #f0cf7c; margin: 8px 0 2px; }
.ywc-estimate-perplate { font-size: 0.85em; opacity: 0.85; margin-bottom: 16px; }
.ywc-estimate-groups { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; }
.ywc-estimate-groups .ywc-eg-row { display: flex; justify-content: space-between; font-size: 0.85em; opacity: 0.9; }
.ywc-estimate-disclaimer { font-size: 0.72em; opacity: 0.6; margin-top: 16px; margin-bottom: 0; }

.ywc-modal {
	position: fixed; inset: 0; background: rgba(20,16,8,0.6); z-index: 9999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ywc-modal-inner {
	background: #fff; border-radius: 14px; padding: 30px; max-width: 480px; width: 100%;
	position: relative; max-height: 88vh; overflow-y: auto;
}
.ywc-modal-close { position: absolute; top: 14px; right: 18px; border: none; background: none; font-size: 1.6em; cursor: pointer; color: var(--ywc-muted); }
.ywc-result-total { font-size: 2em; font-weight: 800; color: var(--ywc-primary-dark); margin: 10px 0; }
.ywc-result-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ywc-result-actions a, .ywc-result-actions button {
	flex: 1; text-align: center; padding: 12px; border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; border: none; font-size: 0.9em;
}
.ywc-wa-btn { background: #25D366; color: #fff; }
.ywc-print-btn { background: #f1ece0; color: var(--ywc-text); }

@media print {
	body * { visibility: hidden; }
	#ywc-result-content, #ywc-result-content * { visibility: visible; }
	#ywc-result-content { position: absolute; left: 0; top: 0; width: 100%; }
	.ywc-result-actions { display: none; }
}
