/**
 * Public Styles
 * Frontend styles for Birthday Party Booking
 * 
 * @package Birthday_Party_Booking
 * @since 1.0.0
 */

 :root {
	--bpb-primary: #FF6B9D;
	--bpb-secondary: #FFA07A;
	--bpb-accent: #98D8C8;
	--bpb-background: #FFF5F7;
	--bpb-text: #2C3E50;
	--bpb-success: #52C41A;
	--bpb-warning: #FAAD14;
	--bpb-danger: #F5222D;
	--bpb-border-radius: 12px;
	--bpb-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bpb-booking-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--bpb-text);
}

/* Grid Layout - Página 1 - LOCKED STRUCTURE */
.bpb-room-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	grid-template-rows: auto auto !important;
	gap: 20px !important;
	margin-top: 20px;
	position: relative !important;
	/* Prevent grid from being modified */
	grid-auto-flow: row !important;
}

.bpb-room-grid .bpb-room-selector {
	grid-column: 1 !important;
	grid-row: 1 !important;
	grid-column-start: 1 !important;
	grid-column-end: 2 !important;
	grid-row-start: 1 !important;
	grid-row-end: 2 !important;
}

.bpb-room-grid .bpb-room-image {
	grid-column: 2 !important;
	grid-row: 1 !important;
	grid-column-start: 2 !important;
	grid-column-end: 3 !important;
	grid-row-start: 1 !important;
	grid-row-end: 2 !important;
}

.bpb-room-grid .bpb-room-description {
	grid-column: 1 !important;
	grid-row: 2 !important;
	grid-column-start: 1 !important;
	grid-column-end: 2 !important;
	grid-row-start: 2 !important;
	grid-row-end: 3 !important;
	/* Ensure description doesn't overflow */
	overflow: hidden;
	max-height: 100%;
	/* Prevent description from affecting grid */
	align-self: start !important;
}

.bpb-room-grid .bpb-room-calendar {
	grid-column: 2 !important;
	grid-row: 2 !important;
	grid-column-start: 2 !important;
	grid-column-end: 3 !important;
	grid-row-start: 2 !important;
	grid-row-end: 3 !important;
	/* Ensure calendar stays in its grid position */
	position: relative !important;
	min-height: 400px;
	/* Prevent calendar from moving outside container */
	overflow: visible !important;
	display: flex !important;
	flex-direction: column !important;
	/* Force position in grid - CRITICAL */
	align-self: start !important;
	/* Lock position */
	order: 0 !important;
}

/* Ensure calendar element stays within its container */
.bpb-room-calendar #bpb-calendar {
	width: 100% !important;
	height: 100% !important;
	flex: 1 1 auto !important;
	/* Prevent calendar from being moved */
	position: relative !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	/* Ensure it doesn't break out */
	overflow: hidden !important;
}

/* Prevent any element from escaping grid */
.bpb-room-grid > * {
	position: relative;
}

/* Prevent grid items from being reordered */
.bpb-room-grid .bpb-room-selector { order: 1 !important; }
.bpb-room-grid .bpb-room-image { order: 2 !important; }
.bpb-room-grid .bpb-room-description { order: 3 !important; }
.bpb-room-grid .bpb-room-calendar { order: 4 !important; }

/* Prevent description from overflowing and pushing calendar down */
.bpb-room-grid .bpb-room-description {
	grid-column: 1 !important;
	grid-row: 2 !important;
	overflow: hidden;
	max-height: 100%;
	display: flex;
	flex-direction: column;
}

.bpb-room-description-text {
	overflow-y: auto;
	flex: 1 1 auto;
	max-height: 100%;
}

@media (max-width: 768px) {
	.bpb-room-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
	
	.bpb-room-grid .bpb-room-selector,
	.bpb-room-grid .bpb-room-image,
	.bpb-room-grid .bpb-room-description,
	.bpb-room-grid .bpb-room-calendar {
		grid-column: 1;
		grid-row: auto;
	}
}

.bpb-grid-block {
	background: white;
	border-radius: var(--bpb-border-radius);
	padding: 24px;
	box-shadow: var(--bpb-box-shadow);
}

