/* Fooppers Quick PDP — Event Calculator */

/* ---------- hard reset ----------
   Themes commonly style bare <button>/<input> elements broadly (uppercase
   text, accent backgrounds, colored focus borders), sometimes with
   !important. Everything below is scoped to #fqpec (an ID, so it already
   outranks almost any theme class selector) and every specific component
   rule further down uses "#fqpec .classname" — one more class than this
   reset's "#fqpec button" — so component styling always wins over the
   reset, and the reset always wins over the theme. */

#fqpec button,
#fqpec input,
#fqpec output {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex;
	align-items: center;
	font-family: inherit !important;
	font-size: inherit;
	line-height: normal;
	color: inherit;
	text-align: left;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	letter-spacing: normal !important;
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	cursor: default;
}

#fqpec button {
	cursor: pointer !important;
	justify-content: center;
}

#fqpec * {
	box-sizing: border-box;
}

#fqpec,
#fqpec button,
#fqpec input {
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

#fqpec button:active {
	transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
	#fqpec,
	#fqpec button,
	#fqpec input,
	#fqpec button:active {
		transition: none !important;
		transform: none !important;
	}
}

/* ---------- trigger (lives outside #fqpec, under the buy box) ---------- */

.fqp-pdp .fqpec-trigger {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: calc(100% - 32px);
	margin: 0 16px 14px;
	padding: 12px 14px;
	border: 1px dashed var(--fqp-accent, #c0392b) !important;
	border-radius: var(--fqp-radius, 16px) !important;
	background: #fff !important;
	color: var(--fqp-ink, #17161a) !important;
	font-weight: 500;
	text-transform: none !important;
}

.fqp-pdp .fqpec-trigger:hover {
	background: #fffaf9 !important;
}

.fqpec-trigger-icon {
	display: flex;
	flex: 0 0 20px;
	color: var(--fqp-accent, #c0392b);
}

.fqpec-trigger-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.fqpec-trigger-text {
	flex: 1;
	font-weight: 600 !important;
}

.fqpec-trigger-arrow {
	color: var(--fqp-muted, #7b7570);
	font-size: 18px;
	line-height: 1;
}

/* ---------- sheet ---------- */

#fqpec[hidden] {
	display: none !important;
}

#fqpec .fqpec-panel {
	max-height: 88vh;
	background: #fff !important;
}

#fqpec .fqpec-panel:focus {
	outline: none !important;
}

#fqpec .fqpec-field {
	margin-bottom: 20px;
}

#fqpec .fqpec-head {
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

#fqpec .fqpec-head .fqp-sheet-title {
	margin: 0;
	flex: 1;
}

#fqpec .fqpec-minimize {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50% !important;
	background: var(--fqp-bg, #f8f6f3) !important;
	color: var(--fqp-ink, #17161a) !important;
}

#fqpec .fqpec-minimize:hover {
	background: var(--fqp-line, #ebe5df) !important;
}

#fqpec .fqpec-minimize svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- minimized pill ----------
   Everything in the panel except .fqpec-mini hides; the panel itself
   shrinks to a small floating summary the customer can tap to reopen. */

#fqpec .fqpec-mini {
	display: none;
}

#fqpec.fqpec--minimized .fqp-sheet-scrim {
	display: none !important;
}

#fqpec.fqpec--minimized .fqpec-panel {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + var(--fqp-bottomnav, 0px));
	top: auto;
	width: auto;
	max-height: none;
	transform: none;
	border-radius: 999px !important;
	padding: 8px 8px 8px 18px !important;
	box-shadow: 0 6px 20px rgba(23, 22, 26, 0.28);
	animation: none;
	cursor: pointer;
}

#fqpec.fqpec--minimized .fqpec-panel > *:not(.fqpec-mini) {
	display: none !important;
}

#fqpec.fqpec--minimized .fqpec-mini {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

#fqpec .fqpec-mini-icon {
	display: flex;
	flex: 0 0 20px;
	color: var(--fqp-accent, #c0392b);
}

#fqpec .fqpec-mini-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

