/* Highlight macro text yellow when Go Large is selected */
.gfd-meal-nutrition.gfd-go-large-active span {
	background: none;
	color: #e6c200;
	font-weight: 700;
	transition: color 0.18s;
}
/* --- GFD Meal Tabs --- */
.gfd-meal-tabs {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 18px;
	margin-top: 8px;
}
.gfd-meal-tab-btn {
	background: #f7faf7;
	color: #395a4f;
	border: 2px solid #bfc8b7;
	border-radius: 16px 16px 0 0;
	font-size: 1rem;
	font-weight: 700;
	padding: 10px 20px 8px 20px;
	cursor: pointer;
	transition: background 0.18s, color 0.18s, border 0.18s;
	outline: none;
	box-shadow: 0 1px 4px rgba(127,201,127,0.06);
	margin-bottom: -2px;
}
.gfd-meal-tab-btn.active, .gfd-meal-tab-btn:active {
	background: yellow;
	color: #222;
	border-bottom: 2px solid #e6c200;
	z-index: 2;
	font-weight: 800;
}
.gfd-meal-tab-btn:hover {
	background: #e6f5e6;
	color: #395a4f;
}
@media (max-width: 700px) {
	.gfd-meal-tabs {
		gap: 4px;
	}
	.gfd-meal-tab-btn {
		font-size: 0.8rem;
		padding: 8px 8px 7px 8px;
	}
}
/* --- GFD Meal Badges Overlay --- */
.gfd-meal-badges-wrap {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: flex-start;
}
.gfd-meal-badge {
	display: inline-block;
	padding: 5px 14px 4px 14px;
	font-size: 0.92rem;
	font-weight: 700;
	border-radius: 16px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.10);
	letter-spacing: 0.01em;
	margin-bottom: 0;
	margin-right: 0;
	line-height: 1.1;
	border: 2px solid #fff;
	background: #fff;
	color: #222;
	text-shadow: none;
	user-select: none;
}
.gfd-badge-chef {
	background: #e6f5e6;
	color: #1a2a1a;
	border-color: #7fc97f;
}
.gfd-badge-best {
	background: #fffbe6;
	color: #b38f00;
	border-color: #e6c200;
}
@media (max-width: 600px) {
	.gfd-meal-badges-wrap {
		top: 7px;
		left: 7px;
		gap: 5px;
	}
	.gfd-meal-badge {
		font-size: 0.82rem;
		padding: 4px 10px 3px 10px;
	}
}
/* Go Large checkbox styling */
.gfd-go-large-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 8px 0 0 0;
}
.gfd-go-large-label {
	background: #fffbe6;
	color: #222;
	border: 1.5px solid #e6c200;
	border-radius: 8px;
	padding: 6px 14px;
	font-weight: 600;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(255, 230, 0, 0.08);
	margin-bottom: 4px;
}
.gfd-go-large-checkbox {
	accent-color: #e6c200;
	width: 20px;
	height: 20px;
	margin-right: 6px;
}
.gfd-review-meal-large {
	background: #fffbe6;
	color: #b38f00;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 700;
	padding: 2px 8px;
	margin-left: 8px;
	border: 1px solid #e6c200;
}
/* Highlight No Allergies option */
label.gfd-no-allergies-label {
    background: yellow!important;
}
/* Allergies list grid layout */
.gfd-allergies-list {
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px 18px;
	margin: 12px 0 0 0;
}
.gfd-allergies-list.show {
	display: grid;
}
/* Right-side summary sidebar for selected meals (step 4) */
.gfd-meals-summary-sidebar {
	position: fixed;
	top: 32px;
	right: 32px;
	width: 340px;
	min-height: 120px;
	max-height: 80vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.13);
	border: 1.5px solid #bfc8b7;
	padding: 22px 20px 18px 20px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	font-size: 1.08rem;
	color: #222;
}
.gfd-meals-summary-title {
	font-size: 1.13rem;
	font-weight: 700;
	color: #222;
	letter-spacing: 0.01em;
}
.gfd-meals-summary-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gfd-meals-summary-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f7faf7;
	border-radius: 10px;
	font-weight: 600;
	color: #222;
}
.gfd-meals-summary-name {
	flex: 1 1 0;
	margin-right: 10px;
	font-weight: 500;
	font-size: 1.01rem;
	color: #222;
}
.gfd-meals-summary-qty-controls {
	display: flex;
	align-items: center;
}
.gfd-meals-summary-qty-btn {
	background: #395a4f;
	color: #1a2a1a;
	border: none;
	font-size: 1.13rem;
	font-weight: 700;
	width: 32px;
	height: 32px;
	transition: background 0.18s, color 0.18s;
	display: flex;
	align-items: center;
}
.gfd-meals-summary-qty-btn:hover {
	background: #395a4f;
	color: #fff;
}
.gfd-meals-summary-qty {
	font-size: 1.08rem;
	font-weight: 700;
	min-width: 22px;
	display: inline-block;
}
@media (max-width: 1100px) {
	.gfd-meals-summary-sidebar {
		position: static;
		max-width: 100%;
		margin-bottom: 18px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	}
}
/* Fixed bottom bar for selected meals (step 4) */
.gfd-sticky-selected-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
	z-index: 10010;
  background: #f7faf7;
  border-top: 2px solid #bfc8b7;
  border-radius: 0;
  box-shadow: 0 -2px 16px rgba(127,201,127,0.10);
  padding: 16px 32px 16px 32px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}
