/* ==========================================================================
   Teekha Meetha Kitchen - Meal Planner Page Styles
   Matches screenshot design with full responsive & accessible styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Layout & Sidebar
   -------------------------------------------------------------------------- */
.tmk-meal-planner-page .contact-hero {
    min-height: 240px;
}

.tmk-meal-planner-page .contact-hero__inner {
    padding: 35px 0;
}

.tmk-meal-planner-section {
	padding: 40px 0 25px 0;
	background-color: #faf9f6;
}

.tmk-planner-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Sidebar */
.tmk-planner-sidebar {
	width: 240px;
	flex-shrink: 0;
}

.tmk-planner-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmk-planner-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: #4b5563;
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.tmk-planner-nav-link:hover {
	background: #fff;
	color: var(--orange, #f36b21);
}

.tmk-planner-nav-link.active,
.tmk-planner-nav-item.active .tmk-planner-nav-link {
	background: #ffefe5;
	color: var(--orange, #f36b21);
	font-weight: 600;
}

.tmk-nav-icon {
	width: 20px;
	text-align: center;
	font-size: 14.5px;
	color: inherit;
}

.tmk-sidebar-divider {
	border: 0;
	height: 1px;
	background-color: #e5e7eb;
	margin: 20px 0;
}

/* Preferences Widget */
.tmk-preferences-widget .tmk-widget-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 12px;
}

.tmk-preference-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tmk-preference-item {
	padding: 4px 0;
}

.tmk-pref-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	cursor: pointer;
	user-select: none;
}

.tmk-pref-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #374151;
}

.tmk-pref-icon {
	font-size: 13.5px;
	width: 16px;
	text-align: center;
	color: #6b7280;
}

.tmk-pref-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tmk-pref-custom-box {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 1.5px solid #d1d5db;
	background-color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	flex-shrink: 0;
}

.tmk-pref-custom-box i {
	font-size: 10px;
	color: #fff;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.tmk-pref-input:checked + .tmk-pref-custom-box {
	background-color: var(--orange, #f36b21);
	border-color: var(--orange, #f36b21);
}

.tmk-pref-input:checked + .tmk-pref-custom-box i {
	opacity: 1;
	transform: scale(1);
}

/* Calorie Goal Widget */
.tmk-calorie-widget {
	padding: 4px 0;
}

.tmk-calorie-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.tmk-calorie-badge-icon {
	color: var(--orange, #f36b21);
	font-size: 15px;
}

.tmk-calorie-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #111827;
}

.tmk-calorie-sub {
	font-weight: 400;
	font-size: 11.5px;
	color: #6b7280;
}

.tmk-calorie-val-wrap {
	margin-bottom: 12px;
}

.tmk-calorie-number {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.5px;
}

.tmk-calorie-unit {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
	margin-left: 2px;
}

.tmk-calorie-slider-wrap {
	width: 100%;
}

.tmk-calorie-range {
	width: 100%;
	height: 6px;
	border-radius: 4px;
	accent-color: var(--orange, #f36b21);
	cursor: pointer;
	background: #e5e7eb;
	outline: none;
}

.tmk-calorie-ticks {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 6px;
	font-weight: 500;
}

/* ACF Promo Card */
.tmk-promo-card {
	background-color: #f0fdf4;
	border: 1px solid #d1fae5;
	border-radius: 12px;
	padding: 18px 16px;
	margin-top: 24px;
}

.tmk-promo-title {
	font-size: 14px;
	font-weight: 700;
	color: #064e3b;
	margin-bottom: 6px;
	line-height: 1.35;
}

.tmk-promo-desc {
	font-size: 12px;
	color: #374151;
	line-height: 1.45;
	margin-bottom: 12px;
}

.tmk-promo-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #064e3b;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.tmk-promo-link:hover {
	color: var(--orange, #f36b21);
}

/* --------------------------------------------------------------------------
   Right Main Area: Weekly Planner
   -------------------------------------------------------------------------- */
.tmk-planner-main {
	flex: 1;
	min-width: 0;
}

/* Topbar */
.tmk-planner-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}

.tmk-planner-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmk-title-icon {
	font-size: 18px;
	color: #1f2937;
}

.tmk-planner-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.tmk-planner-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmk-btn-today {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tmk-btn-today:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.tmk-week-arrow-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tmk-week-nav-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #4b5563;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tmk-week-nav-btn:hover {
	background: #f3f4f6;
	color: #111827;
}

.tmk-week-selector-dropdown {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
	user-select: none;
}

.tmk-week-selector-dropdown i {
	font-size: 10px;
	color: #6b7280;
}

/* --------------------------------------------------------------------------
   Weekly Planner Table Matrix
   -------------------------------------------------------------------------- */
.tmk-planner-table-container {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

.tmk-planner-table-scroll {
	width: 100%;
	overflow-x: auto;
}

.tmk-planner-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	min-width: 720px;
}

.tmk-planner-table thead th {
	padding: 12px 6px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	border-right: 1px solid #f7f7f7;
	background: #fafafa;
}

.tmk-planner-table thead th:last-child {
	border-right: none;
}

.tmk-th-meal-col {
	width: 95px;
	background: #fafafa;
}

.tmk-day-name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
}

.tmk-day-date {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: #6b7280;
	margin-top: 2px;
}

/* Active / Today column highlight in orange */
.tmk-th-day.is-today .tmk-day-name,
.tmk-th-day.is-today .tmk-day-date {
	color: var(--orange, #f36b21) !important;
}

/* Meal Rows */
.tmk-meal-row {
	border-bottom: 1px solid #f0f0f0;
}

.tmk-meal-row:last-child {
	border-bottom: none;
}

.tmk-meal-label-cell {
	width: 95px;
	padding: 12px 8px;
	vertical-align: middle;
	text-align: center;
	background: #fafafa;
	border-right: 1px solid #f0f0f0;
}

.tmk-meal-label-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 600;
}

.tmk-meal-label-badge i {
	font-size: 17px;
}

.tmk-badge-breakfast {
	color: #d97706;
}
.tmk-badge-lunch {
	color: #16a34a;
}
.tmk-badge-snacks {
	color: #ea580c;
}
.tmk-badge-dinner {
	color: #1e3a8a;
}

.tmk-meal-cell {
	border-right: 1px solid #f5f5f5;
	padding: 10px 4px;
	vertical-align: top;
	text-align: center;
	height: 114px;
	position: relative;
	transition: background-color 0.15s ease;
}

.tmk-meal-cell:last-child {
	border-right: none;
}

.tmk-meal-cell:hover {
	background-color: #fafaf8;
}

.tmk-meal-slot-inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Planned Meal Item */
.tmk-meal-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 100%;
	position: relative;
	cursor: pointer;
}

