/* Cloud Kitchen AJAX Ordering — frontend styles
   No framework, no build step. Every color is a CSS variable in the :root
   block right below, and is also controllable from the admin settings. */

:root {
	/* =====================================================================
	   ALL COLORS ARE HERE. Every one of them can also be changed from the
	   WordPress admin (WooCommerce -> Cloud Kitchen Ordering -> Colors):
	   the colors saved there are printed as a small :root block right after
	   this file and win over the defaults below. Nothing else in this file
	   needs editing to re-color the menu.
	   ===================================================================== */

	/* Main color: the active category pill, the + add buttons, the Menu button. */
	--ckao-brand: #c1121f;
	--ckao-brand-dark: #9d0e19;

	/* "View Cart" bar at the bottom of the screen. */
	--ckao-cart-bar: #111111;
	--ckao-cart-bar-dark: #000000;

	/* "Send Order" button in the cart popup. */
	--ckao-send-btn: #c1121f;
	--ckao-send-btn-dark: #9d0e19;

	/* Quantity + / - buttons. Follows the main color unless set. */
	--ckao-qty-btn: var(--ckao-brand);
	--ckao-qty-btn-dark: var(--ckao-brand-dark);

	/* Other filled buttons: Add to Cart in the add-ons popup, WhatsApp. */
	--ckao-action-btn: #c1121f;
	--ckao-action-btn-dark: #9d0e19;

	/* Outline buttons (Track Order, Close): text color. */
	--ckao-outline-btn: #111111;

	/* Text / icon color on every filled button. */
	--ckao-btn-text: #ffffff;

	/* Prices. */
	--ckao-price: #c9a227;

	/* Headings, category titles and product names. */
	--ckao-text: #111111;

	/* Backgrounds. */
	--ckao-canvas: #f7f6f2;   /* page behind the menu + sticky category bar */
	--ckao-card-bg: #ffffff;  /* the white category containers */
	--ckao-page-bg: #ffffff;  /* popups */
	--ckao-bg: #ffffff;       /* input fields, image placeholders */

	/* Category pills that are not selected (and the search icon circle). */
	--ckao-pill-bg: #ebeae6;
	--ckao-pill-text: #111111;

	/* Other. */
	--ckao-dark: #222222;
	--ckao-border: #ecebe6;
	--ckao-danger: #c0392b;
	--ckao-gold: #c9a227;
	--ckao-gold-dark: #ad8a1f;

	max-width: 900px;
	margin: 0 auto;
	padding: 20px 16px 90px;
	position: relative;
}

.ckao-wrapper{
    padding-top: 10px;
}

/* ---------- Grey page behind the white category containers ----------
   Only on pages that contain the menu. The theme's own wrappers are
   included because many themes paint a white box over the body. */

body.ckao-has-menu,
body.ckao-has-menu .site,
body.ckao-has-menu .site-content,
body.ckao-has-menu #content,
body.ckao-has-menu #primary,
body.ckao-has-menu .ast-container,
body.ckao-has-menu .entry-content,
body.ckao-has-menu .ast-article-single,
body.ckao-has-menu .ast-separate-container .ast-article-single,
body.ckao-has-menu .ast-separate-container #primary,
body.ckao-has-menu .main-header-bar,
body.ckao-has-menu .ast-primary-header-bar {
	background-color: var(--ckao-canvas) !important;
}

/* ---------- Floating "Menu" jump button ---------- */

.ckao-menu-jump-btn {
	display: inline-block;
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
	border: none;
	border-radius: 20px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	margin-bottom: 16px;
}

.ckao-menu-jump-btn:hover {
	background: var(--ckao-brand-dark);
}

.ckao-track-last-order-link {
	display: inline-block;
	margin-left: 10px;
	margin-bottom: 16px;
	color: var(--ckao-gold-dark);
	font-weight: 700;
	font-size: 14px;
	text-decoration: underline;
}

.ckao-empty-menu {
	text-align: center;
	color: #777;
}

/* ---------- Toast ---------- */

