/**
 * Neon Alisa Connector — cart styles.
 * Fully variable-driven so every visual aspect is controllable from the widget.
 * No box-shadows by default.
 */

.nac-cart {
	/* panel */
	--nac-bg: #ffffff;
	--nac-fg: #111111;
	--nac-muted: rgba(0, 0, 0, 0.55);
	--nac-radius: 0;
	--nac-pad: 16px;
	--nac-panel-shadow: none;
	--nac-panel-border: none;
	--nac-panel-width: 420px;
	/* accent (checkout) — inherits --nac-accent, which follows Elementor Global Colors */
	--nac-checkout-radius: 0;
	/* floating / trigger button */
	--nac-toggle-bg: #111111;
	--nac-toggle-fg: #ffffff;
	--nac-toggle-size: 58px;
	--nac-toggle-shadow: none;
	--nac-badge-bg: #e5484d;
	--nac-badge-fg: #ffffff;
	/* quantity controls */
	--nac-qty-bg: #f6f6f6;
	--nac-qty-fg: #111111;
	--nac-qty-border: 1px solid rgba(0, 0, 0, 0.15);
	--nac-qty-size: 28px;
	--nac-qty-radius: 0;
	--nac-qnum: #111111;
	/* lines / remove */
	--nac-line: #111111;
	--nac-rm: #bbbbbb;
	--nac-rm-hover: #e5484d;
	/* inputs */
	--nac-input-bg: #ffffff;
	--nac-input-fg: #111111;
	--nac-input-border: 1px solid rgba(0, 0, 0, 0.15);
	--nac-input-radius: 0;
}

/* Add-to-cart button (styled fully via the Add to Cart widget) */
.nac-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border: none;
	border-radius: 10px;
	background: var(--nac-accent, #7c3aed);
	color: var(--nac-accent-fg, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform .08s ease, opacity .2s ease;
}
.nac-add:hover { opacity: .92; }
.nac-add:active { transform: scale(.97); }
.nac-add.is-added { background: #1a7f37; }
.nac-add--soldout { background: #999; cursor: not-allowed; }
.nac-add--hidden { display: none !important; }
.nac-add__icon { display: inline-flex; align-items: center; }
.nac-add__icon svg { width: 1em; height: 1em; }

/* Success icon flashed on the button right after adding to the cart. */
.nac-add__added-icon {
	display: none;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.nac-add__added-icon svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.nac-add.is-added .nac-add__added-icon { display: inline-flex; }
.nac-add.is-added .nac-add__added-icon ~ .nac-add__icon { display: none; }

/* Card quantity stepper */
.nac-add-wrap { display: flex; align-items: center; gap: 10px; }
.nac-add-wrap--column { flex-direction: column; align-items: stretch; }
.nac-qtybox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	padding: 2px;
}
.nac-qtybox__btn {
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}
.nac-qtybox__num { min-width: 24px; text-align: center; font-weight: 600; }

/* Click zones: any element with this class adds the dish on click */
.nac-add-zone, [data-nac-add-zone] { cursor: pointer; }

/* Floating cart */
.nac-cart--floating { position: fixed; right: 20px; bottom: 20px; z-index: 99999; }
.nac-cart__toggle {
	position: relative;
	width: var(--nac-toggle-size);
	height: var(--nac-toggle-size);
	border: none;
	border-radius: 50%;
	background: var(--nac-toggle-bg);
	color: var(--nac-toggle-fg);
	font-size: 22px;
	cursor: pointer;
	box-shadow: var(--nac-toggle-shadow);
}
.nac-cart__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--nac-badge-bg);
	color: var(--nac-badge-fg);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

/* Panel */
.nac-cart__panel {
	background: var(--nac-bg);
	color: var(--nac-fg);
	border: var(--nac-panel-border);
	border-radius: var(--nac-radius);
	box-shadow: var(--nac-panel-shadow);
	padding: var(--nac-pad);
	width: var(--nac-panel-width);
	max-width: calc(100vw - 32px);
}
.nac-cart--floating .nac-cart__panel { position: absolute; right: 0; bottom: 72px; display: none; }
.nac-cart--floating .nac-cart__panel.is-open { display: block; }
.nac-cart__panel.is-open { display: block; }

/* Trigger mode */
.nac-cart--trigger { display: inline-block; position: relative; }
.nac-cart__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: none;
	border-radius: 10px;
	background: var(--nac-toggle-bg);
	color: var(--nac-toggle-fg);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.nac-cart__trigger .nac-cart__badge { position: static; margin-left: 2px; }
.nac-cart--trigger .nac-cart__panel { position: fixed; right: 20px; top: 80px; display: none; z-index: 99999; }
.nac-cart--trigger .nac-cart__panel.is-open { display: block; }

/* Link mode: standalone button-link, no panel */
.nac-cart--link { display: inline-block; }
.nac-cart__link { text-decoration: none; }
.nac-cart__link:hover { text-decoration: none; opacity: .92; }

.nac-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 1.1em;
}
.nac-cart__close { border: none; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--nac-muted); }
.nac-cart__empty { color: var(--nac-muted); margin: 8px 0; }

