/* NexaBooking — public booking widget styles
   Palette: clinical but warm — deep teal primary, soft mint surfaces, warm ink text.
   --nb-primary:   #0F6E63 (deep teal)
   --nb-primary-d: #0B534A (darker teal, hover)
   --nb-accent:    #F2A65A (warm amber — used sparingly for the price/CTA emphasis)
   --nb-bg:        #FAFAF8 (warm off-white)
   --nb-surface:   #FFFFFF
   --nb-ink:       #1E2A28
   --nb-ink-soft:  #5B6864
   --nb-line:      #E4E7E5
*/

.nexabooking-open-btn {
	--nb-primary: #0F6E63;
	--nb-primary-d: #0B534A;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--nb-primary);
	color: #fff;
	border: none;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}
.nexabooking-open-btn:hover { background: var(--nb-primary-d); }
.nexabooking-open-btn:active { transform: translateY(1px); }

/* Add this SECOND class alongside nexabooking-open-btn when attaching the
   trigger to an already-styled custom button (Elementor, theme button, etc.)
   so none of the default look above is applied — only the click-to-open
   behavior. Example: class="nexabooking-open-btn nexabooking-btn-unstyled" */
.nexabooking-open-btn.nexabooking-btn-unstyled {
	background: transparent !important;
	color: inherit !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	font: inherit !important;
	box-shadow: none !important;
}
.nexabooking-open-btn.nexabooking-btn-unstyled:hover,
.nexabooking-open-btn.nexabooking-btn-unstyled:active {
	background: transparent !important;
	transform: none !important;
}

.nexabooking-overlay {
	--nb-primary: #0F6E63;
	--nb-primary-d: #0B534A;
	--nb-accent: #F2A65A;
	--nb-bg: #FAFAF8;
	--nb-surface: #FFFFFF;
	--nb-ink: #1E2A28;
	--nb-ink-soft: #5B6864;
	--nb-line: #E4E7E5;

	position: fixed;
	inset: 0;
	background: rgba(20, 30, 28, .55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.nexabooking-overlay.is-open { display: flex; }

.nexabooking-modal {
	background: var(--nb-surface);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	animation: nexabooking-pop .18s ease;
}
@keyframes nexabooking-pop {
	from { transform: scale(.96); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.nexabooking-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--nb-line);
}

.nexabooking-steps { display: flex; gap: 8px; }
.nexabooking-step {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--nb-line);
	color: var(--nb-ink-soft);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nexabooking-step.active { background: var(--nb-primary); color: #fff; }
.nexabooking-step.done { background: var(--nb-primary-d); color: #fff; }

.nexabooking-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--nb-ink-soft);
	cursor: pointer;
	padding: 4px 8px;
}
.nexabooking-close:hover { color: var(--nb-ink); }

.nexabooking-modal-body {
	padding: 22px 20px;
	overflow-y: auto;
	flex: 1;
	color: var(--nb-ink);
}

.nexabooking-step-title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--nb-ink);
}
.nexabooking-step-subtitle {
	font-size: 13.5px;
	color: var(--nb-ink-soft);
	margin: 0 0 18px;
}

