/*
 * Denticare theme (written for Bold Builder 2.x) on Bold Builder 5.x.
 * BB5 wraps row columns in .bt_bb_row_holder / .bt_bb_row_inner_holder and gives boxed cells a flex-basis,
 * so theme rules written for the old markup stop matching. Restores the original layout.
 */

/* Half-boxed sections (image to the edge + boxed content): theme sets the cell to 100% width, BB5 flex-basis overrides it */
.bt_bb_section.bt_bb_section_show_boxed_content:not(.bt_bb_layout_wide) > .bt_bb_port .bt_bb_cell,
.bt_bb_section.bt_bb_section_show_left_boxed_content:not(.bt_bb_layout_wide) > .bt_bb_port .bt_bb_cell,
.bt_bb_section.bt_bb_section_show_right_boxed_content:not(.bt_bb_layout_wide) > .bt_bb_port .bt_bb_cell {
	flex-basis: 100%;
}

/* Theme rules with direct-child row > column selectors, re-targeted through the BB5 holder (generated from style.css / custom.css) */
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 600px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 700px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 800px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 900px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1000px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1100px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1200px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1400px; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 600px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 700px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 800px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 900px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1000px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1100px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1200px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1400px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_600.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 600px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_700.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 700px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_800.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 800px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_900.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 900px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1000.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1000px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1100.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1100px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1200.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1200px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {align-items: center;}
.bt_bb_section.bt_bb_layout_boxed_1400.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 1400px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
@media (max-width: 992px) {
.bt_bb_section.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child,
.bt_bb_section.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child,
.bt_bb_section.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child {padding-left: 20px !important; padding-right: 20px !important; max-width: 100% !important; flex-basis: 100% !important;}
}
@media (max-width: 992px) {
.bt_bb_section.bt_bb_section_show_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content,
.bt_bb_section.bt_bb_section_show_left_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content,
.bt_bb_section.bt_bb_section_show_right_boxed_content .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:only-child .bt_bb_column_content {max-width: 100% !important;}
}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {align-items: center;}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_inner_content,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_inner_content,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_inner_content {max-width: 1200px; margin-left: auto; margin-right: auto;}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {align-items: center;}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_inner_content {max-width: 1200px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {align-items: center;}
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_content_slider_item_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_inner_content {max-width: 1200px; flex-basis: 100%; margin-left: auto; margin-right: auto;}
@media (max-width: 1260px) {
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {padding-left: 50.0001px; padding-right: 50.0001px;}
}
@media (max-width: 1260px) {
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {padding-left: 50.0001px;}
}
@media (max-width: 1260px) {
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {padding-right: 50.0001px;}
}
@media (max-width: 992px) {
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child {padding-left: 40px !important; padding-right: 40px !important; flex-basis: 100% !important; max-width: 100% !important;}
}
@media (max-width: 992px) {
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_content,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_left_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_content,
.bt_bb_layout_wide .bt_bb_content_slider:not(.bt_bb_multiple_slides) .slick-slider .bt_bb_content_slider_item.bt_bb_show_right_boxed_content .bt_bb_row_inner > .bt_bb_row_inner_holder > .bt_bb_column_inner:only-child .bt_bb_column_content {max-width: 100% !important; flex-basis: 100% !important;}
}

/* BB5 sizes boxed/pushed rows via --column-width, which its own column element sets inline; the theme column override does not */
.bt_bb_column[data-width="1"], .bt_bb_column_inner[data-width="1"] { --column-width: 1; }
.bt_bb_column[data-width="2"], .bt_bb_column_inner[data-width="2"] { --column-width: 2; }
.bt_bb_column[data-width="2.4"], .bt_bb_column_inner[data-width="2.4"] { --column-width: 2.4; }
.bt_bb_column[data-width="3"], .bt_bb_column_inner[data-width="3"] { --column-width: 3; }
.bt_bb_column[data-width="4"], .bt_bb_column_inner[data-width="4"] { --column-width: 4; }
.bt_bb_column[data-width="4.8"], .bt_bb_column_inner[data-width="4.8"] { --column-width: 4.8; }
.bt_bb_column[data-width="5"], .bt_bb_column_inner[data-width="5"] { --column-width: 5; }
.bt_bb_column[data-width="6"], .bt_bb_column_inner[data-width="6"] { --column-width: 6; }
.bt_bb_column[data-width="7"], .bt_bb_column_inner[data-width="7"] { --column-width: 7; }
.bt_bb_column[data-width="7.2"], .bt_bb_column_inner[data-width="7.2"] { --column-width: 7.2; }
.bt_bb_column[data-width="8"], .bt_bb_column_inner[data-width="8"] { --column-width: 8; }
.bt_bb_column[data-width="9"], .bt_bb_column_inner[data-width="9"] { --column-width: 9; }
.bt_bb_column[data-width="9.6"], .bt_bb_column_inner[data-width="9.6"] { --column-width: 9.6; }
.bt_bb_column[data-width="10"], .bt_bb_column_inner[data-width="10"] { --column-width: 10; }
.bt_bb_column[data-width="11"], .bt_bb_column_inner[data-width="11"] { --column-width: 11; }
.bt_bb_column[data-width="12"], .bt_bb_column_inner[data-width="12"] { --column-width: 12; }

/* Sticky booking form row (site CSS: .new-single-form { width: 100% }) — on BB2 the width applied to the flex row itself, incl. its -20px margin */
.bt_bb_row_inner.new-single-form > .bt_bb_row_inner_holder {
	margin-right: 20px;
}

/*
 * WordPress 5.9+ prints core global styles (body { padding: 0 }) for classic themes; on archive pages they come after
 * the theme stylesheet and cancel the theme's mobile page padding.
 */
@media (max-width: 640px) {
	html body {
		padding: 1rem;
	}
}

/* Contact Form 7 6.x autop wraps the consent block and the submit button in <p>; CF7 5.1 did not */
.wpcf7-form .n-checkbox > p,
.wpcf7-form .bt_bb_cf7_button > p {
	display: contents;
}

/* CF7 6.x submit spinner: the theme button is display:block, so the (hidden) spinner took an extra line under it */
.wpcf7-form .bt_bb_cf7_button {
	position: relative;
}
.wpcf7-form .bt_bb_cf7_button .wpcf7-spinner {
	position: absolute;
	top: 100%;
	left: 50%;
	margin: 4px 0 0 -12px;
}

/* CF7 5.1 autop left empty <p> (16px margin) around reCAPTCHA in the single-column booking forms; keep that spacing */
.wpcf7-form .bt_bb_cf7_row + .cf7sr-g-recaptcha {
	margin-top: 36px; /* collapses with the row's 20px bottom margin */
	margin-bottom: 16px;
}
