/* Beach Ordering — professional menu UI */

/* Hide the theme page title on the ordering screen */
body.beach-ordering-page .wp-block-post-title,
body.beach-ordering-page .entry-title,
body.beach-ordering-page .page-title {
	display: none !important;
}

.beach-ordering-shell,
.beach-ordering,
.beach-modal {
	--beach-primary: #cf2a6b;
	--beach-primary-dark: #a82155;
	--beach-primary-darker: #8c1a47;
	--beach-primary-light: rgba(207, 42, 107, 0.1);
	--beach-primary-soft: rgba(207, 42, 107, 0.15);
	--beach-primary-glow: rgba(207, 42, 107, 0.35);
}

.beach-ordering-shell {
	background: linear-gradient(165deg, #fdf2f7 0%, #faf6ef 45%, #fceef4 100%);
	border-radius: 20px;
	padding: 1.5rem 1.25rem 2rem;
	box-shadow: 0 24px 64px rgba(207, 42, 107, 0.08);
}

/* Widen content area without stacking theme + plugin padding */
.entry-content:has(.beach-ordering-shell),
.wp-block-post-content:has(.beach-ordering-shell) {
	max-width: none !important;
}

@media (max-width: 767px) {
	.entry-content:has(.beach-ordering-shell),
	.wp-block-post-content:has(.beach-ordering-shell),
	main:has(.beach-ordering-shell) {
		padding-left: max(0.875rem, env(safe-area-inset-left)) !important;
		padding-right: max(0.875rem, env(safe-area-inset-right)) !important;
	}
}

@media (min-width: 768px) {
	.entry-content:has(.beach-ordering-shell),
	.wp-block-post-content:has(.beach-ordering-shell) {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}
}

@media (min-width: 768px) {
	.beach-ordering-shell {
		padding: 2rem 1.5rem 2.5rem;
	}
}

@media (min-width: 1024px) {
	.beach-ordering-shell {
		padding: 2rem 2rem 2.5rem;
	}
}

.beach-ordering {
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	color: #1e3340;
	line-height: 1.5;
}

/* ---- Hero ---- */
.beach-ordering .beach-hero {
	text-align: center;
	padding: 0.5rem 0 2rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid rgba(207, 42, 107, 0.12);
}

.beach-ordering .beach-hero-kicker {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.3rem 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--beach-primary);
	background: var(--beach-primary-light);
	border-radius: 999px;
}

.beach-ordering .beach-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	color: #143040;
	letter-spacing: -0.02em;
}

.beach-ordering .beach-hero-sub {
	margin: 0 auto;
	max-width: 36rem;
	font-size: 1rem;
	color: #5a7282;
}

/* ---- Sections ---- */
.beach-ordering .beach-section {
	background: #fff;
	border: 1px solid rgba(30, 90, 120, 0.1);
	border-radius: 16px;
	padding: 1.35rem 1.25rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 20px rgba(26, 58, 74, 0.04);
}

.beach-ordering .beach-section-menu {
	padding-bottom: 1.25rem;
}

.beach-ordering .beach-section-head {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.beach-ordering .beach-step {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--beach-primary), var(--beach-primary-dark));
	border-radius: 50%;
	box-shadow: 0 4px 12px var(--beach-primary-glow);
}

.beach-ordering .beach-section-head h3 {
	margin: 0 0 0.2rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: #143040;
}

.beach-ordering .beach-section-note {
	margin: 0;
	font-size: 0.88rem;
	color: #6b8494;
}

/* ---- Form fields ---- */
.beach-ordering .beach-field {
	margin-bottom: 0.85rem;
}

.beach-ordering .beach-field:last-child {
	margin-bottom: 0;
}

.beach-ordering .beach-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.beach-ordering .beach-field-row {
		grid-template-columns: 1fr;
	}
}

.beach-ordering .beach-field label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	color: #3d5566;
	margin-bottom: 0.35rem;
}