.ckao-toast {
	position: fixed;
	/* Sits above the sticky "View Cart" bar (see .ckao-bottom-bar) rather
	   than at the top of the screen, plus the safe-area inset for phones
	   with a home indicator. */
	bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	background: var(--ckao-dark);
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 10050;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ckao-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.ckao-toast.is-error {
	background: var(--ckao-danger);
}

/* A hidden attribute always wins over a class's own display rule (some
   elements below set display:flex on themselves), so search filtering
   and the "no results" message can rely on plain [hidden] everywhere. */
[hidden] {
	display: none !important;
}

/* ---------- Sticky bar: search + category nav ---------- */

.ckao-sticky-bar {
	position: sticky;
	top: 0;
	z-index: 400;
	background: var(--ckao-canvas);
	display: flex;
	flex-direction: column;
}

/* First row: the pill nav (its own independent horizontal scroller) with
   the search toggle pinned beside it, never scrolling away with it. */
.ckao-sticky-bar-row {
	display: flex;
	align-items: center;
}

.ckao-search-toggle {
    transform: translateY(-4px);
    padding: 0;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	margin: 10px 4px 10px 2px;
	border-radius: 50%;
	border: none;
	background: var(--ckao-pill-bg);
	color: var(--ckao-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* When the theme header already shows the [ckao_search] icon, the one
   inside the sticky bar is redundant. */
.ckao-wrapper.has-external-search .ckao-search-toggle {
	display: none;
}

.ckao-search-toggle.is-active {
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
}

.ckao-search-box {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 0 2px 8px;
}

.ckao-search-box.is-open {
	display: flex;
}

.ckao-search-input {
	flex: 1;
	border: 1px solid var(--ckao-border);
	background: var(--ckao-bg);
	border-radius: 20px;
	padding: 10px 16px;
	font-size: 16px;
	font-family: inherit;
}

.ckao-search-input:focus {
	outline: none;
	border-color: var(--ckao-brand);
	background: var(--ckao-page-bg);
}

.ckao-search-close {
    padding:0;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.ckao-no-results {
	text-align: center;
	color: #888;
	padding: 30px 0;
}

/* ---------- Category nav (sticky, horizontal scroll) ---------- */

.ckao-category-nav {
	position: sticky;
	top: 0;
	z-index: 400;
	display: flex;
	align-items: flex-start;
	gap: 8px;
    padding-block:4px;
	overflow-x: auto;
	background: var(--ckao-canvas);
	scrollbar-width: none;
	/* A mouse user drags this row the same way a finger swipes it, see
	   the mousedown handler in frontend.js. */
	cursor: grab;
}

.ckao-category-nav.ckao-is-dragging {
	cursor: grabbing;
	/* While dragging, don't let text/pills get selected or let a link
	   fire a click at the end of the drag. */
	user-select: none;
}

.ckao-category-nav::-webkit-scrollbar {
	display: none;
}

.ckao-category-item {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.ckao-category-pill {
	flex: 0 0 auto;
	display: inline-block;
	background: var(--ckao-pill-bg);
	color: var(--ckao-pill-text);
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease;
}

.ckao-category-pill:hover {
	color: var(--ckao-pill-text);
	filter: brightness(0.97);
}

/* The selected pill: main color (red by default). */
.ckao-category-pill.is-active,
.ckao-category-pill.is-active:hover {
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
	box-shadow: none;
	filter: none;
}

/* Caret button that opens/closes the subcategory dropdown. Kept separate
   from the pill itself so a click can either jump to the category (pill)
   or reveal its subcategories (caret) without the two fighting over the
   same click. */
.ckao-category-caret {
    display: none;
	flex: 0 0 auto;
	margin-left: -10px;
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
	opacity: 0.65;
	border: none;
	border-radius: 0 20px 20px 0;
	padding: 8px 10px 8px 4px;
	font-size: 10px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ckao-category-caret:hover,
.ckao-category-item.ckao-is-open .ckao-category-caret {
	opacity: 1;
}

.ckao-category-item.ckao-is-open .ckao-category-caret {
	transform: rotate(180deg);
}

.ckao-category-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	background: var(--ckao-page-bg);
	border: 1px solid var(--ckao-border);
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	padding: 6px;
	z-index: 410;
	min-width: 160px;
}

.ckao-category-item.ckao-is-open .ckao-category-dropdown {
	display: block;
}

.ckao-category-dropdown-link {
	display: block;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ckao-text);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 6px;
}

.ckao-category-dropdown-link:hover {
	background: var(--ckao-bg);
}

/* ---------- Menu list ---------- */

.ckao-category-section {
	/* --ckao-nav-height is measured in frontend.js from the sticky nav's
	   actual rendered height, so jumping to a category never leaves its
	   heading tucked under the pill bar. 64px is only a fallback for the
	   brief moment before JS runs. */
	scroll-margin-top: calc(var(--ckao-nav-height, 64px) + 8px);
	/* Extra breathing room between one category's block (including its
	   subcategories) and the next, so groups read as clearly separate. */
	margin-bottom: 24px;
}

.ckao-category-section:last-child {
	margin-bottom: 0;
}

.ckao-category-heading {
	margin: 18px 0 12px;
	position: relative;
	z-index: 1;
}

.ckao-category-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0;
	color: var(--ckao-text);
}

/* A subcategory heading is deliberately smaller and lighter than its
   parent's, and indented, so the two are never mistaken for the same
   level while scrolling through the list. */
.ckao-subcategory-section {
	scroll-margin-top: calc(var(--ckao-nav-height, 64px) + 8px);
	margin-top: 12px;
}

.ckao-subcategory-heading {
	margin: 16px 0 10px;
}

.ckao-subcategory-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.ckao-category-card {
	background: var(--ckao-card-bg);
	border-radius: 22px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

/* Rows sit directly against each other inside the container, separated
   only by a thin line (never above the first visible row). */
.ckao-menu-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	margin: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.ckao-menu-row:not([hidden]) ~ .ckao-menu-row:not([hidden]) {
	border-top: 1px solid var(--ckao-border);
}

.ckao-menu-row-img {
	width: 104px;
	height: 104px;
	object-fit: cover;
	border-radius: 14px;
	flex-shrink: 0;
	background: var(--ckao-bg);
}

.ckao-menu-row-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ckao-menu-row-name {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--ckao-text);
}

.ckao-menu-row-desc {
	margin: 0;
	font-size: 13px;
	color: #767267;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ckao-menu-row-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--ckao-price);
	margin-top: 2px;
}

.ckao-spicy {
	font-size: 0.9em;
}

.ckao-add-icon-btn {
    padding:0;
    flex-shrink: 0;
    width: 40px;
    height:40px;
    border-radius: 100%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
	border: none;
	font-size: 20px;
    font-weight: bold;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ckao-add-icon-btn:hover {
	background: var(--ckao-brand-dark);
}

.ckao-add-icon-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ckao-add-icon-btn.is-loading {
	position: relative;
	color: transparent !important;
}

.ckao-add-icon-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ckao-spin 0.6s linear infinite;
}

/* ---------- Generic buttons (modal footer, whatsapp, etc.) ---------- */

.ckao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--ckao-action-btn);
	color: var(--ckao-btn-text);
	border: none;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
}

.ckao-btn:hover {
	background: var(--ckao-action-btn-dark);
	color: var(--ckao-btn-text);
}

.ckao-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ckao-btn-primary {
	width: 100%;
}

.ckao-btn-ghost {
	background: transparent;
	color: var(--ckao-outline-btn);
	box-shadow: inset 0 0 0 1px var(--ckao-border);
	width: 100%;
	margin-top: 8px;
}

.ckao-btn-ghost:hover {
	background: var(--ckao-bg);
	color: var(--ckao-outline-btn);
}

.ckao-btn-whatsapp {
	width: 100%;
}

.ckao-btn-whatsapp:hover {
	background: var(--ckao-action-btn-dark);
}

/* Send Order button (its own color in the admin settings). */
.ckao-btn-send {
	background: var(--ckao-send-btn);
}

.ckao-btn-send:hover {
	background: var(--ckao-send-btn-dark);
}

.ckao-btn.is-loading {
	position: relative;
	color: transparent !important;
}

.ckao-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ckao-spin 0.6s linear infinite;
}

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

