/**
 * FashionPoint Booking - Category Selection Styles
 *
 * @since 2.5.0
 */

/* ==========================================================================
	Category Selection
	========================================================================== */

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

.fp-booking .categories-container {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
}

.fp-booking .categories-scroll-container {
	overflow-x: hidden;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 0;
	width: 100%;
	display: block;
}

@media (max-width: 767px) {
	.fp-booking .categories-scroll-container {
		margin: 0;
		padding: 0;
	}
}


.fp-booking .categories-track {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-bottom: 0;
	min-width: auto;
	width: 100%;
	min-height: min-content;
}

@media (min-width: 768px) {
	.fp-booking .categories-track {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.fp-booking .categories-track {
		gap: 16px;
	}
}

.fp-booking .categories-track-stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-bottom: 0;
	min-width: auto;
	width: 100%;
	min-height: min-content;
}

.fp-booking .fashionpoint-category-section {
	margin-bottom: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	pointer-events: auto;
}

/* Collapse using max-height/opacity for smooth animation (matching all-services-table.css) */
.fp-booking .fashionpoint-category-section.collapsed .category-services,
.fp-booking .fashionpoint-category-section.collapsed .fashionpoint-category-content {
	max-height: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
}

.fp-booking .fashionpoint-category-content {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	max-height: none;
	opacity: 1;
	transition: max-height 0.35s ease, opacity 0.25s ease;
}

.fp-booking .fashionpoint-category-section.collapsed .fashionpoint-category-content {
	max-height: 0;
	opacity: 0;
}

.fp-booking .category-card.selected::after {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 2px #d6ae47;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231f1f1f" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/12px 12px no-repeat;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231f1f1f" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/12px 12px no-repeat;
}

.fp-booking .category-card.selected .category-name,
.fp-booking .category-card.selected .category-description,
.fp-booking .category-card.selected .service-count {
	color: #1f1f1f;
}

.fp-booking .category-card.selected .service-count svg {
	color: #1f1f1f;
}

.fp-booking .category-card.selected .category-description { opacity: 0.9; }

.fp-booking .category-card.selected .checkbox label {
	border-color: var(--fp-border);
	background: #fff;
}

.fp-booking .category-card.selected .checkbox input[type="checkbox"]:checked + label {
	border-color: var(--fp-primary);
	background: var(--fp-primary);
}

.fp-booking .category-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: var(--fp-radius-lg);
	overflow: hidden;
	background: var(--fp-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

@media (min-width: 768px) {
	.fp-booking .category-icon {
		width: 80px;
		height: 80px;
	}
}

.fp-booking .category-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fp-booking .category-content {
	text-align: center;
}

.fp-booking .category-description {
	font-size: 14px;
	color: #6b7280;
	margin: 6px 0 0 0;
	line-height: 1.4;
}

.fp-booking .category-meta {
	display: flex;
	justify-content: center;
}

.fp-booking .service-count {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	opacity: 0.7;
}

.fp-booking .category-select {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

.fp-booking .checkbox {
	position: relative;
}

.fp-booking .checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}

.fp-booking .checkbox label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--fp-border);
	border-radius: var(--fp-radius);
	background: var(--fp-background);
	cursor: pointer;
	transition: var(--fp-transition);
}

.fp-booking .checkbox input[type="checkbox"]:checked + label {
	border-color: var(--fp-primary);
	background: var(--fp-primary);
}

.fp-booking .checkbox label svg {
	display: none;
	width: 12px;
	height: 12px;
	stroke: white;
	stroke-width: 3;
}

.fp-booking .fashionpoint-category-header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 16px 18px;
	margin: 0 0 0 0;
	border: none;
	background: #eadbc3;
	transition: all 0.25s ease;
	justify-content: center;
	position: relative;
	flex-wrap: wrap;
	border-radius: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	cursor: pointer;
	pointer-events: auto;
}

.fp-booking .fashionpoint-category-toggle {
	cursor: pointer;
}

.fp-booking .fashionpoint-category-toggle:hover {
	opacity: 0.85;
}

.fp-booking .fashionpoint-category-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #2a2520;
	text-transform: uppercase;
	text-align: center;
	width: 100%;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fp-booking .fashionpoint-category-name-container {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.fp-booking .fashionpoint-category-name-container h2,
.fp-booking .fashionpoint-category-name-container h3 {
	margin: 0;
	width: 100%;
	text-align: center;
}

.fp-booking .fashionpoint-category-name-container h2 {
	margin: 0;
	font-size: 18px;
	width: 100%;
	text-align: center;
}

.fp-booking .fashionpoint-category-price {
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	margin-top: 4px;
}

.fp-booking .fashionpoint-category-promo-badge-container {
	display: flex;
	justify-content: center;
	position: static;
	margin-top: 6px;
	width: 100%;
}

.fp-booking .fashionpoint-category-promo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #8a620a;
	background: #eadbc3;
	padding: 6px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.28);
}

