.gs-rfp-add-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65em;
}

.gs-rfp-btn-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.gs-rfp-btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.gs-rfp-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.gs-rfp-screen-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.is-icon-only {
	position: relative;
}

/* Dual-state icons: show idle or active based on button class. */
.has-dual-icons .gs-rfp-btn-icon--active {
	display: none;
}

.has-dual-icons.is-in-cart .gs-rfp-btn-icon--idle,
.has-dual-icons.is-saved .gs-rfp-btn-icon--idle {
	display: none;
}

.has-dual-icons.is-in-cart .gs-rfp-btn-icon--active,
.has-dual-icons.is-saved .gs-rfp-btn-icon--active {
	display: inline-flex;
}

/* Single shared icon rendered as both idle + active: hide the duplicate. */
.has-icon:not(.has-dual-icons) .gs-rfp-btn-icon--active {
	display: none;
}

.gs-rfp-add-button {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.5em 1em;
	border: 1px solid currentColor;
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.gs-rfp-add-button.is-in-cart {
	font-weight: 600;
}

.gs-rfp-add-button.is-inactive,
.gs-rfp-add-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.gs-rfp-view-cart {
	font: inherit;
}

.gs-rfp-cart {
	max-width: 48rem;
}

.gs-rfp-cart__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1.25rem;
}

.gs-rfp-cart__views {
	display: inline-flex;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.gs-rfp-cart__view-btn {
	border: 0;
	background: #f6f7f7;
	padding: 0.4em 0.8em;
	cursor: pointer;
	font: inherit;
}

.gs-rfp-cart__view-btn.is-active {
	background: #1d2327;
	color: #fff;
}

.gs-rfp-cart__print,
.gs-rfp-cart__clear,
.gs-rfp-cart__remove {
	font: inherit;
	cursor: pointer;
}

.gs-rfp-cart__recipe {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e0e0e0;
}

.gs-rfp-cart__recipe-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.gs-rfp-cart__recipe-title {
	margin: 0;
	font-size: 1.25rem;
}

.gs-rfp-cart__recipe-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.gs-rfp-cart__servings input {
	width: 4.5rem;
	margin-left: 0.35rem;
}

.gs-rfp-cart__group {
	margin: 0.75rem 0 0.35rem;
	font-size: 1rem;
}

.gs-rfp-cart__items,
.gs-rfp-cart__combined {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gs-rfp-cart__line {
	margin: 0.35rem 0;
}

.gs-rfp-cart__line label {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.35rem;
	align-items: baseline;
	cursor: pointer;
}

.gs-rfp-cart__line label:has(input[type="checkbox"]:checked) {
	text-decoration: line-through;
	opacity: 0.65;
}

.gs-rfp-cart__note {
	opacity: 0.75;
	font-size: 0.9em;
}

.gs-rfp-cart__empty,
.gs-rfp-cart__loading,
.gs-rfp-cart__error {
	margin: 1rem 0;
}

.gs-rfp-cart-count {
	text-decoration: none;
}

.opd-save-button {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid currentColor;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.opd-save-button.is-saved {
	font-weight: 700;
}

.opd-save-button.is-inactive,
.opd-save-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.opd-recipe-box {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.25rem;
}

.opd-recipe-box__image img {
	width: 100%;
	height: auto;
	display: block;
}

.opd-recipe-box__title {
	margin: 0.5rem 0 0;
	font-size: 1rem;
}
