/**
 * A7la7ayat Weekly Meals (طبخات الأسبوع) - Stylesheet
 * Scoped styles with custom CSS variables matching A7la7ayat branding (#ED217C, #8CC63F)
 * Modern RTL layout, refined cards, micro-animations, and dual printing modes.
 *
 * @package A7la7ayat_Weekly_Meals
 */

.a7wm-app {
	--a7wm-primary: #ED217C;
	--a7wm-primary-hover: #D81B60;
	--a7wm-primary-light: #FFF0F6;
	--a7wm-primary-gradient: linear-gradient(135deg, #ED217C 0%, #D81B60 100%);

	--a7wm-green: #8CC63F;
	--a7wm-green-hover: #7AB42F;
	--a7wm-green-light: #F4FBEA;
	--a7wm-green-gradient: linear-gradient(135deg, #8CC63F 0%, #78B031 100%);

	--a7wm-bg: #FFFFFF;
	--a7wm-surface: #FAFAFA;
	--a7wm-surface-hover: #F1F5F9;
	--a7wm-text: #1E293B;
	--a7wm-text-secondary: #475569;
	--a7wm-muted: #94A3B8;
	--a7wm-border: #E2E8F0;
	--a7wm-border-focus: #ED217C;

	--a7wm-radius: 18px;
	--a7wm-radius-sm: 10px;
	--a7wm-radius-pill: 9999px;

	--a7wm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--a7wm-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
	--a7wm-shadow-hover: 0 16px 36px -4px rgba(237, 33, 124, 0.14), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
	--a7wm-shadow-selected: 0 16px 36px -4px rgba(140, 198, 63, 0.22), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
	--a7wm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Arabic", "Cairo", sans-serif;

	font-family: var(--a7wm-font);
	color: var(--a7wm-text);
	max-width: 1060px;
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	line-height: 1.6;
}

.a7wm-app *, 
.a7wm-app *::before, 
.a7wm-app *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Header & Branding
   ========================================================================== */
.a7wm-header {
	text-align: center;
	margin-bottom: 35px;
}

.a7wm-brand-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--a7wm-primary-light);
	color: var(--a7wm-primary);
	font-size: 0.88rem;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: var(--a7wm-radius-pill);
	margin-bottom: 12px;
	border: 1px solid rgba(237, 33, 124, 0.18);
}

.a7wm-brand-dot {
	width: 8px;
	height: 8px;
	background: var(--a7wm-primary);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.25);
	animation: a7wm-pulse 2s infinite;
}

@keyframes a7wm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(237, 33, 124, 0.4); }
	70% { box-shadow: 0 0 0 6px rgba(237, 33, 124, 0); }
	100% { box-shadow: 0 0 0 0 rgba(237, 33, 124, 0); }
}

