/**
 * A La Carte Order Card Styles
 *
 * Fancy order cards with icons and dish images.
 *
 * @package MphbGuestServices
 * @since 2.0.0
 */

/* ========================================
 * Order Card Container
 * ======================================== */

.gs-alc-order-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}

/* ========================================
 * Card Header
 * ======================================== */

.gs-alc-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	background: transparent;
	border-bottom: 1px solid var(--gs-color-border);
}

.gs-alc-order-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--gs-color-text);
}

.gs-alc-order-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--gs-color-primary);
}

/* ========================================
 * Info Row with Icons
 * ======================================== */

.gs-alc-order-info {
	display: flex;
	gap: 24px;
	padding: 16px 0;
	background: transparent;
	border-bottom: 1px solid var(--gs-color-border-light);
}

.gs-alc-order-info-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gs-color-text);
}

.gs-alc-icon {
	width: 18px;
	height: 18px;
	color: var(--gs-color-text-soft);
	flex-shrink: 0;
}

/* ========================================
 * Dishes Grid
 * ======================================== */

.gs-alc-dishes-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	padding: 16px 20px;
	flex: 1;
}

@media (max-width: 480px) {
	.gs-alc-dishes-grid {
		grid-template-columns: 1fr;
	}
}

.gs-alc-dish-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	background: var(--gs-color-surface-alt);
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.gs-alc-dish-item:hover {
	background: var(--gs-color-surface-hover);
}

.gs-alc-dish-image {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--gs-color-border);
}

.gs-alc-dish-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-alc-dish-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gs-color-text-muted);
}

.gs-alc-dish-placeholder svg {
	width: 24px;
	height: 24px;
	color: var(--gs-color-surface);
}

.gs-alc-dish-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gs-alc-dish-type {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gs-color-text-muted);
}

.gs-alc-dish-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--gs-color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========================================
 * Card Footer
 * ======================================== */

.gs-alc-order-footer {
	padding: 12px 20px 16px;
	text-align: center;
	border-top: 1px solid var(--gs-color-border-light);
	margin-top: auto;
}

button.gs-alc-cancel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #ef4444;
	background: rgba(239, 68, 68, 0.08);
	border: 2px solid #ef4444;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	transform: none;
}

button.gs-alc-cancel-btn:hover:not(:disabled) {
	color: #fff;
	background: #ef4444;
	border-color: #ef4444;
	transform: none;
}

.gs-alc-cancel-icon {
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}