/* Restaurant grouping */
.nac-cart__rest { font-weight: 700; margin: 10px 0 4px; font-size: .95em; }
.nac-cart__rest-sub { display: flex; justify-content: space-between; font-size: .85em; color: var(--nac-muted); padding: 2px 0 6px; border-bottom: 1px dashed rgba(0,0,0,.12); margin-bottom: 6px; }

.nac-cart__items { list-style: none; margin: 0 0 12px; padding: 0; max-height: 42vh; overflow: auto; }
.nac-cart__item {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nac-cart__title { font-size: .92em; }
.nac-cart__qty { display: inline-flex; align-items: center; gap: 8px; }
.nac-cart__qty button {
	width: var(--nac-qty-size);
	height: var(--nac-qty-size);
	border: var(--nac-qty-border);
	border-radius: var(--nac-qty-radius);
	background: var(--nac-qty-bg);
	color: var(--nac-qty-fg);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.nac-cart__qnum { color: var(--nac-qnum); min-width: 16px; text-align: center; }
.nac-cart__line { font-weight: 600; white-space: nowrap; color: var(--nac-line); }
.nac-cart__rm { border: none; background: none; color: var(--nac-rm); font-size: 18px; cursor: pointer; }
.nac-cart__rm:hover { color: var(--nac-rm-hover); }

.nac-cart__totals { margin: 6px 0 12px; font-size: .95em; }
.nac-cart__totals > div { display: flex; justify-content: space-between; padding: 2px 0; }
.nac-cart__grand { color: var(--nac-fg); font-weight: 700; font-size: 1.05em; border-top: 1px solid rgba(0, 0, 0, 0.1); margin-top: 4px; padding-top: 6px; }

.nac-cart__type { display: flex; gap: 16px; margin-bottom: 10px; font-size: .92em; }

.nac-cart__form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.nac-cart__form input,
.nac-cart__form textarea {
	width: 100%;
	padding: 10px 12px;
	background: var(--nac-input-bg);
	color: var(--nac-input-fg);
	border: var(--nac-input-border);
	border-radius: var(--nac-input-radius);
	font: inherit;
	box-sizing: border-box;
}
.nac-cart__form textarea { min-height: 56px; resize: vertical; }
.nac-cart__timelbl { font-size: .85em; color: var(--nac-muted); margin-top: 2px; }
.nac-cart__timemode { display: flex; gap: 16px; font-size: .92em; margin-top: 2px; }
.nac-cart__timepick { display: flex; flex-direction: column; gap: 6px; }
.nac-cart__timerow { display: flex; gap: 8px; }
.nac-cart__timerow select {
	flex: 1;
	padding: 10px 12px;
	background: var(--nac-input-bg);
	color: var(--nac-input-fg);
	border: var(--nac-input-border);
	border-radius: var(--nac-input-radius);
	font: inherit;
	box-sizing: border-box;
}

.nac-cart__submit {
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-radius: var(--nac-checkout-radius);
	background: var(--nac-accent);
	color: var(--nac-accent-fg);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.nac-cart__submit:disabled { opacity: .6; cursor: default; }

.nac-cart__msg { margin-top: 10px; font-size: .9em; line-height: 1.4; }
.nac-cart__msg.is-ok { color: var(--nac-accent); }
.nac-cart__msg.is-error { color: #c0392b; }

/* Any element acting as an add-to-cart trigger */
.nac-add-trigger { cursor: pointer; }

	/* ============ Page mode: full table + summary ============ */
	.nac-cart__page {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 32px;
		align-items: start;
	}
	.nac-cart__page--table-only {
		display: block;
	}
	.nac-cart__page--summary-only {
		display: block;
	}
	.nac-cart__page--summary-only .nac-cart__summary {
		position: static;
		width: 100%;
		max-width: none;
	}
.nac-cart__table-wrap { min-width: 0; }
.nac-cart__table {
	width: 100%;
	border-collapse: collapse;
}
.nac-cart__table th,
.nac-cart__table td {
	padding: 16px 12px;
	text-align: left;
	vertical-align: middle;
}
.nac-cart__th {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, .45);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nac-cart__th--price, .nac-cart__td--price { white-space: nowrap; }
.nac-cart__trow { border-bottom: 1px solid rgba(0, 0, 0, .07); }
.nac-cart__trow:last-child { border-bottom: none; }
.nac-cart__trest td {
	font-weight: 700;
	padding-top: 20px;
	color: rgba(0, 0, 0, .7);
}
.nac-cart__td--name {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 600;
}
.nac-cart__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 0;
	background-size: cover;
	background-position: center;
	background-color: rgba(0, 0, 0, .05);
}
.nac-cart__thumb--empty { opacity: .5; }
.nac-cart__td--price { font-weight: 700; }
.nac-cart__td--qty .nac-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.nac-cart__td--qty .nac-cart__minus,
.nac-cart__td--qty .nac-cart__plus {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 0;
	background: var(--nac-accent, #7c3aed);
	color: var(--nac-accent-fg, #fff);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.nac-cart__td--qty .nac-cart__qnum { min-width: 20px; text-align: center; font-weight: 700; }
.nac-cart__td--rm { text-align: right; }
.nac-cart__td--rm .nac-cart__rm {
	border: none;
	background: transparent;
	color: rgba(0, 0, 0, .35);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.nac-cart__td--rm .nac-cart__rm:hover { color: rgba(0, 0, 0, .7); }

/* Summary card */
.nac-cart__summary {
	position: sticky;
	top: 24px;
	background: #fff;
	border: none;
	border-radius: 0;
	padding: 22px;
	box-shadow: none;
}
.nac-cart__type--seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	background: rgba(0, 0, 0, .05);
	border-radius: 0;
	padding: 5px;
	margin-bottom: 18px;
}
.nac-cart__type--seg label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	border-radius: 0;
	cursor: pointer;
	font-weight: 600;
	transition: background .15s ease;
}
.nac-cart__type--seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.nac-cart__type--seg label:has(input:checked) {
	background: var(--nac-accent, #7c3aed);
	color: var(--nac-accent-fg, #fff);
}
.nac-cart__summary .nac-cart__totals { margin-bottom: 18px; }
.nac-cart__summary .nac-cart__totals > div {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	color: rgba(0, 0, 0, .6);
}
.nac-cart__summary .nac-cart__grand {
	font-size: 20px;
	font-weight: 800;
	color: #111;
	border-top: 1px solid rgba(0, 0, 0, .08);
	margin-top: 6px;
	padding-top: 12px;
}
.nac-cart__summary .nac-cart__form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.nac-cart__summary .nac-cart__form input,
.nac-cart__summary .nac-cart__form textarea,
.nac-cart__summary .nac-cart__form select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 10px;
	font: inherit;
}
.nac-cart__summary .nac-cart__submit {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 15px;
	background: var(--nac-accent, #7c3aed);
	color: var(--nac-accent-fg, #fff);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.nac-cart__summary .nac-cart__msg { margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
	.nac-cart__page { grid-template-columns: 1fr; }
	.nac-cart__summary { position: static; }
	.nac-cart__thumb { width: 48px; height: 48px; }
	.nac-cart__table th, .nac-cart__table td { padding: 12px 6px; }
}

/* Clear-cart button (page mode) */
.nac-cart__clear {
	display: block;
	width: 100%;
	margin-top: 10px;
	border: none;
	background: transparent;
	color: rgba(0, 0, 0, .45);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px;
}
.nac-cart__clear:hover { color: #c0392b; }

/* Custom icons (Delivery/Pickup, Remove, Clear) */
.nac-ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.nac-ic svg { width: 1em; height: 1em; fill: currentColor; }
.nac-ic i { font-size: inherit; color: currentColor; }
.nac-cart__type--seg label { gap: 6px; }
.nac-cart__clear { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Drawer (Floating / Trigger) reuses the page layout, stacked in one column */
.nac-cart__page--drawer { display: block; }
.nac-cart__page--drawer .nac-cart__table-wrap { overflow-x: auto; }
.nac-cart__page--drawer .nac-cart__summary { position: static; margin-top: 12px; }
.nac-cart__panel { overflow-y: auto; }

/* Optional column hiding (toggled per widget) */
.nac-hide-image .nac-cart__thumb { display: none; }
.nac-hide-price .nac-cart__th--price,
.nac-hide-price .nac-cart__td--price { display: none; }
.nac-hide-qty .nac-cart__th--qty,
.nac-hide-qty .nac-cart__td--qty { display: none; }
.nac-hide-remove .nac-cart__th--rm,
.nac-hide-remove .nac-cart__td--rm { display: none; }

/* Delivery zone selector */
.nac-cart__zone { margin: 0 0 12px; }
.nac-cart__zone-lbl { display: block; font-size: .85em; color: var(--nac-muted, rgba(0,0,0,.55)); margin-bottom: 4px; }
.nac-cart__zone-sel {
	width: 100%;
	padding: 10px 12px;
	border: var(--nac-input-border, 1px solid rgba(0,0,0,.15));
	border-radius: var(--nac-input-radius, 10px);
	background: var(--nac-input-bg, #fff);
	color: var(--nac-input-fg, #111);
	font: inherit;
	box-sizing: border-box;
}

/* Map zone picker */
.nac-cart__zone-btn {
	width: 100%;
	padding: 10px 12px;
	border: var(--nac-input-border, 1px solid rgba(0,0,0,.15));
	border-radius: var(--nac-input-radius, 10px);
	background: var(--nac-input-bg, #fff);
	color: var(--nac-input-fg, #111);
	font: inherit;
	cursor: pointer;
	text-align: left;
}
.nac-cart__zone-ok { margin-top: 6px; font-size: .88em; color: #1a7f37; }
.nac-cart__zone-err { margin-top: 6px; font-size: .88em; color: #c0392b; }

.nac-mapmodal {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(0,0,0,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.nac-mapmodal__box {
	background: #fff; border-radius: 14px; overflow: hidden;
	width: min(900px, 96vw); max-height: 90vh; display: flex; flex-direction: column;
}
.nac-mapmodal__map { flex: 1; min-height: 60vh; }
.nac-mapmodal__bar {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; border-top: 1px solid rgba(0,0,0,.08);
}
.nac-mapmodal__hint { flex: 1; font-size: .9em; }
.nac-mapmodal__hint.is-ok { color: #1a7f37; }
.nac-mapmodal__hint.is-error { color: #c0392b; }
.nac-mapmodal__ok, .nac-mapmodal__close {
	padding: 9px 16px; border: none; border-radius: 10px; font: inherit; cursor: pointer;
}
.nac-mapmodal__ok { background: #1a7f37; color: #fff; font-weight: 600; }
.nac-mapmodal__close { background: #eee; color: #111; }


.nac-mapmodal__top {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.nac-mapmodal__lead { font-size: .92em; color: rgba(0,0,0,.6); }
.nac-mapmodal__search { display: flex; gap: 6px; margin-left: auto; }
.nac-mapmodal__input {
	width: 260px; max-width: 50vw;
	padding: 9px 12px;
	border: 1px solid rgba(0,0,0,.15); border-radius: 10px;
	font: inherit;
}
.nac-mapmodal__find {
	padding: 9px 16px; border: none; border-radius: 10px;
	background: var(--nac-accent, #111); color: var(--nac-accent-fg, #fff);
	font: inherit; font-weight: 600; cursor: pointer;
}