/* Room Selector */
.bpb-room-selector h2 {
	margin-top: 0;
	color: var(--bpb-primary);
}

.bpb-rooms-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bpb-room-option {
	display: flex;
	align-items: center;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.bpb-room-option:hover {
	border-color: var(--bpb-primary);
	background: var(--bpb-background);
}

.bpb-room-option.active {
	border-color: var(--bpb-primary);
	background: var(--bpb-primary);
	color: white;
}

.bpb-room-option input[type="radio"] {
	margin-right: 10px;
}

/* Room Image */
.bpb-room-image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}

.bpb-room-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.bpb-no-image {
	text-align: center;
	color: #999;
}

.bpb-no-image .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
}

/* Room Description */
.bpb-room-description h3 {
	margin-top: 0;
	color: var(--bpb-primary);
}

.bpb-room-info {
	margin: 15px 0;
}

.bpb-room-info p {
	margin: 5px 0;
}

.bpb-room-description-text {
	margin-top: 15px;
	line-height: 1.6;
}

/* ============================================
   CALENDAR STYLES - IMPROVED UX
   ============================================ */

.bpb-room-calendar {
	min-height: 400px;
	overflow: visible;
	display: flex;
	flex-direction: column;
}

.bpb-room-calendar.loading {
	opacity: 0.6;
	pointer-events: none;
}

#bpb-calendar {
	max-width: 100%;
	font-family: inherit;
	overflow: hidden;
}

/* FullCalendar Base */
#bpb-calendar .fc {
	font-size: 14px;
	overflow: hidden;
}

#bpb-calendar .fc-view-harness {
	overflow: visible !important;
}

#bpb-calendar .fc-scroller {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}

#bpb-calendar .fc-scroller-liquid-absolute {
	position: relative !important;
}

/* ============================================
   TOOLBAR - HORIZONTAL LAYOUT FIX
   ============================================ */

/* Calendar Toolbar - Force horizontal layout */
#bpb-calendar .fc-header-toolbar {
	margin-bottom: 0.5em !important;
	padding: 8px 0 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	flex-wrap: nowrap !important;
}

/* Toolbar chunks - Force horizontal layout across all chunks */
#bpb-calendar .fc-header-toolbar {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	gap: 15px !important;
}

/* Left chunk - Previous button */
#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk:first-child {
	display: flex !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	order: 1 !important;
}

/* Center chunk - Title */
#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk:nth-child(2),
#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk[data-layout-fixed="true"] {
	display: flex !important;
	flex: 1 1 auto !important;
	justify-content: center !important;
	order: 2 !important;
	min-width: 0 !important;
}

/* Right chunk - Next button */
#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk:last-child {
	display: flex !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	order: 3 !important;
}

/* Ensure all toolbar chunks don't stack */
#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
}

/* Previous button - left position */
#bpb-calendar .fc-header-toolbar .fc-prev-button,
#bpb-calendar .fc-prev-button {
	order: 1 !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	display: inline-block !important;
	min-width: auto !important;
}

/* Title - center with flex-grow */
#bpb-calendar .fc-header-toolbar .fc-toolbar-title,
#bpb-calendar .fc-toolbar-title {
	order: 2 !important;
	flex: 1 1 auto !important;
	text-align: center !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
	white-space: nowrap !important;
	font-size: 1.1em !important;
	font-weight: 600 !important;
	min-width: 0 !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* Next button - right position */
#bpb-calendar .fc-header-toolbar .fc-next-button,
#bpb-calendar .fc-next-button {
	order: 3 !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	display: inline-block !important;
	min-width: auto !important;
}

/* Hide today button and view switchers */
#bpb-calendar .fc-today-button,
#bpb-calendar .fc-dayGridMonth-button,
#bpb-calendar .fc-timeGridWeek-button,
#bpb-calendar .fc-timeGridDay-button {
	display: none !important;
}

/* Navigation Buttons Style */
#bpb-calendar .fc-button {
	padding: 10px 18px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	border-radius: 8px !important;
	background-color: var(--bpb-primary) !important;
	border-color: var(--bpb-primary) !important;
	color: white !important;
	text-transform: none !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
	transition: all 0.2s ease !important;
	line-height: 1 !important;
}