.gfd-sticky-bar-header {
  font-weight: 600;
  margin-bottom: 8px;
  margin-right: 0;
  padding-left: 2px;
  color: #2d3a2e;
  font-size: 1.5rem;
  padding-bottom: 15px;
  text-transform: uppercase;
}
.gfd-sticky-bar-meals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.gfd-sticky-meal {
  background: #395a4f;
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  word-break: break-word;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .gfd-sticky-bar-meals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gfd-sticky-bar-meals-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .gfd-sticky-selected-bar {
    padding: 12px 8px;
    font-size: 0.98rem;
    gap: 10px;
  }
  .gfd-sticky-bar-next-btn {
    padding: 8px 18px;
    font-size: 0.98rem;
  }
  .gfd-sticky-bar-meals-grid {
    grid-template-columns: 1fr;
  }
}
.gfd-step[data-step="4"] .gfd-sticky-selected-bar {
  display: flex !important;
}
/* Delivery date table layout */
.gfd-delivery-table-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}
.gfd-delivery-table {
	border-collapse: separate;
	border-spacing: 32px 0;
	background: none;
}
.gfd-delivery-col {
	vertical-align: top;
	text-align: center;
	min-width: 240px;
}
.gfd-delivery-col-title {
	font-size: 1.08rem;
	font-weight: 700;
	margin-bottom: 18px;
	color: #2d3a2e;
	letter-spacing: 0.01em;
}
/* Delivery date dropdown selects for mobile */
.gfd-delivery-selects {
	display: none; /* Hidden by default, shown on mobile */
	flex-direction: column;
	gap: 18px;
	margin: 24px auto;
	max-width: 500px;
}
.gfd-delivery-select-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.gfd-delivery-select-label {
	font-size: 1.08rem;
	font-weight: 700;
	color: #2d3a2e;
	text-align: center;
}
.gfd-delivery-select {
	width: 100%;
	padding: 14px 16px;
	font-size: 1rem;
	font-weight: 600;
	color: #2d3a2e;
	background: #f7faf7;
	border: 1.5px solid #bfc8b7;
	border-radius: 14px;
	cursor: pointer;
	transition: border 0.18s, background 0.18s;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23395a4f' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}
@media (max-width: 600px) {
	.gfd-delivery-select {
		padding: 12px 14px;
		font-size: 0.95rem;
	}
	.gfd-delivery-select-label {
		font-size: 1rem;
	}
}
.gfd-delivery-select:focus {
	outline: none;
	border-color: #395a4f;
	background: #fff;
}
.gfd-delivery-select option {
	padding: 8px;
}
/* Greyed out meal card when max meals selected */
.gfd-meal-card.gfd-meal-disabled {
	opacity: 0.45;
	pointer-events: none;
	filter: grayscale(0.7);
}
/* Step Progress Bar */
.gfd-step-bar {
	width: 100%;
	margin: 0 0 24px 0;
	padding: 0 0 12px 0;
	background: none;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.gfd-step-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 900px;
	min-width: min-content;
	margin: 0 auto;
	position: relative;
	padding: 0 8px;
}
.gfd-step-bar-step {
	flex: 1 1 0;
	text-align: center;
	font-size: 1.01rem;
	font-weight: 600;
	color: #bfc8b7;
	background: #f7faf7;
	border-radius: 16px;
	padding: 8px 4px;
	margin: 0 4px;
	position: relative;
	z-index: 1;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	min-width: 80px;
}
.gfd-step-bar-step.active {
	background: #395a4f;
	color: #fff;
	font-weight: 800;
	box-shadow: 0 2px 8px rgba(127,201,127,0.10);
	text-decoration: underline;
}
.gfd-step-bar-step.completed {
	background: #395a4f;
	color: #fff;
}
.gfd-step-bar-step:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -4px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	background: #bfc8b7;
	border-radius: 50%;
	z-index: 2;
	display: none;
}
.gfd-step-bar-step.completed:not(:last-child)::after {
	background: #7fc97f;
}