#fqpec .fqpec-mini-text {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fqp-ink, #17161a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#fqpec .fqpec-mini-close {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50% !important;
	background: var(--fqp-bg, #f8f6f3) !important;
	color: var(--fqp-muted, #7b7570) !important;
	font-size: 18px !important;
}

#fqpec .fqpec-mini-close:hover {
	background: var(--fqp-line, #ebe5df) !important;
}

@media (min-width: 720px) {
	#fqpec.fqpec--minimized .fqpec-panel {
		left: auto;
		right: 24px;
		bottom: 24px;
		width: 320px;
	}
}

#fqpec .fqpec-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600 !important;
	color: var(--fqp-muted, #7b7570) !important;
}

#fqpec .fqpec-label output {
	display: inline-flex !important;
	color: var(--fqp-accent, #c0392b) !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
}

/* ---------- guest / quantity steppers ---------- */

#fqpec .fqpec-step {
	display: flex !important;
	align-items: stretch;
	border: 1px solid var(--fqp-line, #ebe5df) !important;
	border-radius: 12px !important;
	background: #fff !important;
	overflow: hidden;
}

#fqpec .fqpec-step:focus-within {
	border-color: var(--fqp-accent, #c0392b) !important;
}

#fqpec .fqpec-step button {
	flex: 0 0 48px;
	width: 48px;
	height: 46px;
	font-size: 20px !important;
	font-weight: 400 !important;
	color: var(--fqp-accent, #c0392b) !important;
}

#fqpec .fqpec-step button:hover {
	background: var(--fqp-bg, #f8f6f3) !important;
}

#fqpec .fqpec-step input {
	flex: 1;
	min-width: 0;
	height: 46px;
	justify-content: center;
	border-left: 1px solid var(--fqp-line, #ebe5df) !important;
	border-right: 1px solid var(--fqp-line, #ebe5df) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* The stepper's own border already shows focus (above); the input itself
   never gets a ring of its own, whatever the theme tries to add on :focus. */
#fqpec .fqpec-step input:focus,
#fqpec .fqpec-step input:active {
	border-left-color: var(--fqp-line, #ebe5df) !important;
	border-right-color: var(--fqp-line, #ebe5df) !important;
	box-shadow: none !important;
	outline: none !important;
}

#fqpec .fqpec-step input::-webkit-outer-spin-button,
#fqpec .fqpec-step input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0;
}

/* ---------- occasion chips ---------- */

#fqpec .fqpec-chips {
	display: flex;
	gap: 8px;
}

#fqpec .fqpec-chips button {
	flex: 1;
	padding: 11px 6px;
	border: 1px solid var(--fqp-line, #ebe5df) !important;
	border-radius: 12px !important;
	background: #fff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--fqp-ink, #17161a) !important;
}

#fqpec .fqpec-chips button:focus-visible {
	outline: 2px solid var(--fqp-accent, #c0392b) !important;
	outline-offset: 2px;
}

#fqpec .fqpec-chips button.is-on {
	border-color: var(--fqp-accent, #c0392b) !important;
	background: var(--fqp-accent, #c0392b) !important;
	color: #fff !important;
	font-weight: 700 !important;
}

/* ---------- veg % slider ---------- */

#fqpec .fqpec-field input[type="range"] {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 999px !important;
	background: var(--fqp-line, #ebe5df) !important;
	accent-color: var(--fqp-accent, #c0392b);
}

#fqpec .fqpec-field input[type="range"]:focus {
	outline: none !important;
	box-shadow: none !important;
}

#fqpec .fqpec-field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	width: 20px;
	height: 20px;
	border-radius: 50% !important;
	background: var(--fqp-accent, #c0392b) !important;
	box-shadow: 0 1px 3px rgba(23, 22, 26, 0.25) !important;
	cursor: pointer;
}

#fqpec .fqpec-field input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50% !important;
	background: var(--fqp-accent, #c0392b) !important;
	box-shadow: 0 1px 3px rgba(23, 22, 26, 0.25) !important;
	cursor: pointer;
}

/* ---------- result ---------- */

#fqpec .fqpec-result {
	display: block;
	margin-bottom: 20px;
	padding: 16px;
	border: 1px solid var(--fqp-line, #ebe5df);
	border-radius: var(--fqp-radius, 16px);
	background: var(--fqp-bg, #f8f6f3);
	text-align: center;
}

#fqpec .fqpec-result-label {
	display: block;
	font-size: 12px;
	color: var(--fqp-muted, #7b7570);
}

#fqpec .fqpec-result-kg {
	display: block;
	margin-top: 3px;
	font-size: 32px;
	line-height: 1.15;
	color: var(--fqp-accent, #c0392b);
	font-variant-numeric: tabular-nums;
}

#fqpec .fqpec-result-note {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-style: normal;
	color: var(--fqp-muted, #7b7570);
}

/* ---------- picks (current product, pack list, cross-sells) ---------- */

#fqpec .fqpec-picks-label {
	margin-bottom: 8px;
}

#fqpec .fqpec-picks {
	margin-bottom: 20px;
}

#fqpec .fqpec-packs-note {
	margin: 0;
	padding: 12px;
	border: 1px dashed var(--fqp-line, #ebe5df);
	border-radius: 12px;
	font-size: 12px;
	color: var(--fqp-muted, #7b7570);
	text-align: center;
}

#fqpec .fqpec-picks--current .fqpec-pick {
	padding: 12px;
	border: 1px solid var(--fqp-line, #ebe5df) !important;
	border-radius: 12px !important;
	background: #fff !important;
}

#fqpec .fqpec-packs .fqpec-pick {
	padding: 10px 4px;
}

#fqpec .fqpec-pick {
	display: flex;
	align-items: center;
	gap: 10px;
}