.beach-ordering .beach-field select,
.beach-ordering .beach-field input[type="text"],
.beach-ordering .beach-field input[type="email"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d4e2ea;
	border-radius: 10px;
	background: #f9fcfd;
	font-size: 0.95rem;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.beach-ordering .beach-field select:focus,
.beach-ordering .beach-field input:focus {
	outline: none;
	border-color: var(--beach-primary);
	box-shadow: 0 0 0 3px var(--beach-primary-soft);
	background: #fff;
}

/* ---- Toolbar & search ---- */
.beach-ordering .beach-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.beach-ordering .beach-search-wrap {
	flex: 1 1 240px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 1rem;
	background: #f4f9fb;
	border: 1px solid #d4e2ea;
	border-radius: 999px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.beach-ordering .beach-search-wrap:focus-within {
	border-color: var(--beach-primary);
	box-shadow: 0 0 0 3px var(--beach-primary-soft);
	background: #fff;
}

.beach-ordering .beach-search-icon {
	color: #8aa3b0;
	font-size: 1.1rem;
}

.beach-ordering .beach-search {
	flex: 1;
	padding: 0.6rem 0;
	border: none;
	background: transparent;
	font-size: 0.95rem;
}

.beach-ordering .beach-search:focus {
	outline: none;
}

.beach-ordering .beach-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.beach-ordering .beach-filter-tab {
	padding: 0.5rem 1rem;
	border: 1px solid #d4e2ea;
	border-radius: 999px;
	background: #fff;
	color: #4a6272;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s ease;
}

.beach-ordering .beach-filter-tab.is-active,
.beach-ordering .beach-filter-tab:hover {
	background: var(--beach-primary);
	border-color: var(--beach-primary);
	color: #fff;
}

/* ---- Product scroll ---- */
.beach-ordering .beach-hidden,
.beach-ordering .beach-product-card.is-filtered-out {
	display: none !important;
}

.beach-ordering .beach-scroll-wrap {
	position: relative;
	margin: 0 -0.5rem;
}

.beach-ordering .beach-scroll-wrap::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 12px;
	width: 48px;
	background: linear-gradient(to right, transparent, #fff);
	pointer-events: none;
	border-radius: 0 16px 0 0;
}

.beach-ordering .beach-product-scroll {
	display: flex;
	gap: 1.1rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.25rem 0.5rem 1.25rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #94b4c4 transparent;
	min-height: 300px;
}

.beach-ordering .beach-product-scroll::-webkit-scrollbar {
	height: 6px;
}

.beach-ordering .beach-product-scroll::-webkit-scrollbar-thumb {
	background: #94b4c4;
	border-radius: 999px;
}

/* ---- Product cards ---- */
.beach-ordering .beach-product-card {
	position: relative;
	flex: 0 0 240px;
	width: 240px;
	display: flex;
	flex-direction: column;
	padding: 0;
	background: #fff;
	border: 2px solid #e8f0f4;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	scroll-snap-align: start;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	box-shadow: 0 2px 12px rgba(26, 58, 74, 0.06);
}

.beach-ordering .beach-product-card:hover {
	border-color: #e889ad;
	box-shadow: 0 12px 32px rgba(207, 42, 107, 0.18);
	transform: translateY(-3px);
}

.beach-ordering .beach-product-card.is-selected {
	border-color: var(--beach-primary);
	box-shadow: 0 0 0 1px var(--beach-primary), 0 12px 32px rgba(207, 42, 107, 0.22);
}

.beach-ordering .beach-card-check {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	z-index: 2;
	width: 26px;
	height: 26px;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.15s ease;
}

.beach-ordering .beach-product-card.is-selected .beach-card-check {
	border-color: #fff;
	background: var(--beach-primary);
	box-shadow: inset 0 0 0 3px #fff, 0 2px 8px var(--beach-primary-glow);
}

.beach-ordering .beach-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(145deg, #e8f2f6, #dce8ee);
}

.beach-ordering .beach-product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.beach-ordering .beach-product-card:hover .beach-product-image {
	transform: scale(1.05);
}

.beach-ordering .beach-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 0.9rem 0.95rem;
	flex: 1;
}

.beach-ordering .beach-product-name {
	font-weight: 700;
	line-height: 1.3;
	font-size: 0.92rem;
	color: #143040;
	padding-right: 1.25rem;
}

.beach-ordering .beach-product-meta {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--beach-primary);
}

.beach-ordering .beach-product-price {
	font-size: 1rem;
	color: #143040;
	font-weight: 700;
	margin-top: auto;
	padding-top: 0.35rem;
}

.beach-ordering .beach-details-link {
	display: inline-flex;
	align-items: center;
	margin-top: 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--beach-primary);
	text-decoration: none;
}

.beach-ordering .beach-details-link::after {
	content: ' →';
}

/* ---- Selected food panels ---- */
.beach-ordering .beach-selected-panels {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.75rem;
	min-width: 0;
}

.beach-ordering .beach-food-panel {
	padding: 1rem 1.1rem;
	background: #fdf5f8;
	border: 1px solid #f3d4e0;
	border-radius: 12px;
	border-left: 4px solid var(--beach-primary);
	min-width: 0;
	overflow: hidden;
}

.beach-ordering .beach-panel-field {
	display: block;
	margin-top: 0.65rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #3d5566;
}