/* Step Navigation Buttons */
.gfd-step-nav {
	margin: 16px 0 0 0;
	text-align: center;
	border-bottom: 1px solid #d8d8d8;
    padding-bottom: 10px;
}
.gfd-step-nav button {
	min-width: 90px;
	margin-left: 8px;
}

#gfd-ordering-form {
	max-width: 1200px;
	margin: 32px auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
	padding: 24px 20px 18px 20px;
	font-family: 'Segoe UI', Arial, sans-serif;
	/* Keep overall form from changing height dramatically between steps */
	min-height: 520px;
}

/* On small screens allow natural height so content isn't clipped */
@media screen and (max-width: 900px) {
  #gfd-ordering-form {
    min-height: auto;
    margin: 16px 8px;
    padding: 16px 12px;
    border-radius: 12px;
  }
}

.gfd-step {
	margin-bottom: 0;
	padding: 0;
}
.gfd-step h3 {
	margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: bold;
    color: #2d3a2e;
    text-align: center;
    text-transform: uppercase;
}
.gfd-step p {
    margin: 0 0 16px 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3a2e;
}
.gfd-step button {
	margin: 0 8px 10px 0;
	padding: 8px 18px;
	border-radius: 6px;
	border: 1px solid #bfc8b7;
	background: #e6f5e6;
    color: #395a4f;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
    font-weight: bold;
}
.gfd-delivery-dates {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin: 24px 0 32px 0;
}
.gfd-delivery-date {
	background: #f7faf7;
	border: 1.5px solid #bfc8b7;
	border-radius: 14px;
	color: #2d3a2e;
	font-size: 1.08rem;
	font-weight: 500;
	padding: 12px 0;
	min-width: 260px;
	max-width: 260px;
	text-align: center;
	cursor: pointer;
	transition: background 0.18s, border 0.18s, color 0.18s;
	box-shadow: 0 2px 8px rgba(127,201,127,0.06);
	display: inline-block;
}
.gfd-delivery-date.selected, .gfd-delivery-date:active {
	background: #395a4f;
	border-color: #7fc97f;
	color: #1a2a1a;
}
.gfd-delivery-date:hover {
	background: #e6f5e6;
	border-color: #395a4f;
	background: #f7faf7;
	color: #2d3a2e;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s, border 0.2s;
}
.gfd-step button.selected, .gfd-step button:active {
	background: yellow;
	border-color: #395a4f;
	color: #000;
}
.gfd-step button:hover {
	background: #395a4f;
	color: #fff;
	border-color: #395a4f;
}
/* Card grid for meals */
.gfd-meals-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 10px;
	justify-content: center;
	margin-top: 24px;
}
.gfd-meal-card {
	background: #395a4f;
	color: #fff;
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
	width: 340px;
	min-height: 385px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	margin-bottom: 0;
	padding: 0 0 0 0;
	overflow: hidden;
}
.gfd-meal-card .gfd-meal-img {
	width: 100%;
	height: 170px!important;
	object-fit: cover;
	border-radius: 18px 18px 0 0;
}
.gfd-meal-card .gfd-meal-title {
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 0 0;
	text-align: center;
	text-transform: uppercase;
	padding: 18px 12px 0 12px;
	letter-spacing: 0.01em;
	line-height: 1.2;
}
.gfd-meal-card .gfd-meal-desc {
	font-size: 1.01rem;
	color: #e0e0e0;
	text-align: center;
	margin-bottom: 8px;
	padding: 0 12px;
	font-weight: 400;
}
.gfd-meal-card .gfd-meal-nutrition {
	display: flex;
	justify-content: center;
	gap: 14px;
	font-size: 0.7rem;
	margin-bottom: 0;
	font-weight: 600;
	padding: 0 12px 0 12px;
}
.gfd-meal-nutrition span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
	line-height: 1.1;
}
.gfd-meal-card .gfd-meal-qty-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	min-height: 70px;
	background: #395a4f;
	border-radius: 0 0 18px 18px;
	position: absolute;
	left: 0; right: 0; bottom: 0;
	width: 100%;
}
.gfd-meal-card .gfd-meal-add-btn {
	background: #111;
	color: #fff;
	border: 2px solid #395a4f;
	border-radius: 18px;
	font-size: 1.13rem;
	font-weight: 700;
	width: 90%;
	margin: 0 auto;
	padding: 10px 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border 0.2s;
	box-shadow: 0 1px 4px rgba(0,0,0,0.10);
	display: block;
}
.gfd-meal-card .gfd-meal-add-btn:hover {
	background: #1ed760;
	color: #111;
	border-color: #1ed760;
}
.gfd-meal-card .gfd-meal-qty-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	background: #395a4f;
	border-radius: 0 0 18px 18px;
	padding: 0;
}
.gfd-meal-card .gfd-meal-qty-minus, .gfd-meal-card .gfd-meal-qty-plus {
	background: #1ed760;
	color: #111;
	border: none;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	min-width: 38px;
	max-width: 38px;
	flex-shrink: 0;
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}
.gfd-meal-card .gfd-meal-qty-minus:hover, .gfd-meal-card .gfd-meal-qty-plus:hover {
	background: #13b94d;
	color: #fff;
}
.gfd-meal-card .gfd-meal-qty-display {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	min-width: 38px;
	text-align: center;
	display: inline-block;
	margin-bottom: 15px;
}
.gfd-meal-card .gfd-meal-info {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #fff;
	color: #222;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,0.10);
	z-index: 2;
}
.gfd-meal-card .gfd-meal-info:hover {
	background: #e0e0e0;
}
.gfd-meal-card .gfd-meal-add {
	margin: 10px auto 0 auto;
	display: block;
	background: #fff;
	color: #222;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	font-size: 1.05rem;
	padding: 7px 0;
	width: 90%;
	cursor: pointer;
	transition: background 0.2s;
}
.gfd-meal-card .gfd-meal-add:hover {
	background: #395a4f;
}
/* Modal styles */
.gfd-modal-bg {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.55);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gfd-modal {
	background: #fff;
	color: #222;
	border-radius: 16px;
	max-width: 540px;
	width: 95vw;
	position: relative;
	box-shadow: 0 4px 32px rgba(0,0,0,0.18);
	max-height: 90vh;
	overflow-y: auto;
}

