/* WooCommerce Bundle & Frequently Bought Together */
.pof-bundle-selector,
.pof-fbt,
.pof-variation-pills-wrap,
.pof-bundle-selector *,
.pof-fbt *,
.pof-variation-pills-wrap * {
	box-sizing: border-box;
	font-family: "Poppins", sans-serif !important;
}


/* Elementor/theme button rules sometimes override the HTML hidden attribute. */
.pof-fbt [hidden],
.pof-bundle-selector [hidden],
.pof-variation-pills-wrap [hidden] {
	display: none !important;
}

/* Main WooCommerce variation dropdowns become pills, while remaining functional. */
form.variations_form.pof-pills-enabled table.variations {
	display: none !important;
}

.pof-variation-pills-wrap {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	color: #111827;
}

.pof-variation-pills-group {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.pof-variation-pills-label {
	min-width: 48px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.pof-variation-pills {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pof-variation-pill,
.pof-fbt-pill {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 1px solid #000 !important;
	background: transparent !important;
	color: #111827 !important;
	border-radius: 5px !important;
	padding: 5px 7px !important;
	margin: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.pof-variation-pill:hover,
.pof-variation-pill:focus,
.pof-fbt-pill:hover,
.pof-fbt-pill:focus {
	background: #fff !important;
	color: #111827 !important;
	border-color: #5F2F27 !important;
	outline: none !important;
}

.pof-variation-pill.is-active,
.pof-variation-pill.is-active:hover,
.pof-variation-pill.is-active:focus,
.pof-fbt-pill.is-active,
.pof-fbt-pill.is-active:hover,
.pof-fbt-pill.is-active:focus {
	background: #5F2F27 !important;
	color: #fff !important;
	border-color: #5F2F27 !important;
	box-shadow: 0 0 0 1px #fff inset, 0 0 0 1px #5F2F27 !important;
}

.pof-variation-pill:disabled,
.pof-variation-pill.is-disabled,
.pof-fbt-pill:disabled,
.pof-fbt-pill.is-disabled {
	opacity: .38 !important;
	cursor: not-allowed !important;
	text-decoration: line-through;
}

/* Bundle & Save */
.pof-bundle-selector {
	width: 100%;
	color: #111827;
}

.pof-bundle-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.pof-bundle-title {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex-wrap: wrap;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .02em;
}

.pof-bundle-title strong {
	font-size: 12px;
}

.pof-bundle-title span {
	font-size: 10px;
	color: #7b8190;
}

.pof-save-up-to,
.pof-save-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 3px;
	background: #eaf7ef;
	color: #28734a;
	font-size: 10px;
	font-weight: 600;
	padding: 3px 6px;
	white-space: nowrap;
}

.pof-bundle-options {
	display: grid;
	gap: 8px;
}

.pof-bundle-option {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100% !important;
	min-height: 66px !important;
	border: 1px solid #d8dce3 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #111827 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	padding: 11px 14px !important;
	margin: 0 !important;
	cursor: pointer !important;
	text-align: left !important;
	box-shadow: none !important;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.pof-bundle-option:hover,
.pof-bundle-option:focus {
	background: #fff !important;
	color: #111827 !important;
	border-color: #9ba3b2 !important;
	outline: none !important;
}

.pof-bundle-option.is-selected,
.pof-bundle-option.is-selected:hover,
.pof-bundle-option.is-selected:focus {
	border-color: #9D5F52 !important;
	box-shadow: 0 0 0 1px rgba(227, 184, 91, .18) !important;
	background: #fffdf8 !important;
	color: #111827 !important;
}

.pof-bundle-option:disabled {
	opacity: .45;
	cursor: not-allowed !important;
}

.pof-bundle-choice {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.pof-radio-dot {
	width: 15px;
	height: 15px;
	border: 1px solid #9aa2b1;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	flex: 0 0 15px;
}

.pof-radio-dot::after {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #5F2F27;
	transform: scale(0);
	transition: transform .15s ease;
}

.pof-bundle-option.is-selected .pof-radio-dot {
	border-color: #5F2F27;
}

.pof-bundle-option.is-selected .pof-radio-dot::after {
	transform: scale(1);
}

.pof-bundle-name {
	font-size: 13px;
	white-space: nowrap;
}

.pof-bundle-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
	flex: 0 0 auto;
}

.pof-bundle-old-total {
	font-size: 10px;
	color: #9ca3af;
}

.pof-bundle-total {
	font-size: 13px;
	color: #111827;
}

.pof-bundle-unit {
	font-size: 9px;
	color: #9ca3af;
	margin-top: 3px;
}

.pof-manual-quantity {
	margin-top: 12px;
	border: 1px solid #d8dce3;
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.pof-manual-quantity > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pof-manual-quantity strong {
	font-size: 13px;
}

.pof-manual-quantity span {
	font-size: 10px;
	color: #818898;
}

.pof-qty-control,
.pof-fbt-qty {
	display: grid;
	grid-template-columns: 36px 42px 36px;
	height: 38px;
	border: 1px solid #8b93a2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	flex: 0 0 auto;
}

.pof-qty-control button,
.pof-qty-control input,
.pof-fbt-qty button,
.pof-fbt-qty input {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	border-right: 1px solid #cdd2da !important;
	background: #fff !important;
	color: #5F2F27 !important;
	text-align: center !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: 100% !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.pof-qty-control button,
.pof-fbt-qty button {
	font-size: 18px !important;
	cursor: pointer;
}

.pof-qty-control button:hover,
.pof-qty-control button:focus,
.pof-fbt-qty button:hover,
.pof-fbt-qty button:focus {
	background: #fff !important;
	color: #5F2F27 !important;
}

.pof-qty-control button:last-child,
.pof-fbt-qty button:last-child {
	border-right: 0 !important;
}

.pof-qty-control input,
.pof-fbt-qty input {
	font-size: 14px !important;
	-moz-appearance: textfield !important;
}

.pof-qty-control input::-webkit-outer-spin-button,
.pof-qty-control input::-webkit-inner-spin-button,
.pof-fbt-qty input::-webkit-outer-spin-button,
.pof-fbt-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

form.pof-bundle-enabled .quantity {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Frequently Bought Together */
.pof-fbt {
	width: 100%;
	margin-top: 18px;
	color: #111827;
}

.pof-fbt-heading {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111827 !important;
}

.pof-fbt-list {
	display: grid;
	gap: 10px;
}

.pof-fbt-row {
	border: 1px solid #d8dce3;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pof-fbt-row.is-selected {
	border-color: #5F2F27;
	box-shadow: 0 0 0 1px rgba(23, 37, 84, .08);
}

.pof-fbt-row.is-unavailable {
	opacity: .58;
}

.pof-fbt-summary {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) auto;
	align-items: center;
	min-height: 82px;
}

.pof-fbt-image-wrap {
	align-self: stretch;
	display: grid;
	place-items: center;
	background: #fafafa;
	padding: 8px;
}

.pof-fbt-image {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.pof-fbt-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 12px 14px;
}

.pof-fbt-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}

.pof-fbt-price {
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #111827;
}

.pof-fbt-price .woocommerce-Price-amount,
.pof-fbt-price .woocommerce-Price-currencySymbol {
	font: inherit !important;
	color: inherit !important;
}

.pof-fbt-actions {
	padding: 12px 14px 12px 0;
}

.pof-fbt-select,
.pof-add-all-button {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 1px solid #5F2F27 !important;
	background: #5F2F27 !important;
	color: #fff !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	cursor: pointer !important;
	transition: opacity .16s ease, background .16s ease, border-color .16s ease !important;
}

.pof-fbt-select {
	min-width: 114px !important;
	min-height: 38px !important;
	padding: 9px 15px !important;
	border-radius: 8px !important;
	font-size: 11px !important;
	line-height: 1 !important;
}

.pof-fbt-select:hover,
.pof-fbt-select:focus,
.pof-add-all-button:hover,
.pof-add-all-button:focus {
	background: #5F2F27 !important;
	border-color: #5F2F27 !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: .92;
}

.pof-fbt-select:disabled,
.pof-add-all-button:disabled {
	cursor: not-allowed !important;
	opacity: .5 !important;
}

.pof-fbt-options {
	border-top: 1px solid #e6e8ed;
	padding: 13px 14px 14px;
	background: #fbfcff;
}

.pof-fbt-option-groups {
	display: grid;
	gap: 11px;
}

.pof-fbt-option-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.pof-fbt-option-label {
	min-width: 54px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #111827;
}

.pof-fbt-pills {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.pof-fbt-option-message {
	margin-top: 10px;
	font-size: 10px;
	color: #7b8190;
}

.pof-fbt-remove {
	appearance: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 9px 0 0 !important;
	min-width: 0 !important;
	color: #8b2434 !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
}

.pof-fbt-remove:hover,
.pof-fbt-remove:focus {
	background: transparent !important;
	color: #8b2434 !important;
	outline: none !important;
}

.pof-fbt-status {
	min-height: 18px;
	margin: 8px 0 4px;
	font-size: 11px;
	line-height: 1.4;
	color: #6b7280;
}

.pof-fbt-status.is-error {
	color: #b42318;
}

.pof-fbt-status.is-success {
	color: #28734a;
}

.pof-add-all-button {
	display: block !important;
	width: 100% !important;
	min-height: 46px !important;
	padding: 12px 18px !important;
	margin: 0 !important;
	border-radius: 7px !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
}

/* The plugin's bottom button replaces Elementor/WooCommerce's visible button only when JS initializes FBT. */
body.pof-fbt-active form.cart .single_add_to_cart_button {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 767px) {
	.pof-variation-pills-group {
		gap: 10px;
	}

	.pof-variation-pills-label {
		min-width: 42px;
	}

	.pof-variation-pill,
	.pof-fbt-pill {
		font-size: 12px !important;
	}

	.pof-bundle-option {
		padding: 10px 11px !important;
		gap: 9px !important;
	}

	.pof-bundle-choice {
		gap: 7px;
	}

	.pof-save-badge {
		font-size: 8px;
		padding: 3px 4px;
	}

	.pof-manual-quantity {
		padding: 11px;
	}

	.pof-bundle-name {
		font-size: 12px;
	}

	.pof-fbt-summary {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		min-height: 76px;
	}

	.pof-fbt-image {
		width: 48px;
		height: 48px;
	}

	.pof-fbt-info {
		padding: 10px;
	}

	.pof-fbt-name,
	.pof-fbt-price {
		font-size: 11px;
	}

	.pof-fbt-actions {
		padding: 10px 10px 10px 0;
	}

	.pof-fbt-select {
		min-width: 92px !important;
		padding: 8px 10px !important;
		font-size: 9px !important;
	}

	.pof-fbt-qty {
		grid-template-columns: 30% 40% 30%;
		height: 34px;
	}
}

@media (max-width: 480px) {
	.pof-fbt-summary {
		grid-template-columns: 58px minmax(0, 1fr);
	}

	.pof-fbt-actions {
		grid-column: 1 / -1;
		padding: 0 10px 10px;
	}

	.pof-fbt-select,
	.pof-fbt-qty {
		margin-left: auto;
	}
}