#fqpec .fqpec-picks:not(.fqpec-picks--current) .fqpec-pick {
	border-bottom: 1px solid var(--fqp-line, #ebe5df);
}

#fqpec .fqpec-picks:not(.fqpec-picks--current) .fqpec-pick:last-child {
	border-bottom: 0;
}

#fqpec .fqpec-pick-img {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--fqp-bg, #f8f6f3);
}

#fqpec .fqpec-pick-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#fqpec .fqpec-pick-text b {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

#fqpec .fqpec-pick-text em {
	font-size: 12px;
	font-style: normal;
	color: var(--fqp-muted, #7b7570);
}

#fqpec .fqpec-step--sm {
	flex: 0 0 100px;
	border-radius: 10px !important;
}

#fqpec .fqpec-step--sm button {
	flex: 0 0 32px;
	width: 32px;
	height: 36px;
	font-size: 16px !important;
}

#fqpec .fqpec-step--sm input {
	height: 36px;
	font-size: 13px !important;
}

/* ---------- footer ---------- */

#fqpec .fqpec-status {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--fqp-accent, #c0392b);
	text-align: center;
}

#fqpec .fqpec-status:empty {
	display: none;
}

#fqpec .fqpec-cta {
	display: flex !important;
	width: 100%;
	margin-top: 14px;
	padding: 15px;
	border-radius: 12px !important;
	background: var(--fqp-accent, #c0392b) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #fff !important;
}

#fqpec .fqpec-cta:hover:not([disabled]) {
	background: #a8321f !important;
}

#fqpec .fqpec-cta[disabled] {
	background: var(--fqp-line, #ebe5df) !important;
	color: var(--fqp-muted, #7b7570) !important;
	cursor: not-allowed !important;
}

#fqpec .fqpec-cta[disabled]:active {
	transform: none;
}

#fqpec .fqp-sheet-close {
	display: flex !important;
	width: 100% !important;
	margin-top: 10px !important;
	padding: 12px !important;
	border: 1px solid var(--fqp-line, #ebe5df) !important;
	border-radius: 12px !important;
	background: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--fqp-ink, #17161a) !important;
}

#fqpec button:focus-visible,
#fqpec input:focus-visible {
	outline: 2px solid var(--fqp-accent, #c0392b) !important;
	outline-offset: 2px;
}

/* ---------- toast link (element lives outside #fqpec, shared with fqp.js) ---------- */

.fqp-toast a {
	margin-left: 6px;
	color: #fff !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

@media (min-width: 720px) {
	#fqpec .fqpec-panel {
		left: 50%;
		right: auto;
		bottom: auto;
		top: 50%;
		width: 440px;
		max-height: 86vh;
		transform: translate(-50%, -50%);
		border-radius: 20px;
		animation: none;
	}
}