.gfd-modal img {
	border-radius: 0!important;
}

.gfd-modal .gfd-modal-close {
	position: absolute;
	top: 12px;
	right: 18px;
	font-size: 1.5rem;
	color: #888;
	cursor: pointer;
	font-weight: bold;
}
.gfd-modal .gfd-modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: uppercase;
	padding: 0px 20px;
}
.gfd-modal .gfd-modal-section {
	margin-bottom: 10px;
}
.gfd-modal .gfd-modal-label {
	font-weight: 600;
	margin-right: 6px;
}
.gfd-allergies-list input[type=checkbox],
.gfd-meals-list input[type=checkbox] {
	margin-right: 5px;
}
.gfd-delivery-dates {
	margin-bottom: 10px;
}
.gfd-delivery-dates button {
	margin-bottom: 8px;
	width: 100%;
    max-width: 250px;
}
.gfd-review {
  background: #f7faf7;
  border-radius: 14px;
  padding: 28px 24px 22px 24px;
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 18px;
  border: 1.5px solid #395a4f;
  box-shadow: 0 2px 12px rgba(127,201,127,0.07);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gfd-review-title {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  color: #222;
}
.gfd-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.gfd-review-label {
  color: #222;
  font-weight: 700;
}
.gfd-review-value {
  color: #222;
  font-weight: 600;
}
.gfd-review-progress {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 6px;
  margin: 10px 0 6px 0;
  overflow: hidden;
}
.gfd-review-progress-bar {
  height: 100%;
  background: #7fc97f;
  border-radius: 6px;
  transition: width 0.3s;
}
.gfd-review-ready {
  color: #1a2a1a;
  font-size: 1.01rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 2px;
}
.gfd-review-meal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .gfd-review-meal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gfd-review-meal-list {
    grid-template-columns: 1fr;
  }
}
.gfd-review-meal-item {
  background: #d6f5d6;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.01rem;
  font-weight: 600;
  color: #222;
  box-shadow: 0 1px 4px rgba(127,201,127,0.06);
}
.gfd-review-meal-name {
  flex: 1 1 0;
  margin-right: 10px;
  font-weight: 500;
  color: #222;
}
.gfd-review-meal-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gfd-review-meal-qty {
  background: #222;
  color: #fff;
  border-radius: 6px;
  font-size: 1.08rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  padding: 2px 10px;
  margin: 0 2px;
  display: inline-block;
}
.gfd-review-section {
  margin-bottom: 8px;
}
.gfd-review-date {
  font-size: 1.08rem;
  font-weight: 700;
  color: #2d3a2e;
  margin-top: 8px;
}
@media (max-width: 500px) {
  .gfd-review {
    padding: 12px 2px 10px 2px;
    font-size: 0.97rem;
    max-width: 100vw;
  }
  .gfd-review-title {
    font-size: 1.08rem;
  }
  .gfd-review-meal-item {
    font-size: 0.97rem;
    padding: 7px 6px;
  }
}