#bpb-calendar .fc-button:hover {
	background-color: #e55a8a !important;
	border-color: #e55a8a !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#bpb-calendar .fc-button:active {
	transform: translateY(0) !important;
}

#bpb-calendar .fc-button:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3) !important;
}

#bpb-calendar .fc-button-primary:disabled {
	background-color: #e0e0e0 !important;
	border-color: #e0e0e0 !important;
	color: #999 !important;
	cursor: not-allowed !important;
	opacity: 1 !important;
	transform: none !important;
	box-shadow: none !important;
}

/* ============================================
   CALENDAR GRID
   ============================================ */

#bpb-calendar .fc-daygrid {
	height: auto !important;
}

#bpb-calendar .fc-daygrid-body {
	height: auto !important;
	overflow: visible !important;
}

#bpb-calendar .fc-daygrid-body table {
	table-layout: fixed !important;
	width: 100% !important;
}

/* Day Header (dom, lun, mar...) */
#bpb-calendar .fc-col-header-cell {
	padding: 12px 4px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	color: var(--bpb-text) !important;
	background-color: #f8f9fa !important;
	border-color: #e8e8e8 !important;
	text-transform: capitalize !important;
}

#bpb-calendar .fc-col-header-cell-cushion {
	text-decoration: none !important;
	color: var(--bpb-text) !important;
}

/* Day Cells */
#bpb-calendar .fc-daygrid-day {
	border-color: #e8e8e8 !important;
	position: relative !important;
	min-height: 60px !important;
	transition: background-color 0.2s ease !important;
}

#bpb-calendar .fc-daygrid-day-frame {
	min-height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 4px !important;
}

#bpb-calendar .fc-daygrid-day-top {
	flex-shrink: 0 !important;
	justify-content: center !important;
}

#bpb-calendar .fc-daygrid-day-events {
	flex: 1 1 auto !important;
	min-height: 0 !important;
}

#bpb-calendar .fc-daygrid-day-number {
	padding: 8px !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	color: var(--bpb-text) !important;
	text-decoration: none !important;
}

/* Today highlight */
#bpb-calendar .fc-day-today {
	background-color: rgba(255, 107, 157, 0.08) !important;
}

#bpb-calendar .fc-day-today .fc-daygrid-day-number {
	font-weight: 700 !important;
	color: var(--bpb-primary) !important;
	background-color: var(--bpb-primary) !important;
	color: white !important;
	border-radius: 50% !important;
	width: 28px !important;
	height: 28px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 4px auto !important;
	padding: 0 !important;
}

/* ============================================
   DATE STATUS STYLES
   ============================================ */

/* Date Status Badges - Tooltip */
.bpb-date-badge {
	position: fixed;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px;
	color: white;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	pointer-events: none;
	z-index: 10000;
	display: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	transform: translateX(-50%);
}

/* Show badge on hover */
.bpb-date-available:hover .bpb-date-badge,
.bpb-date-booked:hover .bpb-date-badge,
.bpb-date-limited:hover .bpb-date-badge,
.bpb-date-blocked:hover .bpb-date-badge {
	display: block;
}

/* Available dates */
.bpb-date-available {
	background-color: rgba(82, 196, 26, 0.15) !important;
	cursor: pointer !important;
}

.bpb-date-available:hover {
	background-color: rgba(82, 196, 26, 0.25) !important;
}

.bpb-date-available .bpb-date-badge {
	background-color: #52C41A;
}

/* Booked dates (some slots available) */
.bpb-date-booked {
	background-color: rgba(250, 173, 20, 0.15) !important;
	cursor: pointer !important;
}

.bpb-date-booked:hover {
	background-color: rgba(250, 173, 20, 0.25) !important;
}

.bpb-date-booked .bpb-date-badge {
	background-color: #FAAD14;
}

/* Limited dates */
.bpb-date-limited {
	background-color: rgba(255, 122, 0, 0.15) !important;
	cursor: pointer !important;
}

.bpb-date-limited:hover {
	background-color: rgba(255, 122, 0, 0.25) !important;
}

.bpb-date-limited .bpb-date-badge {
	background-color: #FF7A00;
}

