.wp-block-bookitfast-properties {
	padding: 10px;
	border: 1px dashed #ccc;
	background: #f9f9f9;
}

.bif-bookitfast-container {
	padding: 10px;
	border: 1px dashed #ccc;
	background: #f9f9f9;
}

.bif-bookitfast-container .bif-form-inline {
	display: flex;
	gap: 20px;
	align-items: center;
}

.bif-bookitfast-container .bif-form-group {
	margin-bottom: 20px;
}

.bif-bookitfast-container .bif-btn {
	background-color: #28a745;
	color: #fff;
}

.bookitfast_availability_grid_div {
	margin-bottom: 20px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f9f9f9;
}

.property_heading_container h2 {
	font-size: 1.5em;
	margin: 0;
}

.bookitfast_day_cell {
	display: inline-block;
	width: 100px;
	height: 100px;
	margin: 5px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.cell_date_available {
	background-color: #e0f7e0;
	border-color: #3d9140;
}

.cell_date_unavailable {
	background-color: #f9e0e0;
	border-color: #ff4136;
}

.mandatory_extras,
.optional_extras {
	margin-top: 10px;
}

.mandatory_extras h4,
.optional_extras h4 {
	font-size: 1.2em;
	margin-bottom: 5px;
}

.bif-btn {
	padding: 5px 10px;
	font-size: 0.9em;
}

.bif-btn-danger {
	background-color: #ff4141;
}

.bif-alert {
	margin-top: 20px;
	padding: 10px;
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
}

.availability-results {
	margin-top: 20px;
}

.availability-item {
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.bif-bookitfast_availability_grid_div {
	margin-bottom: 20px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #f9f9f9;
}

.bif-bookitfast_availability_table_div .bif-availability_table {
	width: 100%;
	border: 1px solid #ddd;
}

.property_heading_container h2 {
	font-size: 1.5em;
	margin: 0;
}

.bif-bookitfast_day {
	font-size: 0.8em;
}

.bif-bookitfast_day_cell {
	display: inline-block;
	width: 100px;
	height: 100px;
	margin: 5px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.bif-cell_date_available {
	background-color: #e0f7e0;
	border-color: #3d9140;
	width: 100%;
}

.bif-cell_date_unavailable {
	background-color: #f9e0e0;
	border-color: #ff4136;
}

.bif-mandatory_extras,
.bif-optional_extras {
	margin-top: 10px;
}

.bif-mandatory_extras h4,
.bif-optional_extras h4 {
	font-size: 1.2em;
	margin-bottom: 5px;
}

.bif-btn {
	padding: 5px 10px;
	font-size: 0.6em;
}

.bif-availability_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.bif-bookitfast_day_cell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100px;
	height: 100px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 10px;
	background-color: #f9f9f9;
	transition: transform 0.2s ease;
}

.bif-bookitfast_day_cell:hover {
	transform: scale(1.05);
}

.cell_date_available {
	background-color: #e0f7e0;
	border-color: #3d9140;
}

.cell_date_unavailable {
	background-color: #f9e0e0;
	border-color: #ff4136;
}

.bif-bookitfast_availability_cell {
	margin-top: 5px;
	font-size: 0.6em;
}

.bif-avail_rate {
	width: 100%;
	font-weight: bold;
	color: #333;
}

.bif-property_summary_detail_row {
	display: flex;
	flex-direction: row;
}

.bif-property_summary_detail_row div {
	flex-basis: 50%;
	flex-grow: 1;
}

/* Editor-specific button styling for preview */
.bif-gift-certificate-block .bif-gift-certificate-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	border: none;
	font-size: 16px;
	transition: all 0.2s ease;
}

.bif-gift-certificate-block .bif-gift-certificate-button:hover {
	transform: translateY(-1px);
	opacity: 0.9;
}

/* Override WordPress editor styles with maximum specificity for BIF buttons */
div.editor-styles-wrapper button.bif-btn,
div.editor-styles-wrapper button.bif-btn-primary,
div.editor-styles-wrapper button.bif-btn-secondary,
div.editor-styles-wrapper button.bif-btn-select,
div.editor-styles-wrapper button.bif-btn-selected,
div.editor-styles-wrapper .bif-booking-container button.bif-btn,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-primary,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-secondary,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-select,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-selected {
	color: var(--bif-button-text-color, white) !important;
}

/* Primary button specific styling */
div.editor-styles-wrapper button.bif-btn-primary,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-primary,
.editor-styles-wrapper .bif-booking-container .bif-btn-primary,
.bif-booking-container .bif-btn-primary {
	background: var(--bif-button-color, #0073aa) !important;
	color: var(--bif-button-text-color, white) !important;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Primary button hover states */
div.editor-styles-wrapper button.bif-btn-primary:hover,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-primary:hover,
.editor-styles-wrapper .bif-booking-container .bif-btn-primary:hover,
.bif-booking-container .bif-btn-primary:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	color: var(--bif-button-text-color, white) !important;
}

/* Secondary button styling */
div.editor-styles-wrapper button.bif-btn-secondary,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-secondary,
.editor-styles-wrapper .bif-btn-secondary {
	background: #6b7280 !important;
	color: #fff !important;
}

/* Select button styling */
div.editor-styles-wrapper button.bif-btn-select,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-select,
.editor-styles-wrapper .bif-btn-select {
	background: #3b82f6 !important;
	color: #fff !important;
}

/* Selected button styling */
div.editor-styles-wrapper button.bif-btn-selected,
div.editor-styles-wrapper .bif-booking-container button.bif-btn-selected,
.editor-styles-wrapper .bif-btn-selected {
	background: #10b981 !important;
	color: #fff !important;
}

/* Generic BIF button styling */
div.editor-styles-wrapper button.bif-btn,
div.editor-styles-wrapper .bif-booking-container button.bif-btn,
.editor-styles-wrapper .bif-btn {
	color: var(--bif-button-text-color, white) !important;
}

/* Override any generic button styles in editor that might interfere */
.block-editor-default-block-appender textarea.block-editor-default-block-appender__content,
.editor-styles-wrapper,
div.editor-styles-wrapper input,
div.editor-styles-wrapper select,
div.editor-styles-wrapper textarea {
	color: inherit !important;
}

/* Terms Checkbox & Privacy Consent */
.bif-terms-checkbox,
.bif-privacy-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.5rem;
	background: #f7fafc;
	border-radius: 12px;
	margin: 1.5rem 0;
}

.bif-terms-checkbox input[type="checkbox"],
.bif-privacy-consent input[type="checkbox"] {
	margin-top: 0.25rem;
	width: 1.125rem;
	height: 1.125rem;
	margin-right: 0.75rem;
	accent-color: #3b82f6;
}

.bif-terms-checkbox label,
.bif-privacy-consent label {
	color: #4a5568;
	line-height: 1.6;
	cursor: pointer;
}

.bif-terms-checkbox a,
.bif-privacy-consent a {
	color: #4299e1;
	text-decoration: none;
	font-weight: 600;
}

.bif-terms-checkbox a:hover,
.bif-privacy-consent a:hover {
	text-decoration: underline;
}