/* Always show sticky bar on desktop */
@media (min-width: 1101px) {
  .gfd-step[data-step="4"] .gfd-sticky-selected-bar {
    display: flex !important;
  }
}
/* Remove right margin for sidebar */
@media (min-width: 1101px) {
  .gfd-step[data-step="4"] .gfd-meals-list {
    margin-right: 0;
  }
}

/* Step 1: Meal Count Grid Pricing Style */
.gfd-meal-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 18px;
  margin: 24px auto 24px auto;
  max-width: 600px;
  justify-items: center;
}
@media (max-width: 500px) {
  .gfd-meal-count-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
  }
}
.gfd-meal-count-card,
.gfd-meal-count-card button {
	border-radius: 10px !important;
}
.gfd-meal-count-card {
  background: #395a4f;
  color: #fff;
  border: 2px solid #395a4f;
  border-radius: 16px;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  transition: border 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  outline: none;
}
.gfd-meal-count-card.selected, .gfd-meal-count-card:active {
  border: 2.5px solid #7fc97f;
  color: #7fc97f;
  box-shadow: 0 2px 16px rgba(127,201,127,0.18);
}
.gfd-meal-count-price {
  font-size: 1.13rem;
  font-weight: 600;
  margin-top: 2px;
  color: #fff;
  opacity: 0.85;
}
.gfd-meal-count-popular {
  position: absolute;
  top: -15px;
  right: -2px;
  background: yellow;
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px 6px 6px 6px;
  padding: 4px 10px 2px 10px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(127, 201, 127, 0.18);
  line-height: 10px;
  text-align: center;
}
@media (max-width: 600px) {
  .gfd-meal-count-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .gfd-meal-count-card {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
  }
  .gfd-meal-count-popular {
    font-size: 0.75rem;
    padding: 3px 7px 1px 7px;
  }
}

