.pfb-flow {
	--pfb-gap: 16px;
	--pfb-accent: #0f766e;
	--pfb-ink: #15211f;
	--pfb-muted: #697672;
	--pfb-surface: #ffffff;
	--pfb-border: #d8e2df;
	color: var(--pfb-ink);
}

.pfb-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.pfb-progress-item {
	align-items: center;
	border: 1px solid var(--pfb-border);
	border-radius: 999px;
	background: #fff;
	color: var(--pfb-muted);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 8px;
	min-height: 38px;
	padding: 8px 14px;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	user-select: none;
	white-space: nowrap;
}

.pfb-progress-title {
	display: inline-block;
	flex: 0 0 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pfb-progress-selection {
	color: currentColor;
	display: inline-block;
	flex: 1 1 52px;
	font-weight: 600;
	min-width: 52px;
	opacity: .9;
	overflow: hidden;
	text-align: start;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pfb-progress-item[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: .55;
}

.pfb-progress-item.is-preselected {
	cursor: default;
	opacity: 1;
}

.pfb-progress-item.is-current {
	background: #fff;
	border-color: var(--pfb-ink);
	color: var(--pfb-ink);
}

.pfb-progress-item.is-completed:not(.is-current) {
	background: #fff;
	border-color: var(--pfb-border);
	color: var(--pfb-muted);
	opacity: 1;
}

.pfb-stage {
	position: relative;
	overflow: hidden;
}

.pfb-step {
	opacity: 0;
	transform: translateX(18px);
	transition: opacity var(--pfb-animation-speed, .35s) ease, transform var(--pfb-animation-speed, .35s) ease;
}

.pfb-step.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.pfb-animation-fade .pfb-step {
	transform: none;
}

.pfb-animation-slide .pfb-step {
	opacity: 1;
}

.pfb-heading {
	color: var(--pfb-ink);
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 18px;
}

.pfb-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pfb-gap);
	padding-bottom: 18px;
}