/* Blocked dates */
.bpb-date-blocked {
	background-color: rgba(245, 34, 45, 0.1) !important;
	cursor: not-allowed !important;
	opacity: 0.7;
}

.bpb-date-blocked .fc-daygrid-day-number {
	color: #999 !important;
	text-decoration: line-through !important;
}

.bpb-date-blocked .bpb-date-badge {
	background-color: #F5222D;
}

/* Past dates */
.bpb-date-past {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	background-color: #f5f5f5 !important;
}

.bpb-date-past .fc-daygrid-day-number {
	color: #bbb !important;
}

/* ============================================
   BOOKING FORM
   ============================================ */

.bpb-booking-form-wrapper {
	max-width: 880px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bpb-booking-form-wrapper h2 {
	color: var(--bpb-text);
	margin-bottom: 22px;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.bpb-booking-summary {
	background: #f8fafc;
	padding: 18px 20px;
	border-radius: 14px;
	margin-bottom: 28px;
	border: 1px solid #e2e8f0;
	display: grid;
	gap: 8px;
}

.bpb-booking-form h3 {
	color: var(--bpb-text);
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 20px;
}

.bpb-form-row {
	margin-bottom: 18px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.bpb-form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #334155;
}

.bpb-form-field .required {
	color: var(--bpb-danger);
}

.bpb-form-field input[type="text"],
.bpb-form-field input[type="email"],
.bpb-form-field input[type="tel"],
.bpb-form-field input[type="number"],
.bpb-form-field select,
.bpb-form-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d7dbe2;
	border-radius: 10px;
	font-size: 15px;
	background: #f9fafb;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bpb-form-field textarea {
	resize: vertical;
	min-height: 100px;
}

.bpb-form-field input:focus,
.bpb-form-field select:focus,
.bpb-form-field textarea:focus {
	outline: none;
	border-color: #94a3b8;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
	background: #fff;
}

.bpb-form-field small {
	display: block;
	margin-top: 5px;
	color: #64748b;
	font-size: 13px;
}

.bpb-form-field.bpb-field-error input,
.bpb-form-field.bpb-field-error select,
.bpb-form-field.bpb-field-error textarea {
	border-color: var(--bpb-danger);
}

.bpb-field-error-message {
	display: block;
	margin-top: 5px;
	color: var(--bpb-danger);
	font-size: 14px;
}

.bpb-form-actions {
	display: flex;
	gap: 20px;
	margin-top: 32px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 2px solid #f1f5f9;
}

.bpb-booking-total {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
	color: var(--bpb-text);
}

.bpb-total-label {
	color: #666;
}

.bpb-total-amount {
	color: var(--bpb-primary);
	font-size: 24px;
	font-weight: 700;
}

.bpb-form-actions-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bpb-button-primary,
.bpb-button-secondary {
	padding: 14px 32px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
	min-width: 140px;
}

.bpb-button-primary {
	background: linear-gradient(135deg, var(--bpb-primary) 0%, #e55a8a 100%);
	color: white;
	box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}

.bpb-button-primary:hover {
	background: linear-gradient(135deg, #e55a8a 0%, var(--bpb-primary) 100%);
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(255, 107, 157, 0.4);
}

.bpb-button-primary:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.bpb-button-secondary {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	color: #334155;
	border: 2px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.bpb-button-secondary:hover {
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
	color: #1e293b;
}

.bpb-button-secondary:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.bpb-promotions {
	background: #f8fafc;
	border: 1px dashed #d1d5db;
	border-radius: 14px;
	padding: 16px;
}

.bpb-promotions-header h4 {
	margin: 0 0 4px;
	font-size: 16px;
	color: #1f2937;
}

.bpb-promotions-header p {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 13px;
}

.bpb-promotions-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.bpb-promo-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.bpb-promo-card.is-hidden {
	display: none;
}

.bpb-promo-title {
	font-weight: 700;
	color: #111827;
	margin-bottom: 4px;
}

.bpb-promo-age {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 6px;
}

.bpb-promo-description {
	font-size: 13px;
	color: #374151;
	line-height: 1.4;
}

.bpb-promotions-empty {
	margin-top: 10px;
	font-size: 13px;
	color: #6b7280;
}

.bpb-included-notice {
	margin: 0 0 24px;
	padding: 18px 20px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff7ed;
	color: #7c2d12;
}

.bpb-included-notice h4 {
	margin: 0 0 8px;
	font-size: 15px;
	color: #9a3412;
}

.bpb-included-notice p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-line;
}

.bpb-payment-radio-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-top: 8px;
	width: 100%;
}

.bpb-payment-radio-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	box-sizing: border-box;
}

.bpb-payment-radio-option:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.bpb-payment-radio-option.is-selected {
	border-color: var(--bpb-primary);
	background: #fff7ed;
	box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.bpb-payment-radio-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.bpb-radio-custom {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #fff;
	transition: all 0.2s ease;
	display: block;
}

.bpb-payment-radio-option:hover .bpb-radio-custom {
	border-color: #94a3b8;
}

.bpb-payment-radio-option.is-selected .bpb-radio-custom {
	border-color: var(--bpb-primary);
	background: var(--bpb-primary);
}

.bpb-payment-radio-option.is-selected .bpb-radio-custom::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	display: block;
}

.bpb-payment-radio-label {
	font-weight: 600;
	font-size: 15px;
	color: #111827;
	line-height: 1.4;
	flex: 1;
}

.bpb-payment-radio-option.is-selected .bpb-payment-radio-label {
	color: #9a3412;
}

.bpb-payment-info {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.bpb-payment-info p {
	margin: 0;
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
}

.bpb-form-notice {
	margin-top: 24px;
	padding: 18px 20px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #1f2937;
}

.bpb-form-notice h4 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #111827;
}

.bpb-form-notice p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #374151;
}

