/**
 * A7la7ayat Weekly Meals (طبخات الأسبوع) - Stylesheet
 * Scoped styles with custom CSS variables matching A7la7ayat branding (#ED217C, #8CC63F)
 * Modern RTL layout, refined cards, micro-animations, shopping basket, and print support.
 *
 * @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-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-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;
}

/* ==========================================================================
   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: 70px;
	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-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: 1rem;
	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='%23666666' stroke-width='2' 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: border-color 0.2s ease, box-shadow 0.2s ease;
}

.a7wm-select:focus {
	outline: none;
	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;
	display: flex;
	justify-content: center;
}

.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 {
	width: 100%;
	background: var(--a7wm-green-gradient);
	color: #FFFFFF;
	box-shadow: 0 8px 20px rgba(140, 198, 63, 0.28);
}

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

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

/* Loading spinner inside button */
.a7wm-btn.a7wm-loading .a7wm-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: a7wm-spin 0.7s linear infinite;
}

.a7wm-spinner {
	display: none;
}

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

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

.a7wm-meal-card {
	background: #FFFFFF;
	border: 1px solid var(--a7wm-border);
	border-radius: var(--a7wm-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--a7wm-shadow-sm);
	transition: all 0.25s ease;
	position: relative;
	overflow: hidden;
}

.a7wm-meal-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--a7wm-primary);
}

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

.a7wm-meal-card-image {
	width: 100%;
	height: 160px;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 14px;
	background: #F1F5F9;
}

.a7wm-meal-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

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

.a7wm-meal-card-desc {
	font-size: 0.92rem;
	color: var(--a7wm-text-secondary);
	margin: 0 0 14px 0;
	line-height: 1.5;
	flex-grow: 1;
}

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

.a7wm-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	background: #F1F5F9;
	color: var(--a7wm-text-secondary);
}

.a7wm-tag-cuisine {
	background: #EAF2FF;
	color: #1A56B0;
}

.a7wm-tag-time {
	background: #FFF4E5;
	color: #B25900;
}

.a7wm-tag-easy {
	background: #E6F4EA;
	color: #137333;
}

.a7wm-tag-medium {
	background: #FEF7E0;
	color: #B06000;
}

.a7wm-tag-hard {
	background: #FCE8E6;
	color: #C5221F;
}

.a7wm-ingredients-used {
	font-size: 0.82rem;
	color: var(--a7wm-text-secondary);
	background: #F8FAFC;
	padding: 8px 12px;
	border-radius: 8px;
	margin-bottom: 15px;
	border: 1px solid var(--a7wm-border);
}

.a7wm-meal-card-btn {
	width: 100%;
	padding: 11px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 0.95rem;
	font-family: inherit;
	border: 2px solid var(--a7wm-primary);
	background: transparent;
	color: var(--a7wm-primary);
	cursor: pointer;
	transition: all 0.2s ease;
}

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

.a7wm-meal-card.a7wm-selected .a7wm-meal-card-btn {
	background: var(--a7wm-green);
	border-color: var(--a7wm-green);
	color: #FFFFFF;
}

/* ==========================================================================
   Selected Weekly Meals Section
   ========================================================================== */
.a7wm-badge {
	background: var(--a7wm-primary-light);
	color: var(--a7wm-primary);
	border: 1px solid rgba(237, 33, 124, 0.2);
	padding: 4px 14px;
	border-radius: var(--a7wm-radius-pill);
	font-size: 0.85rem;
	font-weight: 800;
}

.a7wm-empty-text {
	color: var(--a7wm-muted);
	font-style: italic;
	margin: 10px 0;
}

.a7wm-selected-list {
	list-style: none;
	padding: 0;
	margin: 15px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.a7wm-selected-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #F8FAFC;
	border: 1px solid var(--a7wm-border);
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 700;
	color: var(--a7wm-text);
}

.a7wm-remove-btn {
	background: transparent;
	border: none;
	color: #DC2626;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.a7wm-remove-btn:hover {
	background: #FEE2E2;
}

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

.a7wm-select-all-bar {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.a7wm-select-all-main-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 5px 12px;
	background: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	user-select: none;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.a7wm-select-all-main-label:hover {
	background: #F8FAFC;
	border-color: #94A3B8;
}

.a7wm-categories-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.a7wm-category-group {
	background: #F8FAFC;
	border: 1px solid #F1F5F9;
	border-radius: 16px;
	padding: 18px 20px;
}

.a7wm-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #E2E8F0;
	flex-wrap: wrap;
}

.a7wm-category-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--a7wm-text);
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

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

.a7wm-cat-count {
	background: #E2E8F0;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 800;
	border-radius: var(--a7wm-radius-pill);
	padding: 2px 9px;
}

.a7wm-cat-select-all-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 5px 11px;
	background: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	user-select: none;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.a7wm-cat-select-all-label:hover {
	background: #F8FAFC;
	border-color: #94A3B8;
}

.a7wm-ingredient-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (max-width: 600px) {
	.a7wm-ingredient-grid {
		grid-template-columns: 1fr;
	}
}

.a7wm-checkbox-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	padding: 12px 16px;
	min-height: 48px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	user-select: none;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

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

