/* FPBL Frontend Styles */

.fpbl-addons-wrap,
.fpbl-builder-wrap {
	margin: 0 0 20px;
	padding: 16px;
	border: 0.5px solid #ddd;
	background: #f8f5ef;
	width: 100%;
	box-sizing: border-box;
	border-radius: 8px;
}

.fpbl-builder-title,
.fpbl-addons-title {
	font-size: 14px !important;
	font-weight: 500 !important;
	margin: 0 0 3px !important;
	color: #061bb0 !important;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.fpbl-builder-subtitle,
.fpbl-addons-subtitle {
	font-size: 12px;
	color: #888;
	margin: 0 0 12px;
	line-height: 1.4;
}

.fpbl-builder-rules {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.fpbl-rule-badge {
	background: #061bb0;
	color: #fff;
	font-size: 10px;
	padding: 3px 9px;
	border-radius: 20px;
	font-weight: 500;
	display: inline-block;
	line-height: 1.5;
}

.fpbl-builder-notice {
	padding: 8px 12px;
	font-size: 12px;
	margin-bottom: 10px;
	border-left: 3px solid #c0392b;
	background: #fdf2f2;
	color: #8b1a1a;
	border-radius: 0 4px 4px 0;
}

/* ── Category ── */
.fpbl-category-section { margin-bottom: 12px; }

.fpbl-category-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #061bb0;
	margin: 0 0 6px;
	padding-bottom: 4px;
	border-bottom: 1.5px solid #061bb0;
	display: block;
}

/* ── Item row ── */
.fpbl-item-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	background: #fff;
	border: 0.5px solid #e0e0e0;
	margin-bottom: 5px;
	box-sizing: border-box;
	border-radius: 6px;
	transition: border-color 0.15s, background 0.15s;
}

.fpbl-item-row.fpbl-row-active {
	border: 1.5px solid #061bb0;
	background: #f0f3ff;
}

/* ── Custom checkbox ── */
.fpbl-item-check {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.fpbl-item-check input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.fpbl-checkmark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border: 1.5px solid #ccc;
	border-radius: 3px;
	background: #fff;
	flex-shrink: 0;
	transition: border-color 0.15s, background 0.15s;
	cursor: pointer;
}

.fpbl-checkmark::after {
	content: '';
	display: none;
	width: 4px;
	height: 8px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translateY(-1px);
}

.fpbl-item-check input[type="checkbox"]:checked + .fpbl-checkmark {
	background: #061bb0;
	border-color: #061bb0;
}

.fpbl-item-check input[type="checkbox"]:checked + .fpbl-checkmark::after {
	display: block;
}

/* ── Item info ── */
.fpbl-item-info {
	flex: 1;
	min-width: 0;
}

.fpbl-item-name {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: #111;
}

.fpbl-item-note {
	display: block;
	font-size: 10px;
	color: #999;
	margin-top: 1px;
}

/* ── Price (sits between info and stepper) ── */
.fpbl-item-price {
	font-size: 11px;
	font-weight: 600;
	color: #061bb0;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Stepper ── */
.fpbl-stepper {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	border: 0.5px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	transition: border-color 0.15s, opacity 0.15s;
}

.fpbl-stepper--disabled {
	opacity: 0.3;
	pointer-events: none;
}

.fpbl-row-active .fpbl-stepper {
	border: 1.5px solid #061bb0;
	opacity: 1;
	pointer-events: auto;
}

.fpbl-stepper--plates {
	border: 1.5px solid #061bb0;
	opacity: 1;
	pointer-events: auto;
}

.fpbl-step-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: #f0f0f0;
	color: #555;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.1s, color 0.1s;
}

.fpbl-row-active .fpbl-step-btn,
.fpbl-stepper--plates .fpbl-step-btn {
	background: #e8ecff;
	color: #061bb0;
}

.fpbl-step-btn:hover {
	background: #dde3ff;
	color: #061bb0;
}

.fpbl-step-val {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 26px;
	background: #fff;
	color: #061bb0;
	font-size: 12px;
	font-weight: 700;
	border-left: 0.5px solid #ddd;
	border-right: 0.5px solid #ddd;
	text-align: center;
	flex-shrink: 0;
}

.fpbl-row-active .fpbl-step-val {
	border-left: 1.5px solid #061bb0;
	border-right: 1.5px solid #061bb0;
}

.fpbl-stepper--plates .fpbl-step-val {
	width: 38px;
	font-size: 13px;
	border-left: 1.5px solid #061bb0;
	border-right: 1.5px solid #061bb0;
}

/* ── Plates row ── */
.fpbl-plates-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: #fff;
	border: 0.5px solid #e0e0e0;
	border-radius: 6px;
	margin-top: 10px;
	gap: 10px;
}

.fpbl-plates-label {
	font-size: 13px;
	font-weight: 500;
	color: #111;
}

.fpbl-plates-min {
	font-size: 11px;
	color: #999;
	font-weight: 400;
	margin-left: 4px;
}

/* ── Summary ── */
.fpbl-builder-summary {
	margin-top: 10px;
	border: 0.5px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
}

.fpbl-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	font-size: 12px;
	color: #666;
	background: #fff;
	border-bottom: 0.5px solid #eee;
}

.fpbl-summary-row:last-child { border-bottom: none; }

.fpbl-summary-total {
	background: #061bb0 !important;
	border-bottom: none !important;
	padding: 10px 12px !important;
}

.fpbl-summary-total span,
.fpbl-summary-total .woocommerce-Price-amount,
.fpbl-summary-total .woocommerce-Price-currencySymbol {
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

/* ── Add-ons list ── */
.fpbl-addons-list { display: flex; flex-direction: column; }

.fpbl-addons-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: #061bb0;
	border-radius: 6px;
	margin-top: 10px;
}

.fpbl-addons-summary span,
.fpbl-addons-summary .woocommerce-Price-amount,
.fpbl-addons-summary .woocommerce-Price-currencySymbol {
	color: #fff !important;
	font-weight: 500 !important;
	font-size: 13px !important;
}