/* Allergies grid and custom checkbox styling */
.gfd-allergies-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px 24px;
  margin: 18px 0 32px 0;
}
.gfd-allergies-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 500;
  color: #222;
  background: #f7faf7;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1.5px solid #395a4f;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(127,201,127,0.06);
}
.gfd-allergies-list input[type=checkbox] {
  accent-color: #7fc97f;
  width: 20px;
  height: 20px;
  margin: 0 4px 0 0;
  border-radius: 5px;
  border: 1.5px solid #395a4f;
  transition: border 0.18s;
}
.gfd-allergies-list input[type=checkbox]:focus {
  outline: 2px solid #7fc97f;
}
.gfd-allergies-list label:hover, .gfd-allergies-list input[type=checkbox]:hover + span {
  border-color: #7fc97f;
}
@media (max-width: 1100px) {
  .gfd-allergies-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .gfd-allergies-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Protein selection grid with icons */
.gfd-protein-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 32px 0;
  justify-items: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.gfd-protein {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #fff;
	color: #222;
	border: 1.5px solid #395a4f;
	border-radius: 10px !important;
	padding: 10px 22px 10px 22px;
	font-size: 1.08rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	min-height: 70px;
	box-shadow: 0 1px 4px rgba(127,201,127,0.06);
	transition: border 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
	outline: none;
}
.gfd-protein.selected, .gfd-protein:active {
  background: #395a4f;
  color: #fff;
  border-color: #7fc97f;
  box-shadow: 0 2px 12px rgba(127,201,127,0.13);
}
.gfd-protein-icon {
  font-size: 1.7em;
  margin-bottom: 2px;
  display: block;
  line-height: 1;
}
.gfd-protein-label {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .gfd-protein-grid {
    gap: 10px;
    margin: 12px 0 24px 0;
    grid-template-columns: repeat(3, 1fr);
  }
  .gfd-protein {
    padding: 12px 16px 10px 16px;
    width: 100%;
    min-height: 70px;
    font-size: 1rem;
  }
  .gfd-protein-icon {
    font-size: 1.5em;
  }
  .gfd-protein-label {
    font-size: 0.95rem;
  }
}
@media (max-width: 500px) {
  .gfd-protein-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
  .gfd-protein {
    padding: 10px 12px 8px 12px;
    width: 100%;
    min-height: 60px;
    font-size: 0.9rem;
  }
}

/* Mobile-first improvements for usability */
@media screen and (max-width: 900px) {
	/* Hide step bar completely on mobile */
	.gfd-step-bar {
		display: none !important;
	}
	/* Optimize heading sizes for mobile */
	.gfd-step h3 {
		font-size: 1.5rem;
		margin-bottom: 16px;
		padding: 0 8px;
	}
	.gfd-step p {
		font-size: 0.9rem;
		padding: 0 12px;
		margin-bottom: 16px;
	}
	.row .col img {
		margin-bottom: 0;
		max-width: 100%;
		height: auto;
	}
	/* Tabs: single line with all buttons visible (no horizontal scroll) */
	.gfd-meal-tabs {
		flex-wrap: nowrap; /* stay on one line */
		gap: 3px; /* tighter gap to fit */
		overflow: visible; /* remove scroll */
		padding: 4px 0; 
		width: 100%;
		box-sizing: border-box;
	}
	.gfd-meal-tab-btn {
		flex: 1 1 0; /* equal widths */
		min-width: 0; /* allow shrink */
		padding: 7px 2px 6px 2px !important; /* reduced padding to fit longer labels */
		font-size: 0.65rem !important; /* smaller text ensures fit */
		white-space: nowrap; /* keep text on one line within button */
		text-align: center;
		gap: 0px !important;
		border-radius: 12px 12px 0 0;
	}
	/* Meals list becomes 2-column grid for easy browsing on mobile */
	.gfd-meals-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		align-items: stretch;
	}
	.gfd-meal-card {
		width: 100% !important;
		min-height: auto;
		display: flex;
		flex-direction: column;
	}
	.gfd-meal-card .gfd-meal-img {
		height: auto !important;
		border-radius: 12px 12px 0 0;
		flex-shrink: 0;
	}
	img.gfd-meal-img {
		margin-bottom: 0px !important;
	}
	.gfd-meal-card .gfd-meal-title {
		font-size: 0.8rem;
		padding: 8px 6px 4px 6px;
		line-height: 1.2;
		flex-shrink: 0;
	}
	.gfd-meal-card .gfd-meal-desc {
		font-size: 0.75rem;
		padding: 0 6px 4px 6px;
		line-height: 1.3;
		flex-shrink: 0;
	}
	.gfd-meal-card .gfd-meal-nutrition {
		font-size: 0.65rem;
		gap: 6px;
		padding: 0 6px 4px 6px;
		flex-shrink: 0;
	}
	.gfd-go-large-row {
		flex-shrink: 0;
	}
	.gfd-meal-qty-row {
		position: static !important;
		border-radius: 10px;
		padding: 6px;
		min-height: 30px !important;
		margin-top: auto;
	}
	.gfd-meal-add-btn {
		font-size: 0.85rem;
		padding: 6px 0;
	}
	.gfd-meal-qty-controls {
		gap: 6px;
	}
	.gfd-meal-card .gfd-meal-qty-minus, .gfd-meal-card .gfd-meal-qty-plus {
		width: 26px;
		height: 26px;
		min-width: 26px;
		max-width: 26px;
		flex-shrink: 0;
		font-size: 0.95rem;
	}
	.gfd-step button {
    	margin: 0 0 10px 0;
	}
	.gfd-meal-card .gfd-meal-qty-display {
		font-size: 1.1rem;
		min-width: 20px;
		margin-bottom: 0;
	}
	.gfd-go-large-label {
		width: 100%;
		justify-content: center;
		font-size: 0.75rem;
		padding: 5px 8px;
	}
	/* Step 5: Hide table layout on mobile, show dropdowns instead */
	.gfd-delivery-table-wrap {
		display: none !important;
	}
	.gfd-delivery-selects {
		display: flex !important;
	}
	/* Delivery dates optimized for mobile */
	.gfd-delivery-date {
		font-size: 0.95rem;
		padding: 10px;
		min-width: auto;
		max-width: none;
		flex: 1 1 calc(50% - 9px);
	}
	/* Review section font sizes */
	.gfd-review {
		font-size: 0.95rem;
		padding: 16px 12px;
		margin-bottom: 12px;
	}
	.gfd-review-title {
		font-size: 1.25rem;
		margin-bottom: 12px;
	}
	.gfd-review-row {
		font-size: 0.95rem;
	}
	.gfd-review-meal-item {
		font-size: 0.85rem;
		padding: 8px 10px;
	}
	/* Step navigation buttons */
	.gfd-step button {
		font-size: 1rem;
		padding: 12px 24px;
		min-width: 100px;
	}
	.gfd-step-nav {
		display: flex;
		justify-content: center;
		gap: 12px;
		flex-wrap: wrap;
	}
	/* Make modal full width on mobile */
	.gfd-modal { 
		max-width: 96vw; 
		width: 96vw; 
		margin: 0 2vw;
	}
	.gfd-modal .gfd-modal-title {
		font-size: 1.1rem;
	}
	.gfd-modal-macros-table th,
	.gfd-modal-macros-table td {
		font-size: 0.75rem;
		padding: 6px 10px 6px 0;
	}
	.gfd-modal-ingredients {
		font-size: 0.75rem;
	}
}

