/* Quick Callback Request — shared + bottom-bar + floating-button styles.
   All selectors are namespaced (wcyb-* / module class names) on purpose: this stylesheet
   is loaded on every storefront page via the header hook, so a bare generic id like
   #name or #email would leak into and break unrelated forms elsewhere on the same page
   (e.g. the shop's own Contact Us form). Never add a bare generic id/class selector here. */

.wcyb-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.input_wecallyouback {
	box-sizing: border-box;
	border: 1px solid #ccc;
	width: 170px;
	height: 32px;
	font-size: 13px;
	vertical-align: top;
	box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
	padding: 5px 8px;
	background: rgba(255, 255, 255, 0.85);
	margin: 0;
	border-radius: 5px;
}

#wcyb-error-name, #wcyb-error-email, #wcyb-error-phone, #wcyb-error-gdpr {
	font-size: .7rem;
	font-weight: 700;
	color: #f54c3e;
}

#wcyb-conf {
	color: green;
	display: none;
}

#wcyb-submit, #wcyb-clear {
	outline: none;
}

#wcyb-other-wrap:empty {
	display: none;
}

.wcyb-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcyb-gdpr-label {
	font-size: 11px;
	display: block;
	margin: 4px 0 0;
	text-align: left;
	font-weight: normal;
}

.wcyb-close {
	position: absolute;
	cursor: pointer;
	width: 22px;
	height: 22px;
	font-size: 16px;
	line-height: 22px;
	text-align: center;
	color: #444;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
	z-index: 10;
}

/* Bottom bar */
.wcyb-bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20000;
	box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.3);
	padding: 12px 150px 12px 16px;
}
.wcyb-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.wcyb-bottom-text {
	font-size: 12px;
	line-height: 1.35;
	max-width: 300px;
	text-align: left;
}
.wcyb-bottom .wcyb-close {
	top: 4px;
	right: 134px;
}
.wcyb-bottom #wcyb-rep {
	position: absolute;
	right: 12px;
	bottom: 0;
	pointer-events: none;
}
.wcyb-bottom #wcyb-rep img {
	display: block;
}
.wcyb-bottom #wcyb-conf,
.wcyb-bottom .wcyb-errors {
	position: absolute;
	bottom: 100%;
	left: 16px;
	margin-bottom: 6px;
	text-align: left;
}
.wcyb-bottom #wcyb-conf {
	background: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.wcyb-bottom .wcyb-errors > div {
	background: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	margin-bottom: 2px;
}
.wcyb-bottom .wcyb-errors > div:empty {
	display: none;
}
@media screen and (max-width: 960px) {
	.wcyb-bottom #wcyb-rep { display: none; }
	.wcyb-bottom { padding-right: 40px; }
	.wcyb-bottom .wcyb-close { right: 8px; }
}

/* Floating button + modal */
.btn-floating {
	position: fixed;
	right: 0;
	margin-right: 10px;
	margin-bottom: 10px;
	bottom: 0;
	z-index: 999;
	outline: none;
}
.btn-floating .float {
	border-radius: 50%;
	width: 70px;
	height: 70px;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* Larger, clearly visible phone icon inside the round button (and never shrunk). */
.btn-floating .float svg {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
}
.btn-floating .btn-floating-container {
	position: absolute;
	right: 0;
	bottom: calc(100% + 1rem);
	display: none; /* shown by circular.js via .wcyb-open; no Bootstrap .collapse needed */
}
.btn-floating.wcyb-open .btn-floating-container {
	display: block;
}
.btn-floating .btn-floating-container, .btn-floating > .btn i {
	transition: .25s ease-out;
}
.btn-floating .btn-floating-item:last-of-type {
	border-bottom-left-radius: .5rem;
	border-bottom-right-radius: .5rem;
	background: #e9e9e9;
}
.btn-floating .btn-floating-item:first-of-type {
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
	background: #e9e9e9;
}
.btn-floating .btn-floating-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	padding: .5rem .75rem;
	font-weight: 500;
	color: #363a41;
	white-space: nowrap; /* keep the call-to-action on a single line */
	transition: .25s ease-out;
}
/* Stop the flex row from squashing the icon to a sliver (it rendered ~5px wide). */
.btn-floating .btn-floating-item svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
#callrequest {
	outline: none;
}
.btn-floating--left {
	right: auto;
	left: 0;
	margin-right: 0;
	margin-left: 10px;
}
.btn-floating--left .btn-floating-container {
	right: auto;
	left: 0;
}

/* Self-contained modal overlay, driven by circular.js (.wcyb-show) instead of the
   theme's Bootstrap. Scoped to #callrequestmodal and specified by id, so it shows
   correctly whether the theme ships Bootstrap 4, Bootstrap 5, or neither, and never
   stays invisible behind a leftover .modal.fade{opacity:0} rule. */
#callrequestmodal {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: none;
	opacity: 1;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.5);
	-webkit-overflow-scrolling: touch;
}
#callrequestmodal.wcyb-show {
	display: block;
}
#callrequestmodal .modal-dialog {
	display: flex;
	align-items: center;
	/* Vertically centre the dialog (like Bootstrap's .modal-dialog-centered);
	   min-height keeps it centred yet lets it grow and scroll on short screens. */
	min-height: calc(100% - 3.5rem);
	margin: 1.75rem auto;
	max-width: 500px;
	width: calc(100% - 1rem);
	/* Neutralise the theme's `.modal.fade .modal-dialog { transform: translate(0,-50px) }`,
	   which applied because this modal uses its own .wcyb-show class, not Bootstrap's
	   .show, and was pulling the dialog up against the top of the page. */
	transform: none;
	pointer-events: auto;
}
#callrequestmodal .modal-content {
	width: 100%;
	background: #fff;
	border: 0;
	border-radius: 0.4rem;
	box-shadow: 0 12px 45px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}
#callrequestmodal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #e6e6e6;
}
#callrequestmodal .modal-header .modal-title {
	margin: 0;
	font-size: 1.1rem;
}
#callrequestmodal .modal-header .close {
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	color: #888;
	cursor: pointer;
}
#callrequestmodal .modal-header .close:hover {
	color: #333;
}
body.wcyb-modal-lock {
	overflow: hidden;
}

/* Modal — explicit stacked layout, independent of whatever the theme does to bare
   .form-group/.form-control elements, so fields never render side-by-side unexpectedly. */
#callrequestmodal .modal-body {
	text-align: left;
	padding: 1.25rem;
}
#callrequestmodal .form-group {
	display: block !important;
	float: none !important;
	width: 100% !important;
	clear: both;
	margin: 0 0 1rem 0;
}
#callrequestmodal .form-control,
#callrequestmodal select.input_wecallyouback {
	display: block !important;
	float: none !important;
	width: 100% !important;
	height: auto;
	box-sizing: border-box;
	padding: .5rem .75rem;
	border: 1px solid #ced4da;
	border-radius: .25rem;
	background: #fff;
	margin: 0;
}
#callrequestmodal label {
	display: block;
	font-weight: 600;
	margin-bottom: .25rem;
}
#callrequestmodal .md-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: .4rem;
	font-weight: normal;
}
#callrequestmodal .modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
}
#callrequestmodal #wcyb-conf {
	position: static !important;
	float: none !important;
	left: auto !important;
	margin: .5rem 0 0 !important;
	font-size: 1rem !important;
}
