/* ── Container + reset ──
   Selectors are repeated (.hibachi-estimate.hibachi-estimate or [class]) to bump
   specificity above typical theme rules without relying on !important. Resets
   neutralize button/input/ul/li styles inherited from Elementor / Avada / etc. */

.hibachi-estimate {
	max-width: 960px;
	margin: 0 auto;
	color: #1f1f1f;
	font-family: inherit;
	box-sizing: border-box;
}
.hibachi-estimate *,
.hibachi-estimate *::before,
.hibachi-estimate *::after {
	box-sizing: border-box;
}
.hibachi-estimate ul,
.hibachi-estimate li {
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
}
.hibachi-estimate li::before,
.hibachi-estimate li::marker {
	content: none;
	display: none;
}
.hibachi-estimate button[class] {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	min-height: 0;
	min-width: 0;
	line-height: 1;
}
.hibachi-estimate input[type="number"][class] {
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: none;
	box-shadow: none;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	min-height: 0;
	line-height: 1;
}

/* ── Layout ── */

.hibachi-estimate .hibachi-estimate__form {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}
.hibachi-estimate .hibachi-estimate__left {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.hibachi-estimate .hibachi-estimate__group {
	margin: 0;
	padding: 0 20px 18px;
	border: 1px solid #e0d3b8;
	border-radius: 12px;
	background: #fffaf2;
}
.hibachi-estimate .hibachi-estimate__legend {
	padding: 14px 0 10px;
	color: #b71c1c;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	margin: 0;
}
.hibachi-estimate .hibachi-estimate__items {
	display: flex;
	flex-direction: column;
}
.hibachi-estimate .hibachi-estimate__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px dashed #e8dcc4;
}
.hibachi-estimate .hibachi-estimate__item:last-child {
	border-bottom: 0;
}
.hibachi-estimate .hibachi-estimate__item-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 0;
	min-width: 0;
}
.hibachi-estimate .hibachi-estimate__item-label {
	font-weight: 600;
	line-height: 1.2;
	color: #1f1f1f;
}
.hibachi-estimate .hibachi-estimate__item-price {
	font-size: 0.9rem;
	color: #6b6b6b;
}

/* ── +/- group ──
   Border lives on the input only (top + bottom). Buttons sit flush against
   the input with zero gap — no white seam between the red and the border. */

.hibachi-estimate .hibachi-estimate__qty {
	display: inline-flex;
	align-items: stretch;
	background: transparent;
	flex: 0 0 auto;
	border-radius: 999px;
	overflow: hidden;
}
.hibachi-estimate .hibachi-estimate__btn[class] {
	width: 32px;
	height: 38px;
	background: var(--hibachi-btn-color, #e53935);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	border-radius: 0;
}
.hibachi-estimate .hibachi-estimate__btn[class]:hover,
.hibachi-estimate .hibachi-estimate__btn[class]:focus,
.hibachi-estimate .hibachi-estimate__btn[class]:active {
	background: var(--hibachi-btn-hover-color, #9e9e9e);
	color: #fff;
	outline: none;
	box-shadow: none;
}
.hibachi-estimate .hibachi-estimate__qty-input[class] {
	width: 52px;
	height: 38px;
	background: #fff;
	border: 0;
	border-top: 1px solid #d6c5a3;
	border-bottom: 1px solid #d6c5a3;
	border-radius: 0;
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	color: #1f1f1f;
	padding: 0;
}
.hibachi-estimate .hibachi-estimate__qty-input[class]::-webkit-outer-spin-button,
.hibachi-estimate .hibachi-estimate__qty-input[class]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.hibachi-estimate .hibachi-estimate__qty-input[class]:focus {
	outline: none;
	box-shadow: none;
}

/* ── Summary column ── */

.hibachi-estimate .hibachi-estimate__summary {
	flex: 0 0 35%;
	min-width: 0;
	position: sticky;
	top: 24px;
	padding: 0 20px 16px;
	border: 1px solid #e0d3b8;
	border-radius: 12px;
	background: #fff5e8;
}
.hibachi-estimate .hibachi-estimate__summary-title {
	margin: 0 0 12px;
	padding: 14px 0 0;
	color: #b71c1c;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.hibachi-estimate .hibachi-estimate__breakdown {
	margin: 0 0 10px;
	font-size: 0.95rem;
}
.hibachi-estimate .hibachi-estimate__breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	color: #444;
}
.hibachi-estimate .hibachi-estimate__breakdown li span:last-child {
	font-variant-numeric: tabular-nums;
}
.hibachi-estimate .hibachi-estimate__total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 12px;
	border-top: 2px solid #b71c1c;
	font-size: 1.25rem;
	font-weight: 700;
}
.hibachi-estimate .hibachi-estimate__total-value {
	color: #b71c1c;
	font-variant-numeric: tabular-nums;
}
.hibachi-estimate .hibachi-estimate__note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: #757575;
}
.hibachi-estimate .hibachi-estimate__booking-btn[class] {
	display: block;
	width: fit-content;
	margin: 50px auto 0;
	padding: 10px 28px;
	background: var(--hibachi-btn-color, #e53935);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 6px;
	transition: filter .15s;
	border: 0;
	box-shadow: none;
}
.hibachi-estimate .hibachi-estimate__booking-btn[class]:hover,
.hibachi-estimate .hibachi-estimate__booking-btn[class]:focus {
	filter: brightness(0.88);
	color: #fff;
	text-decoration: none;
}

/* ── Tablet (large) — keep two columns but give summary a bit more room ── */
@media (max-width: 1024px) {
	.hibachi-estimate .hibachi-estimate__summary {
		flex-basis: 38%;
	}
}

/* ── Tablet (small) / Mobile — single column, larger touch targets.
   Aligns with the 768.98px breakpoint used by most WP themes (Woodmart,
   Avada, Astra) so the form switches to mobile layout when the parent
   container does. ── */
@media (max-width: 768px) {
	.hibachi-estimate .hibachi-estimate__form {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.hibachi-estimate .hibachi-estimate__left {
		width: 100%;
	}
	.hibachi-estimate .hibachi-estimate__summary {
		flex: none;
		width: 100%;
		position: static;
	}
	/* Keep item-info and qty on the same row. Item-info has min-width:0 so long
	   labels wrap onto a second line inside item-info instead of forcing qty
	   onto its own row. (Label and price remain stacked vertically — the
	   inherited flex-direction:column from the desktop rule.) */
	.hibachi-estimate .hibachi-estimate__item {
		flex-wrap: nowrap;
		gap: 12px;
	}
	.hibachi-estimate .hibachi-estimate__qty {
		flex: 0 0 auto;
	}
	.hibachi-estimate .hibachi-estimate__btn[class] {
		width: 36px;
		height: 44px;
	}
	.hibachi-estimate .hibachi-estimate__qty-input[class] {
		width: 60px;
		height: 44px;
		font-size: 1.05rem;
	}
}

/* ── Very narrow (small phones, iPhone SE 1, Galaxy S5) ── */
@media (max-width: 400px) {
	.hibachi-estimate .hibachi-estimate__group,
	.hibachi-estimate .hibachi-estimate__summary {
		padding-left: 12px;
		padding-right: 12px;
	}
	.hibachi-estimate .hibachi-estimate__item-label {
		font-size: 0.95rem;
	}
	.hibachi-estimate .hibachi-estimate__item-price {
		font-size: 0.85rem;
	}
}