.a7wm-title {
	color: var(--a7wm-primary);
	background: var(--a7wm-primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 900;
	margin: 0 0 10px 0;
	line-height: 1.25;
	letter-spacing: -0.5px;
}

.a7wm-subtitle {
	color: var(--a7wm-text-secondary);
	font-size: 1.08rem;
	max-width: 680px;
	margin: 0 auto;
	line-height: 1.7;
}

/* ==========================================================================
   Cards & Section Structure
   ========================================================================== */
.a7wm-card {
	background: var(--a7wm-bg);
	border: 1px solid var(--a7wm-border);
	border-radius: var(--a7wm-radius);
	padding: 28px;
	margin-bottom: 30px;
	box-shadow: var(--a7wm-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.a7wm-card-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 22px;
}

.a7wm-icon-bubble {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #FFF0F6 0%, #FCE7F3 100%);
	color: var(--a7wm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	border: 1px solid rgba(237, 33, 124, 0.15);
}

.a7wm-section-header-bar {
	margin-bottom: 22px;
}

.a7wm-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--a7wm-border);
}

.a7wm-section-title {
	color: var(--a7wm-text);
	font-size: 1.35rem;
	font-weight: 800;
	margin: 0 0 4px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.a7wm-section-desc {
	color: var(--a7wm-text-secondary);
	font-size: 0.92rem;
	margin: 0;
}

.a7wm-badge {
	background: var(--a7wm-primary-light);
	color: var(--a7wm-primary);
	font-size: 0.88rem;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: var(--a7wm-radius-pill);
	border: 1px solid rgba(237, 33, 124, 0.2);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.a7wm-field-group {
	margin-bottom: 20px;
}

.a7wm-label {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--a7wm-text);
}

.a7wm-required-mark {
	color: var(--a7wm-primary);
	margin-right: 4px;
}

.a7wm-textarea {
	width: 100%;
	padding: 16px;
	border: 2px solid var(--a7wm-border);
	border-radius: 14px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--a7wm-text);
	background: #F8FAFC;
	resize: vertical;
	min-height: 90px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.a7wm-textarea:focus {
	outline: none;
	background: #FFFFFF;
	border-color: var(--a7wm-primary);
	box-shadow: 0 0 0 4px rgba(237, 33, 124, 0.12);
}

.a7wm-help-text {
	font-size: 0.84rem;
	color: var(--a7wm-muted);
	margin: 6px 0 0 0;
}

.a7wm-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.a7wm-col {
	flex: 1 1 220px;
}

.a7wm-select-wrapper {
	position: relative;
}

.a7wm-select {
	width: 100%;
	padding: 13px 16px;
	border: 2px solid var(--a7wm-border);
	border-radius: 14px;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--a7wm-text);
	background: #F8FAFC;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED217C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: left 14px center;
	background-size: 16px;
	padding-left: 40px;
	transition: all 0.2s ease;
}

.a7wm-select:focus {
	outline: none;
	background-color: #FFFFFF;
	border-color: var(--a7wm-primary);
	box-shadow: 0 0 0 4px rgba(237, 33, 124, 0.12);
}

/* Stepper */
.a7wm-stepper {
	display: flex;
	align-items: center;
	background: #F8FAFC;
	border: 2px solid var(--a7wm-border);
	border-radius: 14px;
	padding: 4px;
	width: 100%;
}

.a7wm-stepper-btn {
	width: 40px;
	height: 40px;
	min-width: 40px;
	background: #FFFFFF;
	border: 1px solid var(--a7wm-border);
	border-radius: 10px;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--a7wm-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.a7wm-stepper-btn:hover {
	background: var(--a7wm-primary-light);
	border-color: var(--a7wm-primary);
	transform: scale(1.05);
}

.a7wm-stepper-btn:active {
	transform: scale(0.95);
}

.a7wm-stepper-value-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.a7wm-stepper-input {
	width: 32px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--a7wm-text);
	padding: 0;
	margin: 0;
	pointer-events: none;
}

.a7wm-stepper-unit {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--a7wm-text-secondary);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.a7wm-actions {
	margin-top: 24px;
}

.a7wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 28px;
	border-radius: 14px;
	font-size: 1.05rem;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
}

.a7wm-btn-primary {
	width: 100%;
	background: var(--a7wm-primary-gradient);
	color: #FFFFFF;
	box-shadow: 0 8px 20px rgba(237, 33, 124, 0.28);
}

.a7wm-btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(237, 33, 124, 0.38);
}

.a7wm-btn-accent {
	background: var(--a7wm-green-gradient);
	color: #FFFFFF;
	box-shadow: 0 8px 20px rgba(140, 198, 63, 0.3);
}

.a7wm-btn-accent:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(140, 198, 63, 0.4);
}

.a7wm-btn-outline {
	background: #FFFFFF;
	border: 2px solid var(--a7wm-border);
	color: var(--a7wm-text);
}

.a7wm-btn-outline:hover:not(:disabled) {
	border-color: var(--a7wm-primary);
	color: var(--a7wm-primary);
	background: var(--a7wm-primary-light);
	transform: translateY(-2px);
}

.a7wm-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* ==========================================================================
   Meal Suggestions Grid & Cards
   ========================================================================== */
.a7wm-meal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
	margin-top: 10px;
}

.a7wm-meal-card {
	background: #FFFFFF;
	border: 1.5px solid var(--a7wm-border);
	border-radius: var(--a7wm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: var(--a7wm-shadow-sm);
}

.a7wm-meal-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--a7wm-shadow-hover);
	border-color: rgba(237, 33, 124, 0.3);
}

.a7wm-meal-card.a7wm-selected {
	border-color: var(--a7wm-green);
	background: #FDFFF9;
	box-shadow: var(--a7wm-shadow-selected);
}

.a7wm-meal-card-image {
	position: relative;
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #E2E8F0;
}

.a7wm-meal-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.a7wm-meal-card:hover .a7wm-meal-card-image img {
	transform: scale(1.05);
}

.a7wm-meal-card-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
	pointer-events: none;
}