@media (max-width: 600px) {
	/* Larger touch targets and optimized text sizes */
	.gfd-meal-count-card { 
		width: 90px; 
		height: 100px; 
		font-size: 1.5rem; 
	}
	.gfd-meal-count-price {
		font-size: 0.95rem;
	}
	.gfd-protein { 
		min-width: 84px; 
		min-height: 64px;
		font-size: 0.9rem;
	}
	.gfd-protein-label {
		font-size: 0.9rem;
	}
	.gfd-meal-card { 
		border-radius: 10px; 
	}
	.gfd-meal-card .gfd-meal-img {
		height: auto !important;
	}
	.gfd-meal-card .gfd-meal-title { 
		font-size: 0.65rem; 
		padding: 6px 4px 3px 4px; 
	}
	.gfd-meal-card .gfd-meal-desc { 
		font-size: 0.7rem;
		padding: 0 4px 3px 4px; 
	}
	.gfd-meal-card .gfd-meal-nutrition { 
		gap: 4px; 
		font-size: 0.55rem;
        text-align: center;
        padding: 0 4px 3px 4px; 
	}
	.gfd-meal-badges-wrap { 
		top: 4px; 
		left: 4px;
		gap: 3px; 
	}
	.gfd-meal-card .gfd-meal-info {
    	top: 4px;
    	right: 4px;
    	width: 20px;
    	height: 20px;
    	font-size: 0.75rem;
	}
	.gfd-meal-card .gfd-meal-add-btn {
    	font-size: 0.7rem;
    	padding: 5px 0;
	}
	.gfd-meal-badge { 
		font-size: 0.55rem; 
		padding: 2px 6px;
		line-height: 1.2; 
	}
	.gfd-go-large-label {
		font-size: 0.65rem;
		padding: 4px 6px;
		gap: 3px;
	}
	.gfd-go-large-checkbox {
		width: 14px;
		height: 14px;
	}
	.gfd-go-large-row {
       	margin: 4px 4px 0 4px;
	}
	.gfd-meal-qty-row {
		padding: 4px;
		min-height: 30px !important;
	}
	.gfd-meal-card .gfd-meal-qty-minus, .gfd-meal-card .gfd-meal-qty-plus {
		width: 30px;
		height: 30px;
		min-width: 30px;
		max-width: 30px;
		flex-shrink: 0;
		font-size: 1rem;
	}
	.gfd-meal-card .gfd-meal-qty-display {
		font-size: 0.95rem;
		margin-bottom: 13px;
	}
	/* Sticky bottom bar adjustments */
	.gfd-sticky-selected-bar { 
		padding: 12px; 
	}
	.gfd-sticky-bar-header {
		font-size: 1.2rem;
	}
	.gfd-sticky-meal {
		font-size: 0.85rem;
		padding: 6px 10px;
	}
	/* Step headings */
	.gfd-step h3 {
		font-size: 1.25rem;
	}
	/* Buttons */
	.gfd-step button {
		font-size: 0.9rem;
		padding: 8px 14px;
	}
	/* Delivery dates */
	.gfd-delivery-date {
		font-size: 0.9rem;
		padding: 8px;
	}
}

