/**
 * FashionPoint Booking - Category Toggles & Layout Styles
 *
 * @since 2.5.0
 */

/* ==========================================================================
	Drag Scrolling
	========================================================================== */

.fp-booking .categories-scroll-container.dragging {
	scroll-behavior: auto;
	cursor: grabbing;
}

.fp-booking .categories-scroll-container.dragging .category-card {
	cursor: grabbing;
	pointer-events: none;
}

/* Category type toggle (services / packages) */
.fp-booking .step-intro {
	padding: 0;
	margin-bottom: 24px;
}

@media (max-width: 767px) {
	.fp-booking .step-intro {
		padding: 0;
	}
}

@media (min-width: 768px) {
	.fp-booking .step-intro {
		padding: 0;
	}
}

.fp-booking .category-toggle-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 8px;
	margin-top: 0;
	position: relative;
	z-index: 5;
	pointer-events: auto !important;
}

.fp-booking .category-toggle {
	display: inline-flex;
	gap: 16px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	border: none;
	box-shadow: none;
	position: relative;
	z-index: 20;
	pointer-events: auto !important;
	flex-wrap: wrap;
	justify-content: center;
}

.fp-booking .category-toggle::before,
.fp-booking .category-toggle::after {
	content: none !important;
	background: transparent !important;
	display: none !important;
}

.fp-booking .category-toggle .toggle-btn,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 160px;
	height: 160px;
	border-radius: 21px !important;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 2px solid #e5e7eb;
	background: #fff;
	color: #374151;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
	pointer-events: auto !important;
	z-index: 10;
}

.fp-booking .category-toggle .toggle-btn svg,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn svg {
	stroke: currentColor;
	width: 52px;
	height: 52px;
	transition: all 0.25s ease;
}

.fp-booking .fashionpoint-type-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

.fp-booking .fashionpoint-type-toggle-label {
	white-space: nowrap;
	font-weight: 700;
	font-size: inherit;
	letter-spacing: inherit;
}

.fp-booking .category-toggle .toggle-btn::before,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn::before {
	content: none !important;
	background: transparent !important;
	display: none !important;
}

.fp-booking .category-toggle .toggle-btn::after,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn::after {
	content: none !important;
	background: transparent !important;
	display: none !important;
}

.fp-booking .category-toggle .toggle-btn:hover:not(.is-active):not(.active),
.fp-booking .category-toggle .fashionpoint-type-toggle-btn:hover:not(.is-active):not(.active) {
	border-color: var(--fp-primary);
	background: #fafafa;
	color: var(--fp-primary);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
}

/* Default theme uses gradient */
.fp-booking .category-selection {
	--fp-primary: #667eea;
	--fp-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fp-booking .category-toggle .toggle-btn.is-active,
.fp-booking .category-toggle .toggle-btn.active,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn.is-active,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn.active {
	background: var(--fp-gradient) !important;
	color: #ffffff !important;
	border-color: var(--fp-primary) !important;
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3) !important;
}

.fp-booking .category-toggle .toggle-btn.is-active svg,
.fp-booking .category-toggle .toggle-btn.active svg,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn.is-active svg,
.fp-booking .category-toggle .fashionpoint-type-toggle-btn.active svg {
	color: #ffffff !important;
	stroke: #ffffff !important;
}