.a7wm-image-attribution {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: #FFF;
	font-size: 0.7rem;
	padding: 3px 8px;
	border-radius: 6px;
	text-decoration: none;
	backdrop-filter: blur(4px);
}

.a7wm-meal-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.a7wm-meal-card-title {
	font-size: 1.18rem;
	font-weight: 800;
	color: var(--a7wm-text);
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.a7wm-meal-card-desc {
	font-size: 0.9rem;
	color: var(--a7wm-text-secondary);
	line-height: 1.6;
	margin: 0 0 16px 0;
	flex: 1;
}

.a7wm-meal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.a7wm-tag {
	font-size: 0.8rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 8px;
}

.a7wm-tag-cuisine {
	background: var(--a7wm-primary-light);
	color: var(--a7wm-primary);
}

.a7wm-tag-time {
	background: #FFFBEB;
	color: #B45309;
}

.a7wm-tag-easy {
	background: #F0FDF4;
	color: #15803D;
}

.a7wm-tag-medium {
	background: #FEF3C7;
	color: #B45309;
}

.a7wm-tag-hard {
	background: #FEF2F2;
	color: #B91C1C;
}

.a7wm-ingredients-used {
	background: #F8FAFC;
	border-right: 3px solid var(--a7wm-primary);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.82rem;
	color: var(--a7wm-text-secondary);
	margin-bottom: 16px;
	line-height: 1.5;
}

.a7wm-meal-card-footer {
	padding: 0 20px 20px 20px;
}

.a7wm-meal-card-btn {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	border: 2px solid var(--a7wm-border);
	background: #F8FAFC;
	color: var(--a7wm-text);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.a7wm-meal-card-btn:hover {
	background: var(--a7wm-primary-light);
	border-color: var(--a7wm-primary);
	color: var(--a7wm-primary);
}

.a7wm-meal-card.a7wm-selected .a7wm-meal-card-btn,
.a7wm-meal-card-btn.a7wm-btn-selected {
	background: var(--a7wm-green-gradient);
	border-color: transparent;
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(140, 198, 63, 0.35);
}

/* ==========================================================================
   Selected Weekly Meals Section
   ========================================================================== */
.a7wm-selected-section {
	border-top: 4px solid var(--a7wm-green);
}

.a7wm-selected-container {
	margin-top: 15px;
}

.a7wm-empty-text {
	text-align: center;
	padding: 30px 20px;
	color: var(--a7wm-muted);
	font-size: 0.98rem;
	background: #F8FAFC;
	border-radius: 14px;
	border: 1px dashed var(--a7wm-border);
	margin: 0;
}

.a7wm-selected-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.a7wm-selected-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #F8FAFC;
	border: 1px solid var(--a7wm-border);
	border-radius: 12px;
	padding: 10px 14px;
	transition: all 0.2s ease;
}

.a7wm-selected-item:hover {
	background: #FFFFFF;
	border-color: #CBD5E1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.a7wm-selected-image {
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 10px;
	object-fit: cover;
}

.a7wm-selected-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.a7wm-selected-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--a7wm-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.a7wm-selected-sub {
	font-size: 0.8rem;
	color: var(--a7wm-muted);
	margin-top: 2px;
}

.a7wm-remove-btn {
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 50%;
	background: #FEE2E2;
	color: #DC2626;
	border: none;
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.a7wm-remove-btn:hover {
	background: #DC2626;
	color: #FFFFFF;
	transform: scale(1.1);
}

.a7wm-selected-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid var(--a7wm-border);
}

.a7wm-selected-actions .a7wm-btn-accent {
	flex: 2 1 240px;
}

.a7wm-selected-actions .a7wm-btn-outline {
	flex: 1 1 180px;
}

/* ==========================================================================
   Shopping List Section
   ========================================================================== */
.a7wm-shopping-section {
	border-top: 4px solid var(--a7wm-primary);
}

.a7wm-categories-container {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 20px;
}

.a7wm-category-group {
	background: #F8FAFC;
	border: 1px solid var(--a7wm-border);
	border-radius: 14px;
	padding: 20px;
}

.a7wm-category-title {
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--a7wm-text);
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--a7wm-border);
}

.a7wm-cat-icon {
	font-size: 1.3rem;
}

.a7wm-cat-count {
	background: #E2E8F0;
	color: var(--a7wm-text-secondary);
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: var(--a7wm-radius-pill);
	padding: 2px 9px;
	margin-right: auto;
}