@media (max-width: 720px) {
	.bpb-booking-form-wrapper {
		padding: 24px;
	}

	.bpb-form-actions {
		flex-direction: column;
		align-items: stretch;
	}
	
	.bpb-booking-total {
		justify-content: center;
		margin-bottom: 15px;
	}
	
	.bpb-form-actions-buttons {
		justify-content: center;
		width: 100%;
	}
	
	.bpb-form-actions {
		flex-direction: column;
		align-items: stretch;
	}
	
	.bpb-booking-total {
		justify-content: center;
		margin-bottom: 15px;
	}
	
	.bpb-form-actions-buttons {
		justify-content: center;
		width: 100%;
	}

	.bpb-button-primary,
	.bpb-button-secondary {
		width: 100%;
		text-align: center;
	}
}

#bpb-form-messages {
	margin-top: 20px;
}

.bpb-message {
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.bpb-message-error {
	background: #fff1f0;
	border: 1px solid var(--bpb-danger);
	color: var(--bpb-danger);
}

.bpb-message ul {
	margin: 0;
	padding-left: 20px;
}

/* ============================================
   CONFIRMATION
   ============================================ */

.bpb-confirmation-wrapper {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.bpb-confirmation-icon {
	margin-bottom: 20px;
}

.bpb-confirmation-icon .dashicons {
	font-size: 80px;
	width: 80px;
	height: 80px;
	color: var(--bpb-success);
}

.bpb-confirmation-wrapper h2 {
	color: var(--bpb-primary);
	margin-bottom: 15px;
}

.bpb-confirmation-message {
	font-size: 18px;
	margin-bottom: 30px;
	color: var(--bpb-text);
}

.bpb-booking-summary {
	background: white;
	padding: 30px;
	border-radius: var(--bpb-border-radius);
	box-shadow: var(--bpb-box-shadow);
	text-align: left;
	margin-bottom: 30px;
}

.bpb-booking-summary h3 {
	color: var(--bpb-primary);
	margin-top: 0;
	margin-bottom: 20px;
}

.bpb-summary-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.bpb-summary-item:last-child {
	border-bottom: none;
}

.bpb-summary-item strong {
	color: var(--bpb-text);
}

.bpb-confirmation-actions {
	margin-top: 30px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.bpb-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 107, 157, 0.3);
	border-radius: 50%;
	border-top-color: var(--bpb-primary);
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ============================================
   TIME SLOTS MODAL
   ============================================ */

.bpb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.bpb-modal-content {
	background: white;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.bpb-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e8e8e8;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bpb-modal-header h3 {
	margin: 0;
	color: var(--bpb-primary);
	font-size: 1.3em;
}

.bpb-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.bpb-modal-close:hover {
	background-color: #f5f5f5;
	color: var(--bpb-text);
}

.bpb-modal-body {
	padding: 24px;
}

.bpb-modal-body p {
	margin: 0 0 15px 0;
	color: var(--bpb-text);
}

.bpb-time-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 15px;
}

.bpb-time-slot-btn {
	padding: 12px 16px;
	border: 2px solid var(--bpb-primary);
	background: white;
	color: var(--bpb-primary);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.bpb-time-slot-btn:hover {
	background: var(--bpb-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.bpb-time-slot-btn:active {
	transform: translateY(0);
}

.bpb-time-slot-btn.bpb-slot-selected {
	background: var(--bpb-primary);
	color: white;
	border-color: var(--bpb-primary);
	box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.bpb-modal-footer {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
}

/* RGPD modal wrapper */
.bpb-rgpd-modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10002;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bpb-rgpd-modal-wrapper.bpb-modal-hidden {
	display: none !important;
}
.bpb-rgpd-modal-wrapper:not(.bpb-modal-hidden) {
	display: flex !important;
}
.bpb-rgpd-modal-wrapper .bpb-modal-overlay {
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
	z-index: 0;
}
.bpb-rgpd-modal-wrapper .bpb-rgpd-modal-box {
	position: relative;
	z-index: 1;
	max-width: 560px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	border-radius: 12px;
}
body.bpb-modal-open {
	overflow: hidden;
}

/* RGPD checkbox row */
.bpb-rgpd-row .bpb-rgpd-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-weight: normal;
	cursor: pointer;
}
.bpb-rgpd-row .bpb-rgpd-label input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
}
.bpb-rgpd-link {
	color: var(--bpb-primary);
	text-decoration: underline;
	font-size: 0.95em;
}
.bpb-rgpd-link:hover {
	color: var(--bpb-secondary);
}

/* ============================================
   ERROR POPOVER
   ============================================ */

.bpb-error-popover {
	position: fixed;
	z-index: 10001;
	animation: popoverFadeIn 0.2s ease;
	max-width: 280px;
	pointer-events: none;
}

@keyframes popoverFadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.bpb-error-popover-content {
	pointer-events: auto;
	background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid rgba(245, 34, 45, 0.2);
	position: relative;
	backdrop-filter: blur(10px);
}

.bpb-error-popover-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.bpb-error-popover:not(.bpb-popover-below) .bpb-error-popover-arrow {
	bottom: -8px;
	border-width: 8px 8px 0 8px;
	border-color: rgba(245, 34, 45, 0.2) transparent transparent transparent;
}

.bpb-error-popover:not(.bpb-popover-below) .bpb-error-popover-arrow::after {
	content: '';
	position: absolute;
	left: -7px;
	top: -9px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 7px 0 7px;
	border-color: #fff transparent transparent transparent;
}

.bpb-error-popover.bpb-popover-below .bpb-error-popover-arrow {
	top: -8px;
	border-width: 0 8px 8px 8px;
	border-color: transparent transparent rgba(245, 34, 45, 0.2) transparent;
}

.bpb-error-popover.bpb-popover-below .bpb-error-popover-arrow::after {
	content: '';
	position: absolute;
	left: -7px;
	top: 1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 7px 7px 7px;
	border-color: transparent transparent #fff transparent;
}

.bpb-error-popover-icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.bpb-error-popover-message {
	flex: 1;
	color: var(--bpb-text);
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
	text-align: left;
}

/* ============================================
   DATE FIRST FLOW - NEW LAYOUT
   ============================================ */

/* Layout para "Fecha primero": Calendario arriba, carrusel abajo */
.bpb-date-first-flow .bpb-date-first-layout {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 20px;
}

/* Calendario a todo ancho arriba */
.bpb-date-first-flow .bpb-calendar-fullwidth {
	width: 100%;
	background: white;
	border-radius: var(--bpb-border-radius);
	padding: 24px;
	box-shadow: var(--bpb-box-shadow);
}

.bpb-date-first-flow .bpb-calendar-fullwidth #bpb-calendar {
	width: 100%;
}

/* Carrusel de salas debajo */
.bpb-rooms-carousel-wrapper {
	margin-top: 30px;
}

.bpb-carousel-title {
	color: var(--bpb-primary);
	margin: 0 0 8px 0;
	font-size: 1.5em;
}

.bpb-carousel-subtitle {
	margin: 0 0 20px 0;
	color: #666;
	font-size: 1em;
}

.bpb-rooms-carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 0;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--bpb-primary) #f0f0f0;
	-webkit-overflow-scrolling: touch;
}

.bpb-rooms-carousel::-webkit-scrollbar {
	height: 8px;
}

.bpb-rooms-carousel::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.bpb-rooms-carousel::-webkit-scrollbar-thumb {
	background: var(--bpb-primary);
	border-radius: 4px;
}

.bpb-rooms-carousel::-webkit-scrollbar-thumb:hover {
	background: #e55a8a;
}

.bpb-room-card {
	flex: 0 0 auto;
	width: 280px;
	background: white;
	border-radius: var(--bpb-border-radius);
	padding: 0;
	box-shadow: var(--bpb-box-shadow);
	transition: all 0.3s ease;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bpb-room-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bpb-room-card.selected {
	border: 3px solid var(--bpb-primary);
	box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.bpb-room-card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	background: var(--bpb-background);
}

.bpb-room-card-image-placeholder {
	width: 100%;
	height: 200px;
	background: var(--bpb-background);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 48px;
}

.bpb-room-card-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.bpb-room-card-name {
	margin: 0 0 10px 0;
	color: var(--bpb-primary);
	font-size: 1.2em;
	font-weight: 600;
	text-align: center;
}

.bpb-room-card-info {
	margin: 10px 0;
	display: flex;
	justify-content: space-around;
	gap: 15px;
	font-size: 0.9em;
	color: #666;
}

.bpb-room-card-info-item {
	text-align: center;
	flex: 1;
}

.bpb-room-card-info-item strong {
	display: block;
	color: var(--bpb-text);
	font-weight: 600;
	margin-bottom: 4px;
}

.bpb-room-card-button {
	margin-top: 15px;
	padding: 12px;
	background: var(--bpb-primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.bpb-room-card-button:hover {
	background: #e55a8a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.bpb-room-card-button:active {
	transform: translateY(0);
}

/* Responsive para carrusel */
@media (max-width: 768px) {
	.bpb-room-card {
		width: 240px;
	}
	
	.bpb-room-card-image,
	.bpb-room-card-image-placeholder {
		height: 160px;
	}
	
	.bpb-carousel-title {
		font-size: 1.3em;
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.bpb-error-popover {
		max-width: calc(100vw - 30px);
	}
	
	.bpb-error-popover-content {
		padding: 12px 14px;
	}
	
	.bpb-error-popover-message {
		font-size: 12px;
	}
	
	.bpb-error-popover-icon {
		font-size: 18px;
	}
	
	/* Ensure toolbar stays horizontal on mobile */
	#bpb-calendar .fc-header-toolbar .fc-toolbar-chunk {
		flex-wrap: nowrap !important;
		gap: 10px !important;
	}
	
	#bpb-calendar .fc-header-toolbar .fc-toolbar-title {
		font-size: 1em !important;
		padding: 0 10px !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}
	
	#bpb-calendar .fc-button {
		padding: 8px 14px !important;
		font-size: 13px !important;
		flex-shrink: 0 !important;
	}
	
	#bpb-calendar .fc-daygrid-day-number {
		font-size: 13px !important;
		padding: 6px !important;
	}
}

/* Catering Cards Styles */
.bpb-catering-carousel-wrapper {
	position: relative;
	margin-top: 16px;
	width: 100%;
}

.bpb-catering-cards {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 0;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--bpb-primary) #f0f0f0;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	width: 100%;
	position: relative;
}

