/* WC Easy Booking — front end. Everything is scoped to .wceb-* so it can't clash with Elementor / the theme.
   Fonts inherit from the theme (Hello Elementor + Elementor global fonts). */

.wceb-services,
.wceb-modal {
	--wceb-primary: #12357f;
	--wceb-accent: #e11d35;
	--wceb-text: #0b1b33;
	--wceb-muted: #5b6577;
	--wceb-line: #cdd8ea;
	--wceb-soft: #f3f6fb;
	--wceb-card: #ffffff;
	--wceb-shadow: 0 10px 30px rgba(18, 53, 127, .10);
	--wceb-radius: 2px;
	color: var(--wceb-text);
	-webkit-font-smoothing: antialiased;
}
.wceb-services *, .wceb-services *::before, .wceb-services *::after,
.wceb-modal *, .wceb-modal *::before, .wceb-modal *::after { box-sizing: border-box; }
.wceb-empty { padding: 16px; border: 1px dashed #c3c4c7; }

/* ---------------------------------------------------------------------
 * Toolbar (title + sort)
 * ------------------------------------------------------------------ */
.wceb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.wceb-services-title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; color: var(--wceb-text); }
.wceb-sort { display: flex; align-items: center; gap: 12px; margin: 0 0 0 auto; font-weight: 600; font-size: 15px; color: var(--wceb-text); }
.wceb-sort-select {
	min-width: 170px; height: 44px; padding: 0 38px 0 14px; margin: 0;
	font: inherit; font-weight: 500; color: var(--wceb-text);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1b33' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--wceb-line); border-radius: var(--wceb-radius);
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.wceb-sort-select:focus { outline: 2px solid var(--wceb-primary); outline-offset: 1px; }

/* ---------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------ */
.wceb-cards { display: grid; grid-template-columns: repeat(var(--wceb-cols, 3), minmax(0, 1fr)); gap: 24px; }
.wceb-card[hidden] { display: none !important; }
.wceb-card {
	display: flex; flex-direction: column; min-width: 0;
	background: var(--wceb-card); box-shadow: var(--wceb-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.wceb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 53, 127, .16); }
.wceb-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #2b3d5a, #b59a76); }
.wceb-card-media img, .wceb-card-img-el { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; margin: 0; transition: transform .5s ease; }
.wceb-card:hover .wceb-card-media img { transform: scale(1.04); }
.wceb-card-ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--wceb-primary), #8aa3d6); opacity: .85; }
.wceb-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px 28px 30px; }
.wceb-card-title { margin: 0 0 16px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--wceb-text); letter-spacing: -.01em; }
.wceb-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 18px; font-weight: 700; color: var(--wceb-accent); line-height: 1.3; }
.wceb-card-meta .amount, .wceb-card-meta bdi, .wceb-card-meta ins { color: inherit; background: none; text-decoration: none; }
.wceb-card-meta del { color: var(--wceb-muted); font-weight: 400; opacity: .8; margin-right: 4px; }
.wceb-card-sep { width: 1px; height: 16px; background: var(--wceb-muted); opacity: .6; }
.wceb-card-btn {
	margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 30px; border: 0; border-radius: var(--wceb-radius);
	background: var(--wceb-primary); color: #fff; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wceb-card-btn:hover { background: var(--wceb-accent); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.wceb-card-btn:focus-visible { outline: 3px solid var(--wceb-accent); outline-offset: 3px; }

/* ---------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------ */
.wceb-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.wceb-pager[hidden] { display: none; }
.wceb-page {
	min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: var(--wceb-radius);
	background: #fff; color: var(--wceb-text); cursor: pointer;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
	box-shadow: 0 2px 8px rgba(18, 53, 127, .06); transition: background-color .2s, color .2s;
}
.wceb-page-arrow { font-size: 20px; }
.wceb-page:hover:not(:disabled):not(.is-current) { background: var(--wceb-primary); color: #fff; }
.wceb-page.is-current { background: var(--wceb-accent); color: #fff; cursor: default; }
.wceb-page:disabled:not(.is-current) { opacity: .45; cursor: not-allowed; background: var(--wceb-soft); }
.wceb-page:focus-visible { outline: 2px solid var(--wceb-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------------
 * Slider
 * ------------------------------------------------------------------ */
.wceb-slider { position: relative; }
.wceb-track {
	display: grid; grid-auto-flow: column; gap: 24px;
	grid-auto-columns: calc((100% - 24px * (var(--wceb-cols, 3) - 1)) / var(--wceb-cols, 3));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 2px 30px; margin: -6px -2px -30px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wceb-track::-webkit-scrollbar { display: none; }
.wceb-track:focus-visible { outline: 2px solid var(--wceb-primary); outline-offset: 4px; }
.wceb-track > .wceb-card { scroll-snap-align: start; }
.wceb-track > .wceb-card:hover { transform: none; }
.wceb-arrow {
	position: absolute; top: 32%; z-index: 2; width: 48px; height: 48px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: #fff; color: var(--wceb-primary); cursor: pointer;
	box-shadow: 0 8px 24px rgba(11, 27, 51, .18); transition: background-color .2s, color .2s, opacity .2s;
}
.wceb-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wceb-arrow:hover:not(:disabled) { background: var(--wceb-primary); color: #fff; }
.wceb-arrow:disabled { opacity: 0; pointer-events: none; }
.wceb-arrow:focus-visible { outline: 3px solid var(--wceb-accent); outline-offset: 2px; }
.wceb-prev { left: -24px; }
.wceb-next { right: -24px; }
.wceb-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; min-height: 10px; }
.wceb-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: var(--wceb-line); cursor: pointer; transition: width .25s, background-color .25s; }
.wceb-dot.is-active { width: 30px; background: var(--wceb-accent); }
.wceb-dot:focus-visible { outline: 2px solid var(--wceb-primary); outline-offset: 2px; }
.wceb-layout-slider.is-static .wceb-arrow { display: none; }

/* ---------------------------------------------------------------------
 * Popup
 * ------------------------------------------------------------------ */
html.wceb-lock, html.wceb-lock body { overflow: hidden !important; }
.wceb-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; padding: 24px;
	font-size: 16px; line-height: 1.5; opacity: 0; transition: opacity .22s ease;
}
.wceb-modal[hidden] { display: none !important; }
.wceb-modal.is-open { opacity: 1; }
.wceb-overlay { position: absolute; inset: 0; background: rgba(8, 20, 43, .62); }
.wceb-dialog {
	position: relative; width: 100%; max-width: 640px;
	max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; padding: 40px 40px 44px; outline: none;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	transform: translateY(18px); transition: transform .22s ease;
}
.wceb-modal.is-open .wceb-dialog { transform: none; }
.wceb-close {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: transparent; color: var(--wceb-text); cursor: pointer; border-radius: 50%;
	transition: background-color .2s;
}
.wceb-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.wceb-close:hover { background: var(--wceb-soft); }
.wceb-close:focus-visible { outline: 2px solid var(--wceb-primary); }

.wceb-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wceb-accent); }
.wceb-dialog-title { margin: 0 0 10px; padding-right: 28px; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--wceb-text); }
.wceb-dialog-sub { margin: 0 0 26px; font-size: 16px; color: var(--wceb-muted); }

.wceb-form { display: grid; gap: 22px; margin: 0; }
.wceb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wceb-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.wceb-field > label, .wceb-label {
	margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wceb-text); line-height: 1.2;
}
.wceb-field > label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--wceb-muted); }