.nexabooking-list { display: flex; flex-direction: column; gap: 10px; }
.nexabooking-option {
	border: 1.5px solid var(--nb-line);
	border-radius: 10px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.nexabooking-option:hover { border-color: var(--nb-primary); background: #F4FAF9; }
.nexabooking-option.is-selected { border-color: var(--nb-primary); background: #EAF6F4; }
.nexabooking-option-main { flex: 1; }
.nexabooking-option-title { font-weight: 600; font-size: 15px; margin: 0 0 3px; }
.nexabooking-option-desc { font-size: 12.5px; color: var(--nb-ink-soft); margin: 0; }
.nexabooking-option-meta { font-size: 12.5px; color: var(--nb-ink-soft); white-space: nowrap; }
.nexabooking-option-price { font-weight: 700; color: var(--nb-primary-d); font-size: 15px; white-space: nowrap; }

.nexabooking-date-row { display: flex; gap: 10px; margin-bottom: 16px; }
.nexabooking-date-row input[type="date"] {
	flex: 1;
	padding: 10px 12px;
	border: 1.5px solid var(--nb-line);
	border-radius: 8px;
	font-size: 14px;
}

.nexabooking-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}
.nexabooking-slot {
	border: 1.5px solid var(--nb-line);
	border-radius: 8px;
	padding: 9px 6px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	background: var(--nb-surface);
	color: var(--nb-ink);
}
.nexabooking-slot:hover { border-color: var(--nb-primary); }
.nexabooking-slot.is-selected { background: var(--nb-primary); border-color: var(--nb-primary); color: #fff; }

.nexabooking-empty-msg {
	text-align: center;
	color: var(--nb-ink-soft);
	font-size: 13.5px;
	padding: 24px 10px;
}

.nexabooking-field { margin-bottom: 14px; }
.nexabooking-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--nb-ink);
}
.nexabooking-field input, .nexabooking-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--nb-line);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}
.nexabooking-field textarea { resize: vertical; min-height: 70px; }

.nexabooking-payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.nexabooking-payment-option {
	border: 1.5px solid var(--nb-line);
	border-radius: 10px;
	padding: 14px 16px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.nexabooking-payment-option.is-selected { border-color: var(--nb-accent); background: #FFF7EC; }
.nexabooking-payment-option-label { font-weight: 600; font-size: 14.5px; }
.nexabooking-payment-option-sub { font-size: 12px; color: var(--nb-ink-soft); margin-top: 2px; }
.nexabooking-payment-option-amount { font-weight: 700; font-size: 16px; color: var(--nb-accent); }

.nexabooking-summary-box {
	background: #F4FAF9;
	border: 1px solid var(--nb-line);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.7;
	margin-bottom: 16px;
}
.nexabooking-summary-box strong { color: var(--nb-ink); }

.nexabooking-modal-footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--nb-line);
}
.nexabooking-btn {
	border: none;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.nexabooking-btn-primary { background: var(--nb-primary); color: #fff; margin-left: auto; }
.nexabooking-btn-primary:hover { background: var(--nb-primary-d); }
.nexabooking-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.nexabooking-btn-secondary { background: transparent; color: var(--nb-ink-soft); border: 1.5px solid var(--nb-line); }

.nexabooking-error-msg {
	background: #FDEDEC;
	color: #A6342A;
	border: 1px solid #F3C9C4;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 14px;
}

.nexabooking-loading-spinner {
	width: 22px; height: 22px;
	border: 3px solid var(--nb-line);
	border-top-color: var(--nb-primary);
	border-radius: 50%;
	animation: nexabooking-spin .7s linear infinite;
	margin: 30px auto;
}
@keyframes nexabooking-spin { to { transform: rotate(360deg); } }

/* [nexabooking_form] inline widget — same wizard, no overlay/close button, always visible in page flow */
.nexabooking-inline-widget {
	--nb-primary: #0F6E63;
	--nb-primary-d: #0B534A;
	--nb-accent: #F2A65A;
	--nb-bg: #FAFAF8;
	--nb-surface: #FFFFFF;
	--nb-ink: #1E2A28;
	--nb-ink-soft: #5B6864;
	--nb-line: #E4E7E5;

	background: var(--nb-surface);
	border: 1px solid var(--nb-line);
	border-radius: 14px;
	max-width: 560px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.nexabooking-inline-steps { padding: 18px 20px 0; }
.nexabooking-inline-body { padding: 18px 20px 22px; }
.nexabooking-inline-footer { border-top: 1px solid var(--nb-line); }

@media (max-width: 480px) {
	.nexabooking-modal { max-width: 100%; max-height: 100vh; border-radius: 0; }
	.nexabooking-slots-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.nexabooking-modal { animation: none; }
	.nexabooking-loading-spinner { animation: none; }
}