.beach-ordering .beach-panel-field input {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid #d4e2ea;
	border-radius: 8px;
	font-weight: 400;
	box-sizing: border-box;
}

.beach-ordering .beach-panel-label {
	display: block;
	margin-top: 0.65rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #5a7282;
}

.beach-ordering .beach-addon-scroll-wrap {
	margin: 0.45rem -0.35rem 0;
	max-width: calc(100% + 0.7rem);
}

.beach-ordering .beach-addon-scroll-wrap::after {
	background: linear-gradient(to right, transparent, #fdf5f8);
	bottom: 8px;
	width: 40px;
}

.beach-ordering .beach-addon-scroll.beach-product-scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	max-height: none;
	gap: 0.65rem;
	padding: 0.15rem 0.35rem 0.85rem;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.beach-ordering .beach-addon-scroll {
	margin-top: 0;
}

.beach-ordering .beach-product-card.beach-addon-card {
	flex: 0 0 132px;
	width: 132px;
	min-width: 132px;
	min-height: 0;
	flex-shrink: 0;
}

.beach-ordering .beach-product-card.beach-addon-card:hover {
	transform: none;
}

.beach-ordering .beach-addon-card .beach-card-media {
	aspect-ratio: auto;
	height: 4.5rem;
}

.beach-ordering .beach-addon-card .beach-product-image {
	height: 100%;
}

.beach-ordering .beach-addon-card .beach-card-body {
	padding: 0.65rem 0.7rem 0.75rem;
	gap: 0.15rem;
}

.beach-ordering .beach-addon-card .beach-product-name {
	font-size: 0.78rem;
	line-height: 1.25;
	padding-right: 1.35rem;
	word-break: break-word;
}

.beach-ordering .beach-addon-card .beach-product-price {
	font-size: 0.82rem;
	margin-top: 0.15rem;
	padding-top: 0;
	white-space: nowrap;
}

.beach-ordering .beach-addon-card .beach-card-check {
	top: 0.4rem;
	right: 0.4rem;
	width: 22px;
	height: 22px;
}

.beach-ordering .beach-addon-none.beach-addon-card {
	flex: 0 0 96px;
	width: 96px;
	min-width: 96px;
}

.beach-ordering .beach-addon-none .beach-card-body {
	justify-content: center;
	min-height: 4.5rem;
	padding: 0.65rem 0.55rem;
}

.beach-ordering .beach-addon-none .beach-product-name {
	font-size: 0.82rem;
	padding-right: 0;
}

.beach-ordering .beach-addon-none .beach-product-meta {
	font-size: 0.68rem;
}

.beach-ordering .beach-addon-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.45rem;
}

.beach-ordering .beach-chip {
	padding: 0.4rem 0.85rem;
	border: 1px solid #d4e2ea;
	border-radius: 999px;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.beach-ordering .beach-chip.is-active {
	background: var(--beach-primary);
	border-color: var(--beach-primary);
	color: #fff;
}

.beach-ordering .beach-empty-menu {
	margin: 0;
	padding: 1.25rem;
	background: #f9fcfd;
	border: 1px dashed #c5d6e0;
	border-radius: 12px;
	color: #6b8494;
	font-size: 0.9rem;
	text-align: center;
}

/* ---- Summary ---- */
.beach-ordering .beach-summary {
	background: linear-gradient(135deg, var(--beach-primary) 0%, var(--beach-primary-darker) 100%);
	border: none;
	color: #fff;
}

.beach-ordering .beach-summary .beach-step {
	background: #fff;
	color: var(--beach-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.beach-ordering .beach-summary .beach-section-head h3,
.beach-ordering .beach-summary .beach-section-note {
	color: rgba(255, 255, 255, 0.92);
}

.beach-ordering .beach-summary .beach-section-note {
	opacity: 0.75;
}

.beach-ordering #beach-summary-lines {
	list-style: none;
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
}

.beach-ordering #beach-summary-lines li {
	display: flex;
	justify-content: space-between;
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.92rem;
}

.beach-ordering #beach-summary-lines li:last-child {
	border-bottom: none;
}

.beach-ordering #beach-summary-lines li.beach-empty {
	justify-content: center;
	opacity: 0.65;
	border-bottom: none;
}

.beach-ordering .beach-total-line {
	font-size: 1.35rem;
	font-weight: 700;
	text-align: right;
	margin: 0 0 1.25rem;
	color: #fff;
}