.bpb-catering-cards::-webkit-scrollbar {
	height: 8px;
}

.bpb-catering-cards::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.bpb-catering-cards::-webkit-scrollbar-thumb {
	background: var(--bpb-primary);
	border-radius: 4px;
}

.bpb-catering-cards::-webkit-scrollbar-thumb:hover {
	background: #e55a8a;
}

.bpb-catering-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: var(--bpb-primary);
	border: 2px solid var(--bpb-primary);
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.bpb-catering-carousel-btn:hover {
	background: var(--bpb-primary);
	color: white;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.bpb-catering-carousel-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.bpb-catering-carousel-prev {
	left: 10px;
}

.bpb-catering-carousel-next {
	right: 10px;
}

/* Gradient overlays for better UX */
.bpb-catering-carousel-wrapper::before,
.bpb-catering-carousel-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 20%;
	min-width: 80px;
	max-width: 150px;
	z-index: 15;
	pointer-events: auto;
	cursor: pointer;
	transition: opacity 0.3s ease, background 0.3s ease;
}

.bpb-catering-carousel-wrapper::before {
	left: 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.bpb-catering-carousel-wrapper::after {
	right: 0;
	background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

/* Hover effect on gradient areas */
.bpb-catering-carousel-wrapper::before:hover {
	background: linear-gradient(to right, rgba(255, 107, 157, 0.1) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.bpb-catering-carousel-wrapper::after:hover {
	background: linear-gradient(to left, rgba(255, 107, 157, 0.1) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

/* Hide gradients when at start/end */
.bpb-catering-carousel-wrapper.at-start::before {
	opacity: 0;
	pointer-events: none;
}

.bpb-catering-carousel-wrapper.at-end::after {
	opacity: 0;
	pointer-events: none;
}

.bpb-catering-card {
	display: block;
	cursor: pointer;
	position: relative;
	flex: 0 0 auto;
	width: 280px;
	z-index: 1;
}

.bpb-catering-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.bpb-catering-card-checkbox {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	cursor: pointer;
}

.bpb-checkbox-custom {
	display: block;
	width: 24px;
	height: 24px;
	border: 2px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	transition: all 0.2s ease;
	position: relative;
	cursor: pointer;
	pointer-events: auto;
}

.bpb-catering-card:hover .bpb-checkbox-custom {
	border-color: #94a3b8;
}

.bpb-catering-card.is-selected .bpb-checkbox-custom {
	border-color: var(--bpb-primary);
	background: var(--bpb-primary);
}

.bpb-catering-card.is-selected .bpb-checkbox-custom::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	display: block;
}

.bpb-catering-card-content {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.bpb-catering-card:hover .bpb-catering-card-content {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.bpb-catering-card.is-selected .bpb-catering-card-content {
	border-color: var(--bpb-primary);
	box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
	background: #fff7ed;
}

.bpb-catering-card-image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	background: #f3f4f6;
	position: relative;
}

.bpb-catering-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bpb-catering-card:hover .bpb-catering-card-image img {
	transform: scale(1.05);
}

.bpb-catering-card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.bpb-catering-card-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
}

.bpb-catering-card.is-selected .bpb-catering-card-title {
	color: #9a3412;
}

.bpb-catering-card-description {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
	flex: 1;
}

.bpb-catering-card-prices {
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid #e5e7eb;
}

.bpb-catering-card-prices strong {
	font-size: 18px;
	font-weight: 700;
	color: var(--bpb-primary);
	display: block;
}

.bpb-catering-card.is-selected .bpb-catering-card-prices strong {
	color: #9a3412;
}

.bpb-catering-card.is-selected .bpb-catering-card-prices {
	border-top-color: rgba(255, 107, 157, 0.2);
}

@media (max-width: 768px) {
	.bpb-catering-card {
		width: 260px;
	}
	
	.bpb-catering-card-image {
		height: 160px;
	}
	
	.bpb-catering-carousel-btn {
		width: 38px;
		height: 38px;
		font-size: 22px;
	}
	
	.bpb-catering-carousel-prev {
		left: 5px;
	}
	
	.bpb-catering-carousel-next {
		right: 5px;
	}
	
	.bpb-catering-carousel-wrapper::before,
	.bpb-catering-carousel-wrapper::after {
		min-width: 60px;
		max-width: 100px;
	}
}
