/*
Theme Name:  CB Base
Theme URI:   https://www.chillybin.co
Description: Framework-free micro parent theme for Beaver Builder + Themer sites. All layout lives in the builder; this theme is deliberately empty.
Author:      Chillybin
Author URI:  https://www.chillybin.co
Version:     1.0.2
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cb-base
*/

/* Minimal sane defaults — everything else belongs to the builder. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* Fallback header/footer shown only when no Themer layout is assigned. */
.cb-fallback-header,
.cb-fallback-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 2rem;
	flex-wrap: wrap;
}

.cb-fallback-header .cb-site-title {
	margin: 0;
	font-size: 1.25rem;
}

.cb-fallback-header ul {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

/* Bootstrap-modal markup compatibility — pairs with js/modal-shim.js.
   The .modal element doubles as the backdrop (no separate element). */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1050;
	overflow-x: hidden;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.15s linear;
}

.modal.show {
	opacity: 1;
}

.modal-dialog {
	position: relative;
	width: auto;
	max-width: 700px;
	margin: 1.75rem auto;
	padding: 0 1rem;
	pointer-events: none;
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	pointer-events: auto;
	background: #fff;
	border-radius: 0.3rem;
}

.modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1rem;
}

.modal-header .close {
	background: none;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
}

.modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 1rem;
}

.modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 1rem;
}

body.modal-open {
	position: fixed;
	width: 100%;
	overflow: hidden;
}