.a7wm-checkbox {
	width: 18px;
	height: 18px;
	min-width: 18px;
	accent-color: var(--a7wm-primary);
	cursor: pointer;
	border-radius: 4px;
}

.a7wm-item-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
	flex: 1;
}

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

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

/* ==========================================================================
   Shopping Layout (Side-by-Side: Categories on Main, Basket on Side Card)
   ========================================================================== */
.a7wm-shopping-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 20px;
	align-items: start;
	margin-top: 20px;
}

.a7wm-shopping-main-col {
	min-width: 0;
}

.a7wm-shopping-side-col {
	min-width: 0;
	position: sticky;
	top: 20px;
}

@media (max-width: 860px) {
	.a7wm-shopping-layout {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.a7wm-shopping-side-col {
		position: static;
		width: 100%;
	}
}

/* ==========================================================================
   Shopping Basket Card (Side/Adjacent Card)
   ========================================================================== */
.a7wm-basket-card {
	background: #FFFFFF;
	border: 1px solid var(--a7wm-border);
	border-radius: 16px;
	padding: 22px 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.a7wm-basket-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #F1F5F9;
}

.a7wm-basket-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.a7wm-basket-icon {
	font-size: 1.25rem;
}

.a7wm-basket-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--a7wm-text);
	margin: 0;
}

.a7wm-basket-badge {
	width: 24px;
	height: 24px;
	min-width: 24px;
	background: var(--a7wm-primary);
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 800;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(237, 33, 124, 0.35);
}

.a7wm-basket-empty {
	text-align: center;
	padding: 38px 16px;
	background: transparent;
	border: none;
	border-radius: 12px;
}

.a7wm-basket-empty-icon {
	font-size: 2.8rem;
	margin-bottom: 12px;
	opacity: 0.45;
	filter: grayscale(1);
}

.a7wm-basket-empty-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--a7wm-text);
	margin: 0 0 6px 0;
}

.a7wm-basket-empty-desc {
	font-size: 0.86rem;
	color: var(--a7wm-muted);
	margin: 0;
}

.a7wm-basket-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 520px;
	overflow-y: auto;
	padding-left: 2px;
}

.a7wm-basket-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #F8FAFC;
	border: 1px solid var(--a7wm-border);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--a7wm-text);
	transition: all 0.15s ease;
}

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

.a7wm-basket-item.is-completed {
	background: #F8FAFC;
	border-color: #E2E8F0;
	opacity: 0.65;
}

.a7wm-basket-item.is-completed .a7wm-basket-item-text,
.a7wm-basket-item.is-completed .a7wm-basket-item-name,
.a7wm-basket-item.is-completed .a7wm-basket-item-qty {
	text-decoration: line-through;
	color: var(--a7wm-muted);
}

.a7wm-basket-item-name {
	font-weight: 700;
	color: var(--a7wm-text);
	flex: 1;
	word-break: break-word;
	line-height: 1.4;
}

.a7wm-basket-item-qty {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--a7wm-text-secondary);
	background: #F1F5F9;
	padding: 2px 7px;
	border-radius: 6px;
	white-space: nowrap;
}

.a7wm-basket-item-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.a7wm-basket-check-btn {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 4px;
	border: 1.5px solid var(--a7wm-border);
	background: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	font-size: 11px;
	font-weight: 800;
	color: #FFFFFF;
	transition: all 0.15s ease;
}

.a7wm-basket-item.is-completed .a7wm-basket-check-btn {
	background: var(--a7wm-green);
	border-color: var(--a7wm-green);
}

.a7wm-basket-item-icon {
	font-size: 1.1rem;
	min-width: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.a7wm-basket-item-text {
	flex: 1;
	line-height: 1.4;
	word-break: break-word;
	transition: all 0.15s ease;
}

.a7wm-basket-remove-btn {
	background: transparent;
	border: none;
	color: #94A3B8;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	line-height: 1;
	font-family: inherit;
}

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

/* ==========================================================================
   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-basket {
	background: var(--a7wm-primary-gradient);
	border-color: transparent;
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(237, 33, 124, 0.3);
}

.a7wm-btn-toolbar-basket:hover {
	background: var(--a7wm-primary-gradient);
	color: #FFFFFF;
	box-shadow: 0 6px 18px rgba(237, 33, 124, 0.4);
	transform: translateY(-2px);
}

.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 */
.a7wm-skeleton-card {
	pointer-events: none;
}

.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-title { height: 22px; width: 75%; }
.a7wm-sk-desc  { height: 38px; width: 100%; }
.a7wm-sk-tags  { height: 20px; width: 60%; }
.a7wm-sk-btn   { height: 38px; width: 100%; margin-top: 10px; }

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

/* ==========================================================================
   Printable Container (hidden on screen, used for isolated iframe print)
   ========================================================================== */
.a7wm-printable-view {
	display: none;
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
	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;
	}

	.a7wm-header,
	.a7wm-form-section,
	.a7wm-suggestions-section,
	.a7wm-selected-section,
	.a7wm-toolbar,
	.a7wm-actions,
	.a7wm-feedback,
	.a7wm-remove-btn {
		display: none !important;
		visibility: hidden !important;
	}

	.a7wm-shopping-section {
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
	}

	.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;
	}

	.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;
	}
}