/* ── Theme: Premium Gold ────────────────────────────────── */
.fp-booking .category-selection.theme-premium-gold {
	--fp-primary: #d4af37;
	--fp-secondary: #c19d2e;
	--fp-border: #e8dfc8;
	--fp-gradient: linear-gradient(135deg, #d4af37 0%, #c19d2e 100%);
}

.fp-booking .category-selection.theme-premium-gold .category-toggle .toggle-btn,
.fp-booking .category-selection.theme-premium-gold .category-toggle .fashionpoint-type-toggle-btn {
	background: #ffffff;
	border: 2px solid var(--fp-border);
	color: #2a2520;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.fp-booking .category-selection.theme-premium-gold .category-toggle .toggle-btn:hover:not(.is-active):not(.active),
.fp-booking .category-selection.theme-premium-gold .category-toggle .fashionpoint-type-toggle-btn:hover:not(.is-active):not(.active) {
	border-color: var(--fp-primary);
	background: #f9f4e7;
	color: #2a2520;
}

.fp-booking .category-selection.theme-premium-gold .category-toggle .toggle-btn.is-active,
.fp-booking .category-selection.theme-premium-gold .category-toggle .toggle-btn.active,
.fp-booking .category-selection.theme-premium-gold .category-toggle .fashionpoint-type-toggle-btn.is-active,
.fp-booking .category-selection.theme-premium-gold .category-toggle .fashionpoint-type-toggle-btn.active {
	background: #d4af37 !important;
	color: #ffffff !important;
	border-color: var(--fp-primary) !important;
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
}

/* Desktop: full-width category sections for Premium Gold */
@media (min-width: 1024px) {
	/* High-specificity: stretch premium gold category sections full width */
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section,
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section {
		width: 100% !important;
		max-width: none !important;
		margin: 0 auto !important;
		box-sizing: border-box;
	}

	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-header,
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-body {
		width: 100% !important;
		box-sizing: border-box;
	}
}

/* ── Theme: Premium Black ───────────────────────────────── */
.fp-booking .category-selection.theme-premium-black {
	--fp-primary: #c9963a;
	--fp-secondary: #b97b12;
	--fp-border: #e2d7c0;
	--fp-gradient: linear-gradient(135deg, #c9963a 0%, #b97b12 100%);
}

.fp-booking .category-selection.theme-premium-black .category-toggle .toggle-btn,
.fp-booking .category-selection.theme-premium-black .category-toggle .fashionpoint-type-toggle-btn {
	background: #faf9f7;
	border: 2px solid var(--fp-border);
	color: #2a2520;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.fp-booking .category-selection.theme-premium-black .category-toggle .toggle-btn:hover:not(.is-active):not(.active),
.fp-booking .category-selection.theme-premium-black .category-toggle .fashionpoint-type-toggle-btn:hover:not(.is-active):not(.active) {
	border-color: var(--fp-primary);
	background: #f5f3ed;
	color: var(--fp-primary);
}

.fp-booking .category-selection.theme-premium-black .category-toggle .toggle-btn.is-active,
.fp-booking .category-selection.theme-premium-black .category-toggle .toggle-btn.active,
.fp-booking .category-selection.theme-premium-black .category-toggle .fashionpoint-type-toggle-btn.is-active,
.fp-booking .category-selection.theme-premium-black .category-toggle .fashionpoint-type-toggle-btn.active {
	background: var(--fp-gradient) !important;
	color: #ffffff !important;
	border-color: var(--fp-primary) !important;
	box-shadow: 0 2px 8px rgba(201, 150, 58, 0.3) !important;
}

/* Category layout polish */
.fp-booking .category-selection {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

.fp-booking .category-selection .categories-container {
	max-width: none;
	width: 100%;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.fp-booking .category-selection .categories-container {
		max-width: none;
		width: 100%;
		margin: 0 auto;
		padding-left: 24px;
		padding-right: 24px;
		box-sizing: border-box;
	}
}

.fp-booking .category-selection.theme-premium-gold .categories-container {
	max-width: none;
	width: 100%;
}

@media (min-width: 1024px) {
	/* Ensure stacked track fills available width on desktop */
	.fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
	.fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
	.fp-booking .category-selection.theme-premium-gold .categories-track.categories-track-stack {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		box-sizing: border-box;
		overflow-y: auto;
		overflow-x: hidden;
	}

	/* Service cards span full width within category body */
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section .fashionpoint-service-card,
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section .fashionpoint-service-card {
		max-width: none;
		width: 100%;
		margin: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	/* Ensure all category sections have consistent width */
	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		box-sizing: border-box;
	}

	.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-header {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box;
	}
}

/* Neutralize block theme padding wrappers for entire booking container (Premium Gold) */
.entry-content.has-global-padding .fp-booking[data-theme="premium-gold"],
.alignfull .fp-booking[data-theme="premium-gold"],
.wp-site-blocks .fp-booking[data-theme="premium-gold"],
.is-layout-constrained .fp-booking[data-theme="premium-gold"] {
	margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)) !important;
	width: calc(100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px)) !important;
	max-width: none !important;
}

.has-global-padding .fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
.alignfull .fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
.wp-site-blocks .fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
.is-layout-constrained .fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack,
.has-global-padding .fp-booking .category-selection.theme-premium-gold .categories-track.categories-track-stack,
.alignfull .fp-booking .category-selection.theme-premium-gold .categories-track.categories-track-stack,
.wp-site-blocks .fp-booking .category-selection.theme-premium-gold .categories-track.categories-track-stack,
.is-layout-constrained .fp-booking .category-selection.theme-premium-gold .categories-track.categories-track-stack {
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* Remove body padding inside block wrappers for gold */
.has-global-padding .fp-booking[data-theme="premium-gold"] .fp-booking__body,
.alignfull .fp-booking[data-theme="premium-gold"] .fp-booking__body,
.wp-site-blocks .fp-booking[data-theme="premium-gold"] .fp-booking__body,
.is-layout-constrained .fp-booking[data-theme="premium-gold"] .fp-booking__body {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.fp-booking .categories-container {
	width: 100%;
}

.fp-booking .categories-scroll-container.categories-hidden {
	display: none !important;
}

.fp-booking .categories-scroll-container {
	padding: 4px 2px;
}

/* Stacked layout for booking category lists (services/packages) */
.fp-booking .categories-scroll-stack {
	overflow-y: visible;
	overflow-x: hidden;
	max-width: none;
	margin: 0 auto;
}

/* Booking step 2: force full-width containers inside booking shell */
.fp-booking .category-selection .categories-scroll-container,
.fp-booking .category-selection .categories-scroll-stack,
.fp-booking .category-selection .categories-track,
.fp-booking .category-selection .categories-track-stack {
	max-width: none !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

/* Ensure all sections align to full width and gold background under premium gold theme */
.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	background: #eadbc3 !important;
}

.fp-booking .category-selection.theme-premium-gold .categories-scroll-stack {
	max-width: none;
	width: 100%;
}

.fp-booking .categories-scroll-container.categories-scroll-stack {
	margin: 0 auto !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	align-self: center;
}

.fp-booking .category-selection.theme-premium-gold .categories-scroll-container.categories-scroll-stack {
	max-width: none;
}

.fp-booking .categories-track-stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	max-width: none;
	margin: 0;
}

.fp-booking .categories-track-stack .category-card,
.fp-booking .categories-track-stack .fashionpoint-category-section {
	width: 100%;
	max-width: none;
}

.fp-booking .empty-state {
	background: #fff;
	border: 1px solid #eceff3;
	border-radius: 16px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 10px 32px rgba(0,0,0,0.04);
}

.fp-booking .empty-state h3 {
	margin: 10px 0 6px;
	font-size: 17px;
	color: #1f2a44;
}

.fp-booking .empty-state p {
	margin: 0;
	color: #5c6475;
	font-size: 14px;
}

/* Category type toggle (services / packages) */
.fp-booking .category-toggle {
	display: inline-flex;
	gap: 8px;
	padding: 6px;
	background: #f5f2ea;
	border-radius: 999px;
	margin-top: 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.fp-booking .category-toggle .toggle-btn {
	border: none;
	background: transparent;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	color: #6b6b6b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: all 160ms ease;
}

.fp-booking .category-toggle .toggle-btn.is-active {
	background: linear-gradient(135deg, #d6ae47 0%, #f2d68b 100%);
	color: #1f1f1f;
	box-shadow: 0 12px 24px rgba(214, 174, 71, 0.28);
}

.fp-booking .category-toggle .toggle-btn:hover {
	transform: translateY(-1px);
}