.a7wm-ingredient-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.a7wm-checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--a7wm-border);
	user-select: none;
	transition: all 0.15s ease;
}

.a7wm-checkbox-item:hover {
	background: #F1F5F9;
	border-color: #CBD5E1;
}

.a7wm-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--a7wm-green);
	cursor: pointer;
}

.a7wm-item-label {
	font-size: 0.95rem;
	color: var(--a7wm-text);
}

.a7wm-checkbox-item.a7wm-checked {
	background: #F8FAFC;
	border-color: #E2E8F0;
	opacity: 0.6;
}

.a7wm-checkbox-item.a7wm-checked .a7wm-item-label {
	text-decoration: line-through;
	color: var(--a7wm-muted);
}

/* Toolbar */
.a7wm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--a7wm-border);
	justify-content: center;
}

.a7wm-btn-toolbar {
	background: #FFFFFF;
	color: var(--a7wm-text);
	border: 1.5px solid var(--a7wm-border);
	border-radius: var(--a7wm-radius-pill);
	padding: 11px 22px;
	font-size: 0.92rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.a7wm-btn-toolbar:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
	transform: translateY(-1px);
}

.a7wm-btn-toolbar-primary {
	background: var(--a7wm-green-gradient);
	border-color: transparent;
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(140, 198, 63, 0.3);
}

.a7wm-btn-toolbar-primary:hover {
	background: var(--a7wm-green-gradient);
	color: #FFFFFF;
	box-shadow: 0 6px 18px rgba(140, 198, 63, 0.4);
	transform: translateY(-2px);
}

.a7wm-btn-toolbar-danger {
	background: #FEF2F2;
	color: #DC2626;
	border-color: #FCA5A5;
}

.a7wm-btn-toolbar-danger:hover {
	background: #FEE2E2;
	border-color: #F87171;
}

/* ==========================================================================
   Feedback Alerts & Utilities
   ========================================================================== */
.a7wm-feedback {
	margin-top: 16px;
}

.a7wm-alert {
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
}

.a7wm-alert-success {
	background: #F0FDF4;
	color: #166534;
	border: 1px solid #BBF7D0;
}

