/* =========================================================
   Caffito Child – Quick Add (+) button & Order Note textarea
   Designed to match Caffito 1.2.0 mobile-first UI
   ========================================================= */

/* ---------- Quick-Add button next to "مشاهده جزییات..." ---------- */

.product-card .caffito-quick-add-wrap {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin-top: 0;
	width: 100%;
}

.product-card .caffito-quick-add-wrap .product-card-button {
	flex: 1 1 auto;
	min-width: 0;
}

.product-card .caffito-quick-add-btn {
	flex: 0 0 44px;
	width: 44px;
	height: auto;
	min-height: 44px;
	border: none;
	border-radius: var(--border--radius, 20px);
	background: var(--primary--color, #00704A);
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	padding: 0;
}

.product-card .caffito-quick-add-btn:hover,
.product-card .caffito-quick-add-btn:focus-visible {
	background: color-mix(in srgb, var(--primary--color, #00704A) 85%, #000);
	outline: none;
}

.product-card .caffito-quick-add-btn:active {
	transform: scale(0.94);
}

.product-card .caffito-quick-add-btn.is-added {
	background: #2e7d32;
	pointer-events: none;
}

.product-card.outsell .caffito-quick-add-btn {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}

/* Mobile safety */
@media (max-width: 480px) {
	.product-card .caffito-quick-add-btn {
		flex: 0 0 42px;
		width: 42px;
		min-height: 42px;
		font-size: 20px;
	}
}

/* ---------- Order note textarea inside popup ---------- */

.popup .caffito-order-note-wrap {
	margin: 16px 0 8px;
	padding: 0 2px;
	direction: rtl;
	text-align: right;
}

.popup .caffito-order-note-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--gray-700, #383838);
	margin-bottom: 6px;
}

.popup .caffito-order-note {
	width: 100%;
	min-height: 72px;
	max-height: 140px;
	padding: 10px 12px;
	border: 1px solid var(--gray-300, #d2d2d2);
	border-radius: 12px;
	font-family: var(--font-family-base, 'YekanBakhVF', Tahoma, sans-serif);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--gray-800, #2a2a2a);
	background: var(--gray-100, #fafafa);
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.popup .caffito-order-note::placeholder {
	color: var(--gray-500, #acacac);
	opacity: 1;
}

.popup .caffito-order-note:focus {
	outline: none;
	border-color: var(--primary--color, #00704A);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary--color, #00704A) 18%, transparent);
	background: #fff;
}

/* ---------- Note display inside Drawer ---------- */

.notes-drawer .note-item .caffito-item-note {
	margin: 6px 0 4px;
	padding: 6px 10px;
	background: color-mix(in srgb, var(--primary--color, #00704A) 8%, transparent);
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--gray-700, #383838);
	direction: rtl;
	text-align: right;
	word-break: break-word;
}

.notes-drawer .note-item .caffito-item-note-label {
	font-weight: 500;
	margin-left: 4px;
	color: var(--primary--color, #00704A);
}
/* ---------- Waiter panel (گارسون) – order item notes ---------- */
.cw-item-note {
	margin-top: 6px;
	padding: 6px 10px;
	background: #fff8e6;
	border-right: 3px solid #e6a800;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
	direction: rtl;
	text-align: right;
	word-break: break-word;
}
.cw-item-note-label {
	font-weight: 600;
	color: #b8860b;
	margin-left: 4px;
}
.cw-item-note-text {
	font-weight: 400;
}