.beach-ordering .beach-summary .beach-btn {
	background: #fff;
	color: var(--beach-primary);
	font-size: 1.05rem;
	padding: 0.95rem 1.25rem;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.beach-ordering .beach-summary .beach-btn:hover {
	background: #fff5f8;
	color: var(--beach-primary-dark);
}

.beach-ordering .beach-summary .beach-note {
	color: rgba(255, 255, 255, 0.6);
}

.beach-ordering .beach-btn {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--beach-primary);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.beach-ordering .beach-btn:hover {
	background: var(--beach-primary-dark);
}

.beach-ordering .beach-btn:disabled {
	background: #94b4c4;
	cursor: default;
	transform: none;
}

.beach-ordering .beach-note {
	text-align: center;
	font-size: 0.82rem;
	margin: 0.75rem 0 0;
}

.beach-ordering .beach-error {
	margin-top: 0.85rem;
	padding: 0.75rem 1rem;
	background: rgba(254, 226, 226, 0.95);
	border: 1px solid #fca5a5;
	color: #991b1b;
	border-radius: 10px;
	font-size: 0.9rem;
}

/* ---- Modal ---- */
.beach-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.beach-modal.beach-hidden {
	display: none;
}

.beach-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(140, 26, 71, 0.55);
	backdrop-filter: blur(4px);
}

.beach-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	max-height: 92vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 32px 64px rgba(20, 48, 64, 0.35);
}

.beach-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.85rem;
	z-index: 3;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #143040;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.beach-modal-media {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8f2f6;
}

.beach-modal-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.beach-modal-body {
	padding: 1.35rem 1.5rem 1.5rem;
	overflow-y: auto;
}

.beach-modal-body h4 {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #143040;
}

.beach-modal-price {
	margin: 0 0 0.85rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--beach-primary);
}

.beach-modal-desc {
	margin: 0 0 1rem;
	line-height: 1.6;
	color: #4a6272;
	font-size: 0.95rem;
}

.beach-modal-link {
	display: inline-block;
	margin-bottom: 1.1rem;
	color: var(--beach-primary);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.beach-modal-link:hover {
	text-decoration: underline;
}

.beach-modal-select {
	width: 100%;
}

body.beach-modal-open {
	overflow: hidden;
}

/* ---- Mobile: balanced spacing + larger cards ---- */
@media (max-width: 767px) {
	.beach-ordering-shell {
		border-radius: 16px;
		padding: 1rem;
		margin-bottom: 0.5rem;
		box-shadow: 0 8px 28px rgba(207, 42, 107, 0.07);
	}

	.beach-ordering .beach-hero {
		padding: 0.25rem 0 1.35rem;
	}

	.beach-ordering .beach-section {
		padding: 1.1rem 1rem;
		border-radius: 14px;
		margin-bottom: 1rem;
	}

	.beach-ordering .beach-section-head {
		gap: 0.75rem;
		margin-bottom: 0.85rem;
	}

	.beach-ordering .beach-toolbar {
		margin-bottom: 0.75rem;
	}

	.beach-ordering .beach-search-wrap {
		padding: 0 0.85rem;
	}

	.beach-ordering .beach-scroll-wrap {
		margin: 0;
	}

	.beach-ordering .beach-scroll-wrap::after {
		width: 36px;
	}

	.beach-ordering .beach-product-scroll {
		padding: 0.25rem 0 1rem;
		min-height: 320px;
		gap: 0.85rem;
	}

	.beach-ordering .beach-product-card {
		flex: 0 0 min(68vw, 280px);
		width: min(68vw, 280px);
	}

	.beach-ordering .beach-product-card.beach-addon-card {
		flex: 0 0 118px;
		width: 118px;
		min-width: 118px;
	}

	.beach-ordering .beach-product-card.beach-addon-none {
		flex: 0 0 88px;
		width: 88px;
		min-width: 88px;
	}

	.beach-ordering .beach-addon-scroll.beach-product-scroll {
		min-height: 0;
		padding-bottom: 0.75rem;
	}

	.beach-ordering .beach-addon-scroll-wrap {
		margin-left: -0.25rem;
		margin-right: -0.25rem;
		max-width: calc(100% + 0.5rem);
	}

	.beach-ordering .beach-card-media {
		aspect-ratio: 1 / 1;
	}

	.beach-ordering .beach-card-body {
		padding: 0.8rem 0.85rem 0.9rem;
	}

	.beach-ordering .beach-product-name {
		font-size: 1rem;
	}

	.beach-ordering .beach-product-price {
		font-size: 1.05rem;
	}

	.beach-ordering .beach-food-panel {
		padding: 0.9rem 0.85rem;
	}

	.beach-ordering .beach-summary {
		border-radius: 14px;
	}

	.beach-modal {
		padding: 1rem;
	}

	.beach-modal-dialog {
		width: 100%;
		max-height: 94vh;
		border-radius: 16px;
	}
}