.fp-booking .fashionpoint-category-promo-badge svg {
	color: #ffffff;
}

.fp-booking .fashionpoint-category-chevron-container {
	display: none;
}

.fp-booking .fashionpoint-category-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: transparent;
	transition: transform 0.25s ease, background 0.2s ease;
}

.fp-booking .fashionpoint-category-chevron svg {
	display: block;
	color: #2a2520;
	width: 16px;
	height: 16px;
	transition: transform 0.25s ease;
}

.fp-booking .fashionpoint-category-section.collapsed .fashionpoint-category-chevron svg {
	transform: rotate(-90deg);
}

/* ── Theme-aware category headers ──────────────────────────── */

/* Premium Gold Theme */
.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-header {
	background: #eadbc3;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-header h2 {
	color: #2a2520;
	font-weight: 800;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section {
	border-radius: 0;
	box-shadow: none;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-header {
	border-radius: 0;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-section.collapsed .fashionpoint-category-header {
	border-radius: 0;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-promo-badge {
	background: #d4af37;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.28);
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-promo-badge svg {
	color: #ffffff;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-chevron {
	background: transparent;
}

.fp-booking .category-selection.theme-premium-gold .fashionpoint-category-chevron svg {
	color: #2a2520;
}

/* Premium Black Theme */
.fp-booking .category-selection.theme-premium-black .fashionpoint-category-header {
	background: #f5f3ed;
	padding: 16px 28px 16px 18px;
}

.fp-booking .category-selection.theme-premium-black .fashionpoint-category-header h2 {
	color: #000000;
	font-weight: 800;
}

.fp-booking .category-selection.theme-premium-black .fashionpoint-category-promo-badge {
	background: linear-gradient(135deg, #c9963a 0%, #b8852e 100%);
	color: #000000;
}

.fp-booking .category-selection.theme-premium-black .fashionpoint-category-promo-badge svg {
	color: #000000;
}

.fp-booking .category-selection.theme-premium-black .fashionpoint-category-chevron {
	background: rgba(0, 0, 0, 0.1);
}

.fp-booking .category-selection.theme-premium-black .fashionpoint-category-chevron svg {
	color: #000000;
}

/* Default Theme */
.fp-booking .category-selection.theme-default .fashionpoint-category-header {
	background: #f9fafb;
}

.fp-booking .category-selection.theme-default .fashionpoint-category-header h2 {
	color: #1f2937;
	font-size: 22px;
	font-weight: 700;
	text-transform: none;
}

.fp-booking .category-selection.theme-default .fashionpoint-category-promo-badge {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
}

.fp-booking .category-selection.theme-default .fashionpoint-category-promo-badge svg {
	color: #fff;
}

.fp-booking .category-selection.theme-default .fashionpoint-category-chevron {
	background: #f3f4f6;
}

.fp-booking .category-selection.theme-default .fashionpoint-category-chevron svg {
	color: #6b7280;
}

.fp-booking .promo-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--fp-error);
	color: white;
	font-size: 0.625rem;
	font-weight: 600;
	padding: 0.125rem 0.375rem;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fp-booking .scroll-indicators {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 0.5rem;
}

.fp-booking .scroll-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--fp-background);
	border: 1px solid var(--fp-border);
	border-radius: 50%;
	color: var(--fp-text);
	cursor: pointer;
	transition: var(--fp-transition);
	pointer-events: all;
	box-shadow: var(--fp-shadow);
}

.fp-booking .scroll-btn:hover {
	background: var(--fp-primary);
	color: white;
	border-color: var(--fp-primary);
}

.fp-booking .selection-summary {
	background: var(--fp-surface);
	border-radius: var(--fp-radius);
	padding: 1rem;
	margin-top: 1.5rem;
}

.fp-booking .summary-content h3 {
	margin: 0 0 0.5rem 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fp-text);
}

.fp-booking .selected-count {
	font-size: 0.875rem;
	color: var(--fp-text-light);
	margin-bottom: 0.5rem;
}

.fp-booking .selected-categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fp-booking .selected-category-tag {
	background: var(--fp-primary);
	color: white;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
}