/* ---------- Bottom sticky "View Cart" bar ---------- */

.ckao-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	padding: 12px 16px;
	background: transparent;
	pointer-events: none;
}

.ckao-bottom-bar-btn {
	pointer-events: auto;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--ckao-cart-bar);
	color: var(--ckao-btn-text);
	border: none;
	border-radius: 22px;
	padding: 16px 22px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.ckao-bottom-bar-btn:hover {
	background: var(--ckao-cart-bar-dark);
}

.ckao-bottom-bar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ckao-bottom-bar-total {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	padding-left: 20px;
}

.ckao-cart-count {
	background: var(--ckao-brand);
	color: var(--ckao-btn-text);
	border-radius: 50%;
	min-width: 22px;
	height: 22px;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* ---------- "Your Order" modal (merged cart + checkout) ---------- */

.ckao-order-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9100;
}

.ckao-order-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.ckao-order-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	width: 92%;
	max-width: 520px;
	/* Fixed height: the bottom (details) block keeps its natural size and
	   the items list above takes whatever is left and scrolls. */
	height: 88vh;
	height: 88dvh;
	max-height: 760px;
	background: var(--ckao-page-bg);
	border-radius: 12px;
	z-index: 9200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Desktop gets a narrower, more compact cart popup instead of stretching
   toward the mobile 520px cap. */