/* Accessibility: ensure focus states are visible on mobile */
.gfd-meal-card:focus-within, .gfd-meal-card:focus { outline: 3px solid rgba(127,201,127,0.25); }

/* Improve layout of allergies grid on small screens */
@media (max-width: 900px) {
	.gfd-allergies-list { 
		grid-template-columns: repeat(2, 1fr); 
		gap: 10px;
		margin: 12px 0 24px 0;
	}
	.gfd-allergies-list label { 
		padding: 8px 10px;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .gfd-allergies-list input[type=checkbox] {
    	width: 18px;
    	height: 18px;
    }
}
@media (max-width: 500px) {
	.gfd-allergies-list { 
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

/* Ensure review and sticky bars don't block content on small screens */
@media (max-width: 420px) {
	.gfd-sticky-selected-bar { padding-bottom: 18px; }
	.gfd-review { padding: 12px; }
}

/* Mobile-friendly sticky bar: keep meal chips on one line with horizontal scroll */
@media (max-width: 700px) {
	.gfd-sticky-bar-header {
		font-size: 1rem;
		margin-bottom: 6px;
		padding-bottom: 6px;
	}
	.gfd-sticky-bar-meals-grid {
		display: flex !important; /* override grid */
		flex-wrap: nowrap;        /* single line */
		overflow-x: auto;         /* scroll horizontally when many items */
		overflow-y: hidden;
		gap: 8px;
		width: 100%;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;    /* Firefox */
	}
	.gfd-sticky-bar-meals-grid::-webkit-scrollbar { height: 6px; }
	.gfd-sticky-bar-meals-grid::-webkit-scrollbar-thumb { background: #bfc8b7; border-radius: 3px; }
	.gfd-sticky-meal {
		flex: 0 0 auto;           /* don't shrink, keep as chip */
		max-width: none;          /* allow full name width */
		white-space: nowrap;      /* keep each chip on one line */
		overflow: visible;        /* don't cut text */
		text-overflow: clip;      /* show full text */
		font-size: 0.6rem;        /* smaller text on mobile as requested */
		padding: 4px 8px;         /* tighter chip padding for mobile */
	}
	
	/* Modal scrolling behavior for mobile only */
	.gfd-modal-bg {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.gfd-modal {
		-webkit-overflow-scrolling: touch;
		padding: 20px;
	}
}

/* Modal macros table and ingredients styling with border and accordion */
.gfd-modal-accordion {
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(127,201,127,0.06);
}
.gfd-modal-accordion-header {
  background: #e6f5e6;
  color: #1a2a1a;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1.5px solid #bfc8b7;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gfd-modal-accordion-header:last-child {
  border-bottom: none;
}
.gfd-modal-accordion-arrow {
  font-size: 1.2em;
  margin-left: 8px;
  transition: transform 0.2s;
}
.gfd-modal-accordion-content {
  padding: 0px 20px;
  display: none;
}
.gfd-modal-accordion-content.active {
  display: block;
}
.gfd-modal-macros-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  background: #fff;
  border: 1.5px solid #395a4f;
  border-radius: 8px;
  overflow: hidden;
}
.gfd-modal-macros-table th,
.gfd-modal-macros-table td {
  text-align: left;
  padding: 7px 14px 7px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #e0e0e0;
}
.gfd-modal-macros-table th {
  font-weight: 700;
  color: #1a2a1a;
  padding-right: 18px;
}
.gfd-modal-macros-table tr:last-child th,
.gfd-modal-macros-table tr:last-child td {
  border-bottom: none;
}
.gfd-modal-ingredients {
  background: #fff;
  font-size: 0.65rem;
  color: #222;
  margin-bottom: 0;
  line-height: 1.4;
  word-break: break-word;
}
