/* =========================================================================
   FS Bissell Quote Generator — base structural styles
   You can override any of these in your theme's custom CSS.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Product page
   ------------------------------------------------------------------------- */

.fsbqg-product-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.fsbqg-product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 768px) {
	.fsbqg-product-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Image column — sticky only in the two-column layout */
@media (min-width: 769px) {
	.fsbqg-product-image {
		position: sticky;
		top: 24px;
	}
}

.fsbqg-product-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.fsbqg-product-image-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f0f0f0;
	border-radius: 8px;
}

/* Info column */
.fsbqg-product-title {
	font-weight: 700;
	margin: 0 0 16px;
}

.fsbqg-product-description {
	margin-bottom: 24px;
	line-height: 1.6;
}

.fsbqg-product-description p {
	margin: 0 0 12px;
}

/* Price + qty + add row */
.fsbqg-product-add-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.fsbqg-product-base-price {
	background: #f5f5f5;
	border-radius: 24px;
	padding: 8px 20px;
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}

/* Quantity controls (shared between product and customisation options) */
.fsbqg-quantity-control {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #d0d0d0;
	border-radius: 24px;
	overflow: hidden;
}

.fsbqg-qty-btn {
	background: none;
	border: none;
	cursor: pointer;
	width: 36px;
	height: 36px;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	transition: background 0.15s;
}

.fsbqg-qty-btn:hover {
	background: #f0f0f0;
}

.fsbqg-qty-value {
	min-width: 28px;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	user-select: none;
}

/* Primary button */
.fsbqg-btn-primary:disabled,
.fsbqg-add-to-quote-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Variant dropdown */
.fsbqg-variant-wrap {
	margin-bottom: 24px;
}

.fsbqg-variant-label {
	display: block;
	margin: 0 0 8px;
}

.fsbqg-variant-select-wrap {
	position: relative;
	display: inline-block;
}

.fsbqg-variant-select-wrap::after {
	content: '';
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #444;
	pointer-events: none;
}

.fsbqg-variant-select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 24px;
	padding: 10px 44px 10px 18px;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
	min-width: 240px;
	transition: border-color 0.15s;
}

.fsbqg-variant-select:focus {
	outline: none;
	border-color: #1a6fe8;
}

/* Free add-on label */
.fsbqg-custom-option-price--free {
	font-style: italic;
}

/* Customisations section */
.fsbqg-customisations {
	margin-top: 8px;
}

.fsbqg-section-heading {
	font-size: 19px;
	font-weight: 700;
	color: #111;
	margin: 0 0 12px;
}

.fsbqg-quantity-heading {
	margin-bottom: 10px;
}

.fsbqg-custom-group {
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 16px;
}

.fsbqg-custom-group-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
}

.fsbqg-custom-group-desc {
	font-size: 14px;
	color: #666;
	margin: 0 0 16px;
}

.fsbqg-custom-options {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fsbqg-custom-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid #f0f0f0;
}

.fsbqg-custom-option:first-child {
	border-top: none;
	padding-top: 0;
}

.fsbqg-custom-option:last-child {
	padding-bottom: 0;
}

.fsbqg-custom-option-label {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.fsbqg-custom-option-name {
	font-size: 14px;
	font-weight: 500;
}

.fsbqg-custom-option-price {
	font-size: 13px;
	color: #666;
}

/* -------------------------------------------------------------------------
   Header menu quote badge
   ------------------------------------------------------------------------- */

.fs-header-button-wrapper {
	position: relative;
}

.fsbqg-header-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	pointer-events: none;
	z-index: 1;
}

/* -------------------------------------------------------------------------
   Sticky footer bar
   ------------------------------------------------------------------------- */

.fsbqg-footer-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border-top: 1px solid #e2e2e2;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease;
}

.fsbqg-footer-bar--hidden {
	transform: translateY(100%);
	pointer-events: none;
}

.fsbqg-footer-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 32px;
}

@media (max-width: 600px) {
	.fsbqg-footer-bar-inner {
		gap: 16px;
		padding: 12px 16px;
		flex-wrap: wrap;
	}
}

.fsbqg-footer-bar-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fsbqg-footer-bar-col--total {
	margin-left: auto;
}

.fsbqg-footer-bar-col--action {
	margin-left: 0;
}

.fsbqg-footer-bar-label {
	font-size: 15px;
	font-weight: 600;
	color: #1a6fe8;
}

.fsbqg-footer-bar-value {
	font-size: inherit;
	font-weight: 700;
	color: #111;
}

/* -------------------------------------------------------------------------
   Quote page
   ------------------------------------------------------------------------- */

.fsbqg-quote-page {
	max-width: 900px;
	margin: 0 auto;
}

/* Empty state */
.fsbqg-quote-empty {
	background: #f7f7f7;
	border-radius: 12px;
	padding: 60px 24px;
	text-align: center;
}

.fsbqg-quote-empty p {
	margin: 0 0 20px;
	color: #555;
}

/* Table header */
.fsbqg-quote-table-header {
	display: flex;
	justify-content: space-between;
	padding: 0 0 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-weight: 600;
	font-size: inherit;
}

/* Item rows */
.fsbqg-quote-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 16px;
	align-items: start;
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fsbqg-quote-item-image img,
.fsbqg-qi-img-placeholder {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.fsbqg-qi-img-placeholder {
	background: #f0f0f0;
}

.fsbqg-quote-item-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fsbqg-qi-name {
	font-size: inherit;
	font-weight: 700;
}

.fsbqg-qi-short-desc {
	font-size: 15px;
	color: #555;
	margin: 0;
	line-height: 1.4;
}

.fsbqg-qi-customisations {
	font-size: 14px;
	color: #888;
	margin: 0;
}

.fsbqg-qi-remove {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #999;
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	transition: color 0.15s;
}

.fsbqg-qi-remove:hover {
	color: #c0392b;
}

.fsbqg-quote-item-total {
	font-size: inherit;
	font-weight: 600;
	padding-top: 2px;
	white-space: nowrap;
}

@media (max-width: 540px) {
	.fsbqg-quote-item {
		grid-template-columns: 56px 1fr;
	}
	.fsbqg-quote-item-total {
		grid-column: 2;
	}
}

/* Totals block */
.fsbqg-quote-totals {
	padding: 28px 0 0;
	max-width: 340px;
}

.fsbqg-quote-totals-label {
	font-size: inherit;
	font-weight: 700;
	margin: 0 0 12px;
}

.fsbqg-quote-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 14px 0;
	font-size: inherit;
	font-weight: 700;
}

/* Finalise block */
.fsbqg-quote-finalise {
	padding: 28px 0 80px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.fsbqg-quote-name-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
	max-width: 400px;
}

.fsbqg-quote-name-row .fsbqg-quote-email-wrap {
	flex: 1 1 180px;
}

.fsbqg-quote-email-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-width: 400px;
}

.fsbqg-quote-email-wrap label {
	font-size: inherit;
	font-weight: 600;
	color: #444;
}

.fsbqg-quote-email-wrap input[type="email"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.fsbqg-quote-email-wrap input[type="email"]:focus,
.fsbqg-quote-email-wrap input[type="text"]:focus {
	outline: none;
	border-color: #1a6fe8;
}

.fsbqg-quote-email-wrap input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	font-size: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.fsbqg-email-error,
.fsbqg-name-error,
.fsbqg-submit-error {
	font-size: inherit;
	color: #c0392b;
	margin: 0;
}

/* Honeypot — hidden from sighted users and screen readers, but present in the
   DOM/tab order-free so form-filling bots still populate it. */
.fsbqg-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