@media (min-width: 782px) {
	.ckao-order-modal {
		width: 60%;
		max-width: 400px;
		height: 84vh;
		height: 84dvh;
		max-height: 720px;
	}
}

.ckao-order-modal.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

.ckao-order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-bottom: 1px solid var(--ckao-border);
	flex-shrink: 0;
}

.ckao-order-header h3 {
	margin: 0;
	font-size: 18px;
}

.ckao-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

/* Top: the items summary. The only part of the popup that scrolls — it
   takes all the space the fixed details block below doesn't need. */
.ckao-order-summary {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 4px 16px;
}

/* Bottom: the details fields, total and Send Order button. Fixed — it is
   never scrolled and keeps its natural height. (Only on a very short
   screen, such as a phone held sideways, may it scroll so nothing is cut
   off.) */
.ckao-order-details {
	flex: 0 0 auto;
	max-height: 72%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--ckao-canvas);
	border-top: 1px solid var(--ckao-border);
}

/* Once an order is placed, the items summary has nothing useful left to
   show, so the thank-you box gets the popup, sized to its content. */
.ckao-order-modal.is-success {
	height: auto;
	max-height: 92vh;
}

.ckao-order-modal.is-success .ckao-order-summary {
	display: none;
}

.ckao-order-modal.is-success .ckao-order-details {
	max-height: none;
}

.ckao-order-body {
	padding: 8px 16px 2px;
	flex: none;
}

.ckao-cart-empty-msg {
	color: #888;
	text-align: center;
	margin: 30px 0;
}

/* Cart line items inside the modal */

.ckao-cart-item {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ckao-border);
}

.ckao-cart-item-img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 14px;
	flex-shrink: 0;
	background: var(--ckao-bg);
}

.ckao-cart-item-info {
	flex: 1;
	min-width: 0;
}

.ckao-cart-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ckao-cart-item-name {
	font-weight: 700;
	margin: 0 0 2px;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.2px;
}

.ckao-cart-item-remove {
	background: none;
	border: none;
	color: #999;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	flex-shrink: 0;
}

.ckao-cart-item-remove:hover {
	color: var(--ckao-danger);
}

.ckao-cart-item-addons {
	font-size: 12px;
	color: #888;
	margin: 0 0 6px;
}

.ckao-cart-item-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 6px;
}

.ckao-qty-buttons {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ckao-qty-btn {
    padding:0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--ckao-qty-btn);
	background: var(--ckao-qty-btn);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ckao-btn-text);
}

.ckao-qty-btn[data-action="increase"],
.ckao-qty-btn[data-action="decrease"] {
  background: var(--ckao-qty-btn);
  border-color: var(--ckao-qty-btn);
  color: var(--ckao-btn-text);
}

.ckao-qty-btn[data-action="increase"]:hover {
	background: var(--ckao-qty-btn-dark);
}

.ckao-qty-btn[data-action="decrease"]:hover{
    background: var(--ckao-qty-btn-dark);
}

.ckao-cart-item-price {
	font-weight: 700;
	font-size: 13px;
	color: var(--ckao-price);
	white-space: nowrap;
}

/* Checkout fields, inline below the cart items in the same modal */