.a7wm-alert-error,
.a7wm-alert-danger {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.a7wm-hidden {
	display: none !important;
}

/* Skeleton Loading Animation */
.a7wm-skeleton-card {
	pointer-events: none;
}

.a7wm-skeleton-body {
	padding: 20px;
}

.a7wm-skeleton-line {
	background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
	background-size: 200% 100%;
	animation: a7wm-skeleton-pulse 1.5s infinite;
	border-radius: 8px;
	margin-bottom: 12px;
}

.a7wm-sk-thumb { height: 180px; width: 100%; margin-bottom: 0; }
.a7wm-sk-title { height: 22px; width: 75%; }
.a7wm-sk-desc { height: 38px; width: 100%; }
.a7wm-sk-tags { height: 22px; width: 60%; }
.a7wm-sk-btn { height: 42px; width: 100%; margin-top: 12px; }

@keyframes a7wm-skeleton-pulse {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes a7wm-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Print Stylesheet (Dual Modes: Meals Plan / Shopping List)
   ========================================================================== */
@media print {
	/* Hide browser page clutter */
	body * {
		visibility: hidden !important;
	}

	.a7wm-app, 
	.a7wm-app * {
		visibility: visible !important;
	}

	.a7wm-app {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		color: #000000 !important;
		background: #FFFFFF !important;
		box-shadow: none !important;
		border: none !important;
	}

	/* Always hide interactive UI elements in print */
	.a7wm-header,
	.a7wm-form-section,
	.a7wm-suggestions-section,
	.a7wm-selected-section,
	.a7wm-shopping-section,
	.a7wm-toolbar,
	.a7wm-remove-btn,
	.a7wm-actions,
	.a7wm-feedback {
		display: none !important;
		visibility: hidden !important;
	}

	/* Common Print Layout Elements */
	.a7wm-print-header {
		text-align: center;
		border-bottom: 2px solid #1E293B;
		padding-bottom: 14px;
		margin-bottom: 20px;
	}

	.a7wm-print-brand {
		font-size: 1.1rem;
		font-weight: 800;
		color: #475569;
		letter-spacing: 0.5px;
	}

	.a7wm-print-title {
		font-size: 1.8rem;
		font-weight: 900;
		margin: 6px 0;
		color: #000000;
	}

	.a7wm-print-subtitle {
		font-size: 0.95rem;
		color: #64748B;
		margin: 0;
	}

	.a7wm-print-footer {
		margin-top: 28px;
		text-align: center;
		font-size: 0.85rem;
		color: #64748B;
		border-top: 1px solid #E2E8F0;
		padding-top: 10px;
	}

	/* --------------------------------------------------------------------------
	   MODE 1: Print Meals Plan (body.a7wm-print-mode-meals)
	   -------------------------------------------------------------------------- */
	body.a7wm-print-mode-meals #a7wm-printable-meals-view,
	.a7wm-app.a7wm-print-mode-meals #a7wm-printable-meals-view {
		display: block !important;
		visibility: visible !important;
		padding: 10px 15px;
	}

	body.a7wm-print-mode-meals #a7wm-printable-shopping-view,
	.a7wm-app.a7wm-print-mode-meals #a7wm-printable-shopping-view {
		display: none !important;
		visibility: hidden !important;
	}

	.a7wm-print-meals-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.a7wm-print-meal-card {
		border: 1px solid #CBD5E1;
		border-radius: 8px;
		padding: 14px;
		page-break-inside: avoid;
		break-inside: avoid;
		display: flex;
		gap: 12px;
		background: #FFFFFF;
	}

	.a7wm-print-meal-num {
		font-size: 1.3rem;
		font-weight: 900;
		width: 32px;
		height: 32px;
		min-width: 32px;
		border-radius: 50%;
		border: 1.5px solid #1E293B;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #1E293B;
	}

	.a7wm-print-meal-content {
		flex: 1;
	}

	.a7wm-print-meal-name {
		font-size: 1.05rem;
		font-weight: 800;
		margin: 0 0 4px 0;
		color: #0F172A;
	}

	.a7wm-print-meal-desc {
		font-size: 0.85rem;
		color: #334155;
		margin: 0 0 6px 0;
		line-height: 1.5;
	}

	.a7wm-print-meal-meta {
		font-size: 0.8rem;
		font-weight: 700;
		color: #64748B;
		display: flex;
		gap: 12px;
		margin-bottom: 6px;
	}

	.a7wm-print-meal-uses {
		font-size: 0.8rem;
		color: #1E293B;
		margin: 0;
		border-top: 1px dashed #CBD5E1;
		padding-top: 4px;
	}

	/* --------------------------------------------------------------------------
	   MODE 2: Print Shopping List (body.a7wm-print-mode-shopping)
	   -------------------------------------------------------------------------- */
	body.a7wm-print-mode-shopping #a7wm-printable-shopping-view,
	.a7wm-app.a7wm-print-mode-shopping #a7wm-printable-shopping-view {
		display: block !important;
		visibility: visible !important;
		padding: 10px 15px;
	}

	body.a7wm-print-mode-shopping #a7wm-printable-meals-view,
	.a7wm-app.a7wm-print-mode-shopping #a7wm-printable-meals-view {
		display: none !important;
		visibility: hidden !important;
	}

	.a7wm-print-shopping-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 14px !important;
	}

	.a7wm-print-category-card {
		border: 1px solid #CBD5E1 !important;
		border-radius: 8px !important;
		padding: 12px 14px !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
		background: #FFFFFF !important;
	}

	.a7wm-print-category-title {
		font-size: 1.02rem !important;
		font-weight: 800 !important;
		margin: 0 0 10px 0 !important;
		padding-bottom: 6px !important;
		border-bottom: 1.5px solid #E2E8F0 !important;
		color: #0F172A !important;
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.a7wm-print-cat-badge {
		background: #F1F5F9 !important;
		color: #475569 !important;
		font-size: 0.75rem !important;
		border-radius: 9999px !important;
		padding: 1px 7px !important;
		margin-right: auto !important;
		border: 1px solid #E2E8F0 !important;
	}

	.a7wm-print-category-list {
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 6px !important;
	}

	.a7wm-print-category-list li {
		font-size: 0.9rem !important;
		line-height: 1.5 !important;
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		color: #1E293B !important;
	}

	.a7wm-print-box {
		width: 14px !important;
		height: 14px !important;
		min-width: 14px !important;
		border: 1.5px solid #475569 !important;
		border-radius: 3px !important;
		display: inline-block !important;
		background: #FFFFFF !important;
	}

	.a7wm-print-box.checked {
		background: #475569 !important;
	}

	.a7wm-print-item-text.a7wm-checked {
		text-decoration: line-through !important;
		color: #94A3B8 !important;
	}
}