.tmk-meal-thumb-wrap {
	position: relative;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	flex-shrink: 0;
}

.tmk-meal-thumb {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
	border: 2px solid #fff;
	display: block;
}

.tmk-meal-remove-btn {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #d1d5db;
	color: #6b7280;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	z-index: 3;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tmk-meal-remove-btn:hover {
	background: #fee2e2;
	border-color: #ef4444;
	color: #ef4444;
}

.tmk-meal-name {
	font-size: 11px;
	font-weight: 500;
	color: #374151;
	line-height: 1.25;
	text-align: center;
	max-height: 28px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	width: 100%;
	word-break: break-word;
	padding: 0 2px;
}

section#tmk-meal-planner-app input.tmk-modal-search-input {
    padding-left: 33px;
    height: 35px;
}

section#tmk-meal-planner-app input.tmk-modal-search-input:focus-visible{
	outline: 0;
    outline-offset: 0;
}

/* Empty Slot */
.tmk-slot-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.tmk-slot-plus {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px dashed #cbd5e1;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: all 0.2s ease;
}

.tmk-slot-empty:hover .tmk-slot-plus {
	border-color: var(--orange, #f36b21);
	color: var(--orange, #f36b21);
	transform: scale(1.08);
}

/* Bottom Action Bar */
.tmk-planner-bottom-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 18px;
}

.tmk-planner-btn-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tmk-btn-add-recipe {
	background: #1e3a1f;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tmk-btn-add-recipe:hover {
	background: #2a522c;
}

.tmk-btn-clear-plan {
	background: #fff;
	color: #4b5563;
	border: 1px solid #d1d5db;
	padding: 9px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tmk-btn-clear-plan:hover {
	background: #f9fafb;
	color: #111827;
	border-color: #9ca3af;
}

.tmk-planner-tip-pill {
	background: #eef8f2;
	border: 1px solid #ccebd7;
	border-radius: 30px;
	padding: 8px 18px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.tmk-tip-leaf {
	color: #2e7d32;
	font-size: 13px;
}

.tmk-tip-text {
	font-size: 12.5px;
	font-weight: 500;
	color: #1e4620;
}

/* --------------------------------------------------------------------------
   Recommended Recipes Slider
   -------------------------------------------------------------------------- */
.tmk-recommended-section {
	margin-top: 42px;
}

.tmk-recommended-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 12px;
}

.tmk-recommended-title-box {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tmk-star-icon {
	color: #f59e0b;
	font-size: 17px;
}

.tmk-recommended-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.tmk-recommended-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tmk-carousel-nav-arrows {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tmk-rec-arrow-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #4b5563;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tmk-rec-arrow-btn:hover {
	background: #f3f4f6;
	color: #111827;
	border-color: #d1d5db;
}

.tmk-view-all-recipes {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.tmk-view-all-recipes:hover {
	color: var(--orange, #f36b21);
}

.tmk-recommended-carousel-wrap {
	position: relative;
	width: 100%;
}

.tmk-recommended-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 2px 14px 2px;
}

.tmk-recommended-carousel::-webkit-scrollbar {
	display: none;
}

.tmk-recommended-carousel .recipe-card {
	flex: 0 0 calc((100% - (16px * 4)) / 5);
	min-width: 175px;
	border: 1px solid #e9e9e9;
	border-radius: 9px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
}

.tmk-recommended-carousel .recipe-image {
	height: 125px;
	position: relative;
	overflow: hidden;
}

.tmk-recommended-carousel .recipe-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tmk-recommended-carousel .recipe-card:hover .recipe-image img {
	transform: scale(1.05);
}

.tmk-recommended-carousel .recipe-info {
	padding: 10px 12px 12px 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tmk-recommended-carousel .recipe-info h3 {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 20px;
}

.tmk-recommended-carousel .recipe-info h3 a {
	color: #111827;
	text-decoration: none;
}

.tmk-recommended-carousel .recipe-info h3 a:hover {
	color: var(--orange, #f36b21);
}

.tmk-rec-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.tmk-quick-add-btn {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #f4f4f5;
	color: #3f3f46;
	border: 1px solid #e4e4e7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.tmk-quick-add-btn:hover {
	background: var(--orange, #f36b21);
	border-color: var(--orange, #f36b21);
	color: #fff;
	transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.tmk-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(3px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tmk-modal-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

.tmk-modal-dialog {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(15px);
	transition: transform 0.2s ease;
}

.tmk-modal-backdrop.is-active .tmk-modal-dialog {
	transform: translateY(0);
}

.tmk-modal-dialog--sm {
	max-width: 440px;
}

.tmk-modal-dialog--md {
	max-width: 540px;
}

.tmk-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.tmk-modal-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmk-modal-title-wrap i {
	color: var(--orange, #f36b21);
	font-size: 16px;
}

.tmk-modal-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.tmk-modal-close {
	background: transparent;
	border: none;
	font-size: 16px;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	transition: color 0.15s ease;
}

.tmk-modal-close:hover {
	color: #111827;
}

.tmk-modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

div#tmk-grocery-modal .tmk-modal-body, #tmk-favorites-modal .tmk-modal-body{
	 max-height: 370px;
	 overflow-y: scroll;
}

.tmk-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

/* Modal Form Controls */
.tmk-modal-slot-selectors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.tmk-form-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 4px;
}

.tmk-form-control {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	color: #111827;
	background-color: #fff;
	outline: none;
}

.tmk-form-control:focus {
	border-color: var(--orange, #f36b21);
}

.tmk-modal-search-bar {
	margin-bottom: 16px;
}

.tmk-search-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.tmk-search-input-wrap i {
	position: absolute;
	left: 12px;
	color: #9ca3af;
	font-size: 13px;
}

.tmk-modal-search-input {
	width: 100%;
	padding: 9px 14px 9px 34px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	outline: none;
}

.tmk-modal-search-input:focus {
	border-color: var(--orange, #f36b21);
}

/* Modal Recipes Grid */
.tmk-modal-recipes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	max-height: 380px;
	overflow-y: auto;
	padding-right: 4px;
}

.tmk-modal-recipe-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tmk-modal-recipe-card:hover {
	border-color: var(--orange, #f36b21);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tmk-modal-recipe-thumb {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.tmk-modal-recipe-info {
	flex: 1;
	min-width: 0;
}

.tmk-modal-recipe-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 3px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tmk-modal-recipe-meta {
	font-size: 11px;
	color: #6b7280;
}

.tmk-modal-select-btn {
	background: #1e3a1f;
	color: #fff;
	border: none;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.tmk-modal-select-btn:hover {
	background: #2a522c;
}

/* Grocery List Modal */
.tmk-grocery-subtitle {
	font-size: 12.5px;
	color: #4b5563;
	margin-bottom: 16px;
	line-height: 1.45;
}

.tmk-grocery-category {
	margin-bottom: 16px;
}

.tmk-grocery-cat-title {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 4px;
	margin-bottom: 8px;
}

.tmk-grocery-items-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tmk-grocery-item-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #374151;
	cursor: pointer;
}

.tmk-grocery-item-label input:checked + span {
	text-decoration: line-through;
	color: #9ca3af;
}

/* Modal Buttons */
.tmk-btn {
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
	text-decoration: none;
}

.tmk-btn-primary {
	background: #1e3a1f;
	color: #fff;
	border-color: #1e3a1f;
}

.tmk-btn-primary:hover {
	background: #2a522c;
	color: #fff;
}

.tmk-btn-outline {
	background: #fff;
	color: #374151;
	border-color: #d1d5db;
}

.tmk-btn-outline:hover {
	background: #f9fafb;
}

.tmk-btn-danger {
	background: #fff;
	color: #dc2626;
	border-color: #fca5a5;
}

.tmk-btn-danger:hover {
	background: #fef2f2;
}

/* Preview Modal Card */
.tmk-preview-card {
	text-align: center;
}

.tmk-preview-img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}

.tmk-preview-meta {
	display: flex;
	justify-content: center;
	gap: 16px;
	font-size: 13px;
	color: #4b5563;
}

/* Spinner */
.tmk-loading-spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 30px;
	color: #6b7280;
	font-size: 13px;
	width: 100%;
}

/* Toast */
.tmk-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #111827;
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.tmk-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive overflow fix */
.tmk-planner-layout,
.tmk-planner-sidebar,
.tmk-planner-main,
.tmk-recommended-section,
.tmk-recommended-carousel-wrap {
	min-width: 0;
	max-width: 100%;
}

.tmk-total-row td,
.tmk-total-row th {
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
	padding: 10px 6px;
}

.tmk-total-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--orange, #f36b21);
}

.tmk-day-total {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
}

.tmk-kcal-bar {
	height: 4px;
	margin: 6px 10px 0;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.tmk-kcal-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #22a06b;
	border-radius: 4px;
	transition: width 0.25s ease;
}

.tmk-day-total.is-over .tmk-day-kcal { color: #dc2626; }
.tmk-day-total.is-over .tmk-kcal-bar span { background: #dc2626; }

.tmk-kcal-badge {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--orange, #f36b21);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.tmk-planner-layout {
		flex-direction: column;
	}

	.tmk-planner-sidebar {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 20px;
		background: #fff;
		padding: 20px;
		border-radius: 12px;
		border: 1px solid #e5e7eb;
	}

	.tmk-sidebar-divider {
		display: none;
	}

	.tmk-promo-card {
		margin-top: 0;
	}

	.tmk-recommended-carousel .recipe-card {
		flex: 0 0 calc((100% - (16px * 2)) / 3);
	}

	.tmk-planner-layout {
		align-items: stretch;
	}

	.tmk-planner-main {
		width: 100%;
		flex: 0 0 auto;
	}

	.tmk-planner-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	.tmk-recommended-carousel .recipe-card {
		flex: 0 0 calc((100% - 16px) / 2);
	}

	.tmk-planner-bottom-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.tmk-planner-tip-pill {
		justify-content: center;
	}

	.tmk-modal-slot-selectors {
		grid-template-columns: 1fr;
	}

	.tmk-planner-table {
		min-width: 640px; 
	}

	.tmk-th-meal-col {
		width: 80px;
	}

	.tmk-recommended-carousel {
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.tmk-recommended-carousel .recipe-card {
		scroll-snap-align: start;
	}
}

@media (max-width: 480px) {
	.tmk-recommended-carousel .recipe-card {
		flex: 0 0 85%;
	}
}