.ckao-checkout-form {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ckao-field {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ckao-field input,
.ckao-field textarea {
	border: 1px solid var(--ckao-border);
	background: var(--ckao-bg);
	border-radius: 10px;
	padding: 6px 12px;
	/* 16px: below that, Safari on iPhone zooms the whole page in when a
	   field is tapped and leaves it shifted sideways. */
	font-size: 16px;
	line-height: 1.25;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

.ckao-field textarea {
	resize: none;
}

.ckao-field input:focus,
.ckao-field textarea:focus {
	outline: none;
	border-color: var(--ckao-brand);
	background: var(--ckao-page-bg);
}

.ckao-field input.is-invalid,
.ckao-field textarea.is-invalid {
	border-color: var(--ckao-danger);
}

.ckao-field-error {
	color: var(--ckao-danger);
	font-size: 12px;
	padding-left: 4px;
}

.ckao-form-error {
	color: var(--ckao-danger);
	font-size: 13px;
}

/* Empty error lines take no room, so the fields stay compact. */
.ckao-field-error:empty,
.ckao-form-error:empty {
	display: none;
}

.ckao-order-success {
	padding: 20px 0 4px;
	text-align: center;
}

.ckao-order-success-msg {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 16px;
}

.ckao-whatsapp-note {
	font-size: 12px;
	color: #888;
	margin: 10px 0 4px;
}

.ckao-order-footer {
	flex-shrink: 0;
	padding: 6px 16px 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.ckao-sum-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

/* Delivery fee: smaller and softer than the subtotal. */
.ckao-sum-row--fee {
	font-size: 12.5px;
	font-weight: 500;
	color: #767267;
}

.ckao-cart-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 18px;
	font-weight: 700;
	margin: 4px 0 8px;
	padding-top: 6px;
	border-top: 1px solid var(--ckao-border);
}

/* ---------- Add-on modal (kept, restyled to match palette) ---------- */

.ckao-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9300;
}

.ckao-modal-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.ckao-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	width: 60%;
	max-width: 420px;
	background: var(--ckao-page-bg);
	border-radius: 12px;
	z-index: 9400;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
}

.ckao-modal.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

.ckao-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ckao-border);
}

.ckao-modal-header h3 {
	margin: 0;
}

/* The add-ons popup's top bar only holds the close button; the item name
   lives beside the image. */
#ckao-addon-modal .ckao-modal-header {
	justify-content: flex-end;
	padding: 10px 14px 0;
	border-bottom: none;
}

.ckao-addon-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.ckao-addon-summary-info {
	flex: 1;
	min-width: 0;
}

.ckao-addon-modal-title {
	margin: 0 0 4px;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ckao-text);
}

.ckao-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
}

.ckao-modal-price {
	font-weight: 700;
	font-size: 18px;
	color: var(--ckao-price);
	margin-bottom: 0;
}

.ckao-addon-modal-img {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 14px;
	background: var(--ckao-bg);
}

.ckao-addon-modal-img[hidden] {
	display: none;
}

.ckao-spinner {
	width: 30px;
	height: 30px;
	margin: 20px auto;
	border: 3px solid #e6e3da;
	border-top-color: #c9a227;
	border-radius: 50%;
	animation: ckao-spin 0.6s linear infinite;
}

.ckao-addon-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ckao-border);
	font-size: 14px;
}

.ckao-addon-option:last-child {
	border-bottom: none;
}

.ckao-addon-option label {
	flex: 1;
	cursor: pointer;
}

.ckao-addon-option-price {
	color: #888;
}

.ckao-qty-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
}

.ckao-qty-label {
	font-weight: 700;
}

