.cpa-addons.cpa-accordions {
	margin-top: 12px;
}

.cpa-group {
	margin: 0 0 14px;
}

.cpa-group {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 520px) {
	.cpa-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.cpa-group {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cpa-group .cpa-field {
	margin: 0;
}

.cpa-group .cpa-field:not(.cpa-type-checkbox):not(.cpa-type-number) {
	grid-column: 1 / -1;
}

.cpa-group .cpa-field.cpa-type-number {
	grid-column: 1 / -1;
}

.cpa-group-title {
	font-weight: 600;
	margin: 0 0 8px;
}

.cpa-acc {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	margin-bottom: 10px;
}

.cpa-acc-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 12px 12px;
	border: 0;
	background: var(--wp--preset--color--background, #f9fafb) !important;
	color: var(--wp--preset--color--foreground, #111827) !important;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	text-transform: none;
	letter-spacing: normal;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font-weight: 600;
	text-align: left;
}

.cpa-acc-toggle:focus {
	outline: 2px solid rgba(59, 130, 246, 0.35);
	outline-offset: -2px;
}

.cpa-acc-title {
	flex: 1;
}

.cpa-acc-meta {
	font-weight: 400;
	color: currentColor;
	opacity: 0.85;
	font-size: 12px;
	white-space: nowrap;
	margin-left: auto;
}

.cpa-acc-toggle::after {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	font-weight: 700;
	flex: 0 0 auto;
}

.cpa-acc-toggle[aria-expanded="true"]::after {
	content: "−";
}

.cpa-acc-panel {
	padding: 12px;
	border-top: 1px solid #e5e7eb;
}

.cpa-field {
	margin: 0 0 12px;
}

.cpa-followup {
	margin-top: 8px;
	margin-bottom: 0;
	padding-left: 18px;
	border-left: 2px solid #e5e7eb;
	grid-column: 1 / -1;
}

.cpa-field-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-weight: 600;
	margin-bottom: 6px;
}

.cpa-field .cpa-price-hint {
	font-weight: 400;
	color: #6b7280;
	font-size: 12px;
}

.cpa-addons .cpa-field-label .cpa-price-hint {
	display: none !important;
}

.cpa-field input[type="text"],
.cpa-field input[type="number"],
.cpa-field select,
.cpa-field textarea {
	width: 100%;
	max-width: 420px;
}

.cpa-options-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	margin-top: 6px;
}

@media (min-width: 520px) {
	.cpa-options-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.cpa-options-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cpa-option {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 7px 8px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	margin: 0;
	font-weight: 400;
	font-size: 14px;
}

.cpa-option-stepper {
	justify-content: space-between;
}

.cpa-option-stepper .cpa-option-left {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.cpa-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}


.cpa-addons .cpa-stepper-btn {
	border: 1px solid #e5e7eb;
	background: #fff;
	padding: 0;
	width: 26px;
	height: 26px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
	color: #111827;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-weight: 700;
}

.cpa-stepper-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	text-align: center;
	font-size: 14px;
	color: inherit;
}

.cpa-stepper-value:empty {
	display: none;
}

.cpa-stepper-help {
	font-size: 12px;
	color: #6b7280;
	margin-top: 3px;
}

.cpa-addons .cpa-unavailable {
	opacity: 0.55;
}

.cpa-stepper-hidden {
	display: none;
}

.cpa-option-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cpa-option-label {
	display: inline-block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpa-option .cpa-price-hint {
	margin-left: auto;
	font-size: 11px;
	color: #6b7280;
}

.cpa-addons .cpa-option .cpa-price-hint {
	display: none !important;
}

.cpa-followup-offscreen {
	position: absolute !important;
	left: -99999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.cpa-followup-summary {
	color: #6b7280;
	font-size: 12px;
	margin-left: 6px;
}

.cpa-breakdown {
	margin-top: 6px;
	font-size: 12px;
	color: #666;
}

.cpa-break-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.cpa-option .cpa-price-hint:empty {
	display: none;
}

.cpa-option input[type="checkbox"],
.cpa-option input[type="radio"] {
	margin: 0;
}

.cpa-modal[hidden] {
	display: none;
}

.cpa-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
}

.cpa-modal-dialog {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	width: 100%;
	max-width: 420px;
	padding: 14px;
}

.cpa-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.cpa-modal-title {
	font-weight: 600;
}

.cpa-modal-close {
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	padding: 4px 6px;
	cursor: pointer;
}

.cpa-modal select {
	width: 100%;
	max-width: 100%;
}