.pfb-options[data-option-count="1"],
.pfb-options[data-option-count="2"] {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.pfb-options[data-option-count="1"] .pfb-option,
.pfb-options[data-option-count="2"] .pfb-option {
	flex: 0 1 calc((100% - var(--pfb-gap) * 2) / 3);
}

.pfb-option {
	align-items: center;
	background: var(--pfb-surface);
	border: 1px solid var(--pfb-border);
	border-radius: 10px;
	color: var(--pfb-ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	gap: 10px;
	justify-content: center;
	min-height: 132px;
	overflow: hidden;
	padding: 18px;
	text-align: center;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
	width: 100%;
}

.pfb-option:hover {
	border-color: var(--pfb-accent);
	box-shadow: 0 12px 32px rgba(15, 118, 110, .13);
	transform: translateY(-1px);
}

.pfb-option.is-selected {
	background: #ecfbf8;
	border-color: var(--pfb-accent);
	color: #073f3a;
	box-shadow: 0 0 0 2px rgba(15, 118, 110, .14);
}

.pfb-option-image {
	align-items: center;
	display: flex;
	justify-content: center;
	width: 100%;
}

.pfb-option-image img {
	display: block;
	height: auto;
	max-height: 140px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.pfb-option-label {
	display: block;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.pfb-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-top: 18px;
	min-height: 44px;
}

.pfb-back {
	align-items: center;
	appearance: none;
	background: var(--pfb-ink);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: none;
	font-size: 30px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	width: 44px;
}

.pfb-back:hover,
.pfb-back:focus {
	background: #243330;
	color: #fff;
	outline: none;
}

.pfb-status {
	color: var(--pfb-muted);
	font-size: 14px;
	min-height: 1.4em;
}

.pfb-flow.is-loading .pfb-option,
.pfb-flow.is-loading .pfb-progress-item,
.pfb-flow.is-loading .pfb-back {
	pointer-events: none;
	opacity: .7;
}

.pfb-flow.is-finalizing {
	pointer-events: none;
}

.pfb-flow.is-finalizing .pfb-progress,
.pfb-flow.is-finalizing .pfb-stage,
.pfb-flow.is-finalizing .pfb-actions {
	opacity: .32;
	transition: opacity .18s ease;
}

.pfb-empty {
	background: #f5f8f7;
	border: 1px solid var(--pfb-border, #d8e2df);
	border-radius: 8px;
	color: #51605c;
	padding: 18px;
}

@media (max-width: 767px) {
	.pfb-options {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.pfb-heading {
		font-size: 23px;
	}

	.pfb-option {
		min-height: 112px;
	}
}

.pfb-open-flow-builder {
	width: 100%;
}

.pfb-builder-note {
	color: #69727d;
	font-size: 12px;
	line-height: 1.4;
	margin: 8px 0 0;
}

#elementor-panel .elementor-control-pfb_flow_config,
.elementor-control-pfb_flow_config {
	height: 1px !important;
	left: -99999px !important;
	margin: 0 !important;
	min-height: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	pointer-events: none !important;
	position: absolute !important;
	width: 1px !important;
}

.pfb-modal {
	align-items: center;
	background: rgba(17, 24, 39, .55);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 28px;
	position: fixed;
	z-index: 100000;
}

.pfb-modal.is-open {
	display: flex;
}

.pfb-modal.is-media-open .pfb-modal-panel {
	pointer-events: none;
}

.media-modal-backdrop {
	z-index: 100001 !important;
}

.media-modal {
	z-index: 100002 !important;
}

.pfb-modal-panel {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: min(820px, calc(100vh - 56px));
	max-width: 1040px;
	overflow: hidden;
	width: min(1040px, calc(100vw - 56px));
}

.pfb-modal-header,
.pfb-modal-footer {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding: 18px 22px;
}

.pfb-modal-header {
	border-bottom: 1px solid #e5e7eb;
}

.pfb-modal-header strong {
	color: #111827;
	display: block;
	font-size: 18px;
	line-height: 1.2;
}

.pfb-modal-header span {
	color: #6b7280;
	display: block;
	font-size: 12px;
	margin-top: 3px;
}

.pfb-modal-close {
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	cursor: pointer;
	font-size: 16px;
	height: 34px;
	line-height: 1;
	width: 34px;
}

.pfb-modal-body {
	min-height: 420px;
	overflow: auto;
}

.pfb-modal-footer {
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
	gap: 10px;
	justify-content: flex-end;
}

.pfb-modal-notice {
	color: #4b5563;
	padding: 28px;
}

.pfb-builder-shell {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	min-height: 520px;
}

.pfb-builder-sidebar {
	background: #f9fafb;
	border-inline-end: 1px solid #e5e7eb;
	padding: 16px;
}

.pfb-builder-sidebar-title,
.pfb-builder-table-title {
	color: #6b7280;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.pfb-builder-attribute {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #374151;
	cursor: pointer;
	display: flex;
	font: inherit;
	justify-content: space-between;
	margin-bottom: 6px;
	padding: 10px;
	text-align: start;
	width: 100%;
}

.pfb-builder-attribute:hover,
.pfb-builder-attribute.is-selected {
	background: #fff;
	border-color: #d1d5db;
}

.pfb-builder-attribute span {
	font-weight: 600;
}

.pfb-builder-attribute em {
	color: #6b7280;
	font-size: 11px;
	font-style: normal;
}

.pfb-builder-detail {
	padding: 22px;
}

.pfb-builder-detail-header {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.pfb-builder-detail-header h3 {
	color: #111827;
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
}

.pfb-builder-field {
	display: block;
	margin-bottom: 16px;
}

.pfb-builder-field span {
	color: #374151;
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.pfb-builder-field input,
.pfb-builder-field select,
.pfb-term-label {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: none;
	min-height: 36px;
	width: 100%;
}

.pfb-builder-help {
	color: #6b7280;
	font-size: 12px;
	margin: -6px 0 0;
}

.pfb-builder-switch {
	align-items: center;
	color: #374151;
	cursor: pointer;
	display: inline-flex;
	gap: 8px;
	white-space: nowrap;
}

.pfb-builder-switch input {
	display: none;
}

.pfb-builder-switch span {
	background: #d1d5db;
	border-radius: 999px;
	display: inline-block;
	height: 22px;
	position: relative;
	transition: background-color .18s ease;
	width: 42px;
}

.pfb-builder-switch span:before {
	background: #fff;
	border-radius: 999px;
	content: "";
	height: 18px;
	left: 2px;
	position: absolute;
	top: 2px;
	transition: transform .18s ease;
	width: 18px;
}

.pfb-builder-switch input:checked + span {
	background: #2563eb;
}

.pfb-builder-switch input:checked + span:before {
	transform: translateX(20px);
}

.pfb-builder-switch em {
	font-style: normal;
	font-weight: 600;
}

.pfb-term-table {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.pfb-term-row {
	align-items: center;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	display: grid;
	gap: 12px;
	grid-template-columns: 28px 58px minmax(100px, 1fr) auto minmax(160px, 1.2fr) auto auto;
	padding: 12px;
}

.pfb-term-row:first-child {
	border-top: 0;
}

.pfb-term-drag {
	align-items: center;
	align-self: stretch;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #9ca3af;
	cursor: grab;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 28px;
}

.pfb-term-drag:hover,
.pfb-term-drag:focus {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #374151;
	outline: none;
}

.pfb-term-drag:active {
	cursor: grabbing;
}

.pfb-term-drag span {
	display: block;
	font-size: 14px;
	letter-spacing: -2px;
	transform: rotate(90deg);
}

.pfb-term-row-placeholder {
	background: #eff6ff;
	border-top: 1px solid #bfdbfe;
	min-height: 72px;
}

.pfb-term-thumb {
	align-items: center;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	height: 46px;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	width: 46px;
}

.pfb-term-thumb span {
	color: #6b7280;
	font-size: 22px;
	line-height: 1;
}

.pfb-term-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.pfb-term-name {
	color: #111827;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pfb-term-image-button,
.pfb-term-remove-button {
	white-space: nowrap;
}

@media (max-width: 782px) {
	.pfb-modal {
		padding: 12px;
	}

	.pfb-modal-panel {
		max-height: calc(100vh - 24px);
		width: calc(100vw - 24px);
	}

	.pfb-builder-shell {
		grid-template-columns: 1fr;
	}

	.pfb-builder-sidebar {
		border-bottom: 1px solid #e5e7eb;
		border-inline-end: 0;
	}

	.pfb-term-row {
		grid-template-columns: 28px 48px minmax(0, 1fr);
	}

	.pfb-term-row .pfb-builder-switch,
	.pfb-term-label,
	.pfb-term-image-button,
	.pfb-term-remove-button {
		grid-column: 1 / -1;
	}
}

.pfb-product-page-overlay {
	align-items: center;
	background: #fff;
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 999999;
}

.pfb-product-page-spinner {
	animation: pfb-spin .8s linear infinite;
	border: 3px solid #e5e7eb;
	border-top-color: #111827;
	border-radius: 999px;
	height: 42px;
	width: 42px;
}

@keyframes pfb-spin {
	to {
		transform: rotate(360deg);
	}
}