.ckao-modal-footer {
	padding: 16px 20px;
	border-top: 1px solid var(--ckao-border);
	flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
	.ckao-order-modal {
		width: 100%;
		max-width: 100%;
		height: 92vh;
		height: 92dvh;
		max-height: none;
		border-radius: 20px 20px 0 0;
		top: auto;
		bottom: 0;
		left: 0;
		transform: translateY(100%);
	}
    
    .ckao-modal {
		width: 100%;
		max-width: 100%;
	}

	.ckao-order-modal.is-open {
		transform: translateY(0);
	}

	.ckao-order-overlay.is-open ~ .ckao-order-modal {
		transform: translateY(0);
	}
}
.ckao-qty-btn,
.ckao-add-icon-btn,
.ckao-cart-item-remove,
.ckao-modal-close,
.ckao-category-pill,
.ckao-bottom-bar-btn,
.ckao-menu-jump-btn,
.ckao-btn {
touch-action: manipulation;
}
.ckao-menu-jump-btn{
    display: none;
}
html{
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.ast-container{
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ---------- Page-only category titles (never shown in the pills) ---------- */

.ckao-category-kicker {
	display: block;
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #7a776e;
}

.ckao-category-title-extra {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.55em;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: none;
	color: var(--ckao-brand);
	vertical-align: middle;
}

/* ---------- Delivery note under the total ---------- */

.ckao-delivery-note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 2px 0 0;
	font-size: 11.5px;
	line-height: 1.3;
	color: #767267;
}

.ckao-delivery-note[hidden] {
	display: none;
}

.ckao-delivery-note-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--ckao-brand);
}

/* ---------- Page stays put while a popup is open ---------- */

html.ckao-scroll-locked,
body.ckao-scroll-locked {
	overflow: hidden !important;
	overscroll-behavior: none;
}

body.ckao-scroll-locked {
	padding-right: var(--ckao-scrollbar, 0px);
}


/* ---------- Safari: nothing may push the page sideways ---------- */

.ckao-wrapper {
	overflow-x: clip;
}

body.ckao-has-menu {
	overflow-x: clip;
}

.ckao-category-nav {
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	min-width: 0;
}

.ckao-menu-row-img[data-ckao-open-item] {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* ---------- Full-screen item popup ---------- */

.ckao-pd {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100vh;
	height: 100dvh;
	z-index: 9500;
	background: var(--ckao-page-bg);
	color: var(--ckao-text);
	display: flex;
	flex-direction: column;
	transform: translateY(100%);
	visibility: hidden;
	transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.ckao-pd.is-open {
	transform: translateY(0);
	visibility: visible;
	transition: transform 0.25s ease, visibility 0s;
}

.ckao-pd-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
	background: var(--ckao-page-bg);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	position: relative;
	z-index: 2;
}

.ckao-pd-close {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--ckao-text);
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	cursor: pointer;
}

.ckao-pd-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.ckao-pd-inner {
	max-width: 640px;
	margin: 0 auto;
}

.ckao-pd-imgwrap {
	width: 100%;
	/* A plain rectangle under the header, like a product page. */
	aspect-ratio: 7 / 5;
	background: var(--ckao-bg);
	overflow: hidden;
}

.ckao-pd-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ckao-pd-info {
	padding: 16px 18px 18px;
}

.ckao-pd-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--ckao-text);
}

.ckao-pd-desc {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #767267;
	white-space: pre-line;
}

.ckao-pd-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--ckao-price);
}

.ckao-pd-section {
	border-top: 10px solid var(--ckao-canvas);
	padding: 14px 18px 8px;
}

.ckao-pd-section-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: var(--ckao-text);
}

.ckao-pd .ckao-addon-option {
	padding: 12px 0;
	font-size: 16px;
}

.ckao-pd .ckao-addon-option input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ckao-brand);
	flex-shrink: 0;
}

.ckao-pd-footer {
	flex: 0 0 auto;
	border-top: 10px solid var(--ckao-canvas);
	background: var(--ckao-page-bg);
	padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px));
}

.ckao-pd-footer-inner {
	max-width: 640px;
	margin: 0 auto;
}

.ckao-pd-qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-bottom: 10px;
}

.ckao-pd-qty-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--ckao-qty-btn);
	border-radius: 50%;
	background: transparent;
	color: var(--ckao-qty-btn);
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: manipulation;
}

.ckao-pd-qty-value {
	min-width: 24px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
}

.ckao-pd-add {
	position: relative;
	width: 100%;
	justify-content: center;
	padding: 15px 16px;
	font-size: 17px;
	border-radius: 14px;
}

.ckao-pd-add-total {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 700;
}
.ckao-clear-cart {
	display: block;
	margin: 0 0 4px auto;
	padding: 4px 0;
	min-height: 0;
	background: none;
	border: none;
	box-shadow: none;
	color: #888;
	font-size: 12px;
	font-family: inherit;
	line-height: 1.2;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}

.ckao-clear-cart:hover {
	background: none;
	color: var(--ckao-text);
}
