.wcpf {
	--wcpf-brand: #c22e02;
	--wcpf-brand-dark: #a52600;
	--wcpf-border: #d9dde3;
	--wcpf-text: #20252d;
	--wcpf-muted: #777f8a;
	--wcpf-bg: #ffffff;
	--wcpf-hover: #fff4f0;

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

.wcpf-field {
	min-width: 0;
}

.wcpf-label {
	display: block;
	margin: 0 0 9px;
	color: var(--wcpf-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.wcpf-dropdown {
	position: relative;
	width: 100%;
}

.wcpf-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	padding: 13px 16px;
	border: 1px solid var(--wcpf-border);
	border-radius: 8px;
	background: var(--wcpf-bg);
	color: var(--wcpf-text);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.wcpf-toggle:hover,
.wcpf-dropdown.is-open .wcpf-toggle {
	border-color: var(--wcpf-brand);
}

.wcpf-dropdown.is-open .wcpf-toggle {
	box-shadow: 0 0 0 3px rgba(194, 46, 2, .10);
}

.wcpf-toggle:disabled {
	opacity: .55;
	cursor: not-allowed;
	background: #f7f8f9;
}

.wcpf-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	color: var(--wcpf-brand);
	transition: transform .2s ease;
}

.wcpf-chevron svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wcpf-dropdown.is-open .wcpf-chevron {
	transform: rotate(180deg);
}

.wcpf-menu {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 7px);
	left: 0;
	right: 0;
	display: none;
	max-height: 300px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--wcpf-border);
	border-radius: 8px;
	background: var(--wcpf-bg);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
}

.wcpf-dropdown.is-open .wcpf-menu {
	display: block;
}

.wcpf-option,
.wcpf-empty,
.wcpf-loading,
.wcpf-error {
	margin: 0;
	padding: 12px 13px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.45;
}

.wcpf-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--wcpf-text);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.wcpf-option:hover,
.wcpf-option:focus {
	outline: none;
	background: var(--wcpf-hover);
	color: var(--wcpf-brand);
}

.wcpf-model-name {
	flex: 1;
}

.wcpf-part-arrow {
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	color: var(--wcpf-brand);
}

.wcpf-part-arrow svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wcpf-empty,
.wcpf-loading {
	color: var(--wcpf-muted);
	cursor: default;
}

.wcpf-error {
	color: #b42318;
	background: #fff4f2;
}

.wcpf-notice {
	margin: 0;
}

@media (max-width: 767px) {
	.wcpf {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.wcpf-menu {
		max-height: 260px;
	}
}