.wceb-modal input[type="text"], .wceb-modal input[type="tel"], .wceb-modal input[type="email"], .wceb-modal input[type="date"], .wceb-modal select {
	width: 100%; height: 56px; margin: 0; padding: 0 18px;
	font: inherit; font-size: 16px; color: var(--wceb-text); line-height: normal;
	background: #fff; border: 1px solid var(--wceb-line); border-radius: var(--wceb-radius); box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.wceb-modal input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; display: block; }
.wceb-modal input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.wceb-modal input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }
.wceb-select-wrap { position: relative; }
.wceb-modal select {
	padding-right: 44px; cursor: pointer; text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1b33' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.wceb-modal input:focus, .wceb-modal select:focus { outline: none; border-color: var(--wceb-primary); box-shadow: 0 0 0 3px rgba(18, 53, 127, .14); }
.wceb-modal .is-invalid { border-color: var(--wceb-accent) !important; box-shadow: 0 0 0 3px rgba(225, 29, 53, .14) !important; }

.wceb-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 48px; }
.wceb-time {
	height: 42px; padding: 0 4px; margin: 0;
	border: 1px solid var(--wceb-line); border-radius: var(--wceb-radius); background: #fff; color: var(--wceb-text);
	font: inherit; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.wceb-time:hover:not(:disabled) { border-color: var(--wceb-primary); color: var(--wceb-primary); }
.wceb-time.is-selected, .wceb-time.is-selected:hover { background: var(--wceb-primary); border-color: var(--wceb-primary); color: #fff; }
.wceb-time:disabled { background: var(--wceb-soft); color: #a3acbb; text-decoration: line-through; cursor: not-allowed; }
.wceb-time:focus-visible { outline: 2px solid var(--wceb-accent); outline-offset: 2px; }
.wceb-hint { grid-column: 1 / -1; margin: 0; padding: 13px 16px; font-size: 14px; color: var(--wceb-muted); background: var(--wceb-soft); border: 1px dashed var(--wceb-line); }
.wceb-hint.is-warn { color: #9a1a2a; background: #fff3f4; border-color: #f4c3c9; }
.wceb-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wceb-skeleton span { height: 42px; background: linear-gradient(90deg, #eef2f8 25%, #f8fafd 50%, #eef2f8 75%); background-size: 200% 100%; animation: wceb-shimmer 1.1s infinite linear; }
@keyframes wceb-shimmer { to { background-position: -200% 0; } }

.wceb-error { margin: 0; color: var(--wceb-accent); font-size: 14px; font-weight: 600; }
.wceb-error:empty { display: none; }

.wceb-submit {
	justify-self: start; position: relative; min-height: 56px; padding: 0 36px; margin: 2px 0 0;
	border: 0; border-radius: var(--wceb-radius); background: var(--wceb-accent); color: #fff; cursor: pointer;
	font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	transition: filter .2s, box-shadow .2s;
}
.wceb-submit:hover { filter: brightness(.92); box-shadow: 0 10px 22px rgba(225, 29, 53, .28); }
.wceb-submit:focus-visible { outline: 3px solid var(--wceb-primary); outline-offset: 3px; }
.wceb-submit:disabled { cursor: wait; }
.wceb-submit.is-loading span { visibility: hidden; }
.wceb-submit.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
	border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: wceb-spin .7s linear infinite;
}
@keyframes wceb-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.wceb-cards { grid-template-columns: repeat(min(var(--wceb-cols, 3), 2), minmax(0, 1fr)); }
	.wceb-layout-slider { --wceb-cols: 2 !important; }
	.wceb-prev { left: -12px; }
	.wceb-next { right: -12px; }
	.wceb-card-body { padding: 24px; }
}
@media (max-width: 640px) {
	.wceb-cards { grid-template-columns: 1fr; gap: 20px; }
	.wceb-layout-slider { --wceb-cols: 1 !important; }
	.wceb-track { grid-auto-columns: 86%; gap: 16px; }
	.wceb-arrow { width: 40px; height: 40px; top: 28%; }
	.wceb-prev { left: 4px; }
	.wceb-next { right: 4px; }
	.wceb-toolbar { margin-bottom: 18px; }
	.wceb-sort { margin-left: 0; width: 100%; justify-content: space-between; }
	.wceb-sort-select { flex: 1; min-width: 0; }
	.wceb-card-title { font-size: 20px; }
	.wceb-card-btn { width: 100%; }

	.wceb-modal { padding: 0; align-items: flex-end; }
	.wceb-dialog { max-width: none; max-height: 94vh; max-height: 94dvh; padding: 30px 18px 26px; border-radius: 16px 16px 0 0; transform: translateY(40px); }
	.wceb-row { grid-template-columns: 1fr; gap: 22px; }
	.wceb-times, .wceb-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.wceb-time { font-size: 13px; }
	.wceb-submit { justify-self: stretch; }
}
@media (max-width: 360px) {
	.wceb-times, .wceb-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.wceb-modal, .wceb-dialog, .wceb-card, .wceb-card-media img, .wceb-track { transition: none; scroll-behavior: auto; }
	.wceb-skeleton span { animation: none; }
}
