/**
 * FashionPoint Booking - Simple Table Row Selection
 * Complete overhaul - background color only, no movement
 *
 * @since 2.5.0
 */

/* ==========================================================================
	Simple Selection - Background Color Only
	========================================================================== */

/* Basic selected state - clear visual feedback */
.fp-booking .category-selection tbody tr.selected {
	background-color: #e8e8e8 !important;
	border-left: 4px solid #007acc !important;
}

/* Premium Black theme selection - stronger feedback */
.fp-booking .category-selection.theme-premium-black tbody tr.selected {
	background-color: rgba(201, 150, 58, 0.25) !important;
	border-left: 4px solid #c9963a !important;
}

/* Premium Gold theme selection - stronger feedback */
.fp-booking .category-selection.theme-premium-gold tbody tr.selected {
	background-color: rgba(212, 175, 55, 0.25) !important;
	border-left: 4px solid #d4af37 !important;
}

/* Ensure table cells inherit the background */
.fp-booking .category-selection tbody tr.selected td {
	background-color: transparent !important;
}

/* Remove all transforms, transitions, but keep essential visual feedback */
.fp-booking .category-selection tbody tr,
.fp-booking .category-selection tbody tr:hover,
.fp-booking .category-selection tbody tr.selected,
.fp-booking .category-selection tbody tr.selected:hover {
	transform: none !important;
	transition: background-color 0.2s ease !important;
	box-shadow: none !important;
}

/* Remove pseudo-elements */
.fp-booking .category-selection tbody tr.selected::before,
.fp-booking .category-selection tbody tr.selected::after {
	display: none !important;
}

/* Ensure hidden inputs don't affect layout */
.fp-booking .category-selection tbody tr input[type="checkbox"],
.fp-booking .category-selection tbody tr input[type="radio"] {
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Stable table structure */
.fp-booking .category-selection .fashionpoint-services-table {
	table-layout: fixed !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	width: 100% !important;
}

/* No movement on any elements except smooth background */
.fp-booking .category-selection tbody tr *,
.fp-booking .category-selection tbody tr.selected td * {
	transform: none !important;
}

/* Override any other complex styles but keep our simple feedback */
body .fp-booking .category-selection tbody tr.selected,
body .fp-booking .category-selection.theme-premium-black tbody tr.selected,
body .fp-booking .category-selection.theme-premium-gold tbody tr.selected {
	box-shadow: none !important;
	transform: none !important;
}

/* Fix grey box below collapsed menus - MAXIMUM SPECIFICITY override */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed .fashionpoint-category-content,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed .fashionpoint-category-content,
body .fp-booking .category-selection.theme-premium-black .fashionpoint-category-section.collapsed .fashionpoint-category-content,
body .fp-booking .category-selection .fashionpoint-category-section.collapsed .fashionpoint-category-content {
	display: none !important;
	max-height: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	height: 0 !important;
	min-height: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
}

/* Ensure collapsed sections don't have unwanted spacing - MAXIMUM SPECIFICITY */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed,
body .fp-booking .category-selection.theme-premium-black .fashionpoint-category-section.collapsed,
body .fp-booking .category-selection .fashionpoint-category-section.collapsed {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-bottom: none !important;
	border-top: none !important;
}

/* Additional override for any remaining spacing issues */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed + .fashionpoint-category-section,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed + .fashionpoint-category-section {
	margin-top: 0 !important;
}

/* AGGRESSIVE FIX - Remove any background colors from collapsed sections */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed,
body .fp-booking .category-selection.theme-premium-black .fashionpoint-category-section.collapsed,
body .fp-booking .category-selection .fashionpoint-category-section.collapsed {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: none !important;
	outline: none !important;
}

/* AGGRESSIVE FIX - Target any wrapper elements that might have background */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed > *,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed > *,
body .fp-booking .category-selection.theme-premium-black .fashionpoint-category-section.collapsed > *,
body .fp-booking .category-selection .fashionpoint-category-section.collapsed > * {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* FINAL ATTEMPT - Force visibility hidden on any remaining elements */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed .fashionpoint-category-content,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section.collapsed .fashionpoint-category-content {
	visibility: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 0 !important;
	height: 0 !important;
}

/* ROOT CAUSE FIX - Force all category sections to be transparent in Premium Black */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-category-section,
body .fp-booking .category-selection.theme-premium-black .fashionpoint-category-section,
body .category-selection.theme-premium-black .fashionpoint-category-section {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: none !important;
	outline: none !important;
}

/* Also target the content area wrapper */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-content-area,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-content-area {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Target the services section wrapper */
body .fp-booking .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-services-section,
body .category-selection.theme-premium-black .fashionpoint-all-services-container.theme-premium-black.fp-booking-step2 .fashionpoint-services-section {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* CRITICAL FIX - Override fp-booking__body background causing grey box */
body .fp-booking.theme-premium-black .fp-booking__body,
body .fp-booking .category-selection.theme-premium-black .fp-booking__body,
.fp-booking.theme-premium-black .fp-booking__body,
.fp-booking .category-selection.theme-premium-black .fp-booking__body {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Also override the main booking container */
body .fp-booking.theme-premium-black .fp-booking__container,
body .fp-booking .category-selection.theme-premium-black .fp-booking__container,
.fp-booking.theme-premium-black .fp-booking__container,
.fp-booking .category-selection.theme-premium-black .fp-booking__container {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Override any main element backgrounds */
body .fp-booking.theme-premium-black main,
body .fp-booking .category-selection.theme-premium-black main,
.fp-booking.theme-premium-black main,
.fp-booking .category-selection.theme-premium-black main {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* CRITICAL FIX - Remove fp-booking background but preserve structure for cart/next button */
body .fp-booking.theme-premium-black,
body .fp-booking .category-selection.theme-premium-black,
.fp-booking.theme-premium-black,
.fp-booking .category-selection.theme-premium-black {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	/* Preserve structural properties */
	position: relative !important;
	width: 100% !important;
	min-height: 100vh !important;
	padding: 0 !important;
	font-family: inherit !important;
	color: inherit !important;
}

/* Ensure the body and container maintain proper spacing */
body .fp-booking.theme-premium-black .fp-booking__container,
body .fp-booking .category-selection.theme-premium-black .fp-booking__container,
.fp-booking.theme-premium-black .fp-booking__container,
.fp-booking .category-selection.theme-premium-black .fp-booking__container {
	/* Preserve container structure for cart/next button positioning */
	display: flex !important;
	flex-direction: column !important;
	min-height: 100vh !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	background: transparent !important;
}
