.codex-v2-product-actions {
	margin: 18px 0 24px;
	font-family: inherit;
}

.codex-v2-action-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.codex-v2-action-buttons .button,
.codex-v2-primary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border-radius: var(--wp--custom--button--border-radius, 4px);
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.codex-v2-quote-link {
	text-decoration: none !important;
}

.codex-v2-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	line-height: 1;
}

.codex-v2-cart-icon i {
	font-size: 20px;
	line-height: 1;
}

.codex-v2-cart-badge {
	position: absolute;
	top: -9px;
	right: -9px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #e30613;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.codex-v2-cart-badge[hidden] {
	display: none;
}

.codex-v2-quote-cart-shortcut {
	width: 46px;
	min-width: 46px;
	padding-inline: 0 !important;
	text-decoration: none !important;
}

.codex-v2-header-quote-cart,
.mini-cart .codex-v2-header-quote-cart {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 7px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: var(--wp--preset--color--vivid-cyan-blue, #0073e6) !important;
	background: #fff;
	text-decoration: none !important;
	line-height: 1.1;
}

.codex-v2-header-quote-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.codex-v2-header-quote-copy strong {
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.codex-v2-header-quote-copy small {
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.codex-v2-header-quote-cart .codex-v2-cart-icon {
	width: 30px;
	height: 30px;
	background: currentColor;
	color: #fff;
}

.codex-v2-header-quote-cart .codex-v2-cart-icon i {
	font-size: 19px;
}

.codex-v2-panel {
	margin-top: 14px;
	padding: 18px;
	border: 1px solid var(--wp--preset--color--cyan-bluish-gray, #e5e7eb);
	border-radius: 8px;
	background: var(--wp--preset--color--white, #fff);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.codex-v2-panel-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
}

.codex-v2-marketplace-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 12px;
}

.codex-v2-marketplace-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 78px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	text-decoration: none !important;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.codex-v2-marketplace-card:hover {
	transform: translateY(-2px);
	border-color: currentColor;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.codex-v2-marketplace-card img {
	max-width: 128px;
	max-height: 48px;
	object-fit: contain;
}

.codex-v2-trust-strip {
	clear: both;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 24px 0;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	font-family: inherit;
}

.codex-v2-trust-item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 70px;
	padding: 14px 22px;
	border-right: 1px solid #e5e7eb;
	color: #111827;
}

.codex-v2-trust-item:last-child {
	border-right: 0;
}

.codex-v2-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	color: #111827;
}

.codex-v2-trust-icon svg {
	display: block;
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.codex-v2-trust-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.codex-v2-trust-copy strong {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.codex-v2-trust-copy small {
	font-size: 11px;
	line-height: 1.25;
	color: #4b5563;
}

.codex-v2-person-type {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.codex-v2-field-heading {
	margin: 0 0 8px;
	font-weight: 700;
}

.codex-v2-person-type label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
}

.codex-v2-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.codex-v2-quote-form p {
	margin: 0 0 12px;
}

.codex-v2-quote-form label {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.codex-v2-quote-form input,
.codex-v2-quote-form textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font: inherit;
}

.codex-v2-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
}

.codex-v2-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	z-index: 99999;
	width: min(92vw, 680px);
	padding: 14px 18px;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
	transform: translateX(-50%);
	background: #16a34a;
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.codex-v2-toast-error {
	background: #dc2626;
}

.codex-v2-quote-cart {
	margin: 24px 0;
	padding-bottom: 112px;
}

.codex-v2-quote-thank-you {
	width: min(100%, 860px);
	margin: 40px auto;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.codex-v2-quote-thank-you h1 {
	margin-top: 0;
}

.codex-v2-cart-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px auto;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.codex-v2-cart-row input {
	width: 100%;
}

.codex-v2-cart-empty {
	padding: 14px;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	background: #fffbeb;
	color: #92400e;
}

.codex-v2-form-disabled {
	opacity: .65;
	pointer-events: none;
}

.codex-v2-fixed-summary {
	position: fixed;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 9990;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: min(1120px, calc(100vw - 36px));
	margin: 0 auto;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.codex-v2-fixed-summary div {
	display: grid;
	gap: 4px;
	align-content: center;
	min-height: 54px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #f8fafc;
}

.codex-v2-fixed-summary span {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.codex-v2-fixed-summary strong {
	font-size: 18px;
	line-height: 1.1;
}

.codex-v2-footer-update {
	width: 100%;
	min-height: 36px;
	padding: 8px 10px !important;
}

@media (max-width: 1024px) {
	.codex-v2-trust-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.codex-v2-trust-item:nth-child(2n) {
		border-right: 0;
	}

	.codex-v2-trust-item:nth-child(-n+2) {
		border-bottom: 1px solid #e5e7eb;
	}
}

@media (max-width: 768px) {
	.codex-v2-action-buttons,
	.codex-v2-action-buttons .button,
	.codex-v2-primary-btn {
		width: 100%;
	}

	.codex-v2-quote-cart-shortcut {
		width: 100%;
	}

	.codex-v2-form-grid,
	.codex-v2-cart-row {
		grid-template-columns: 1fr;
	}

	.codex-v2-quote-cart {
		padding-bottom: 220px;
	}

	.codex-v2-fixed-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.codex-v2-trust-strip {
		grid-template-columns: 1fr;
	}

	.codex-v2-trust-item {
		border-right: 0;
		border-bottom: 1px solid #e5e7eb;
	}

	.codex-v2-trust-item:last-child {
		border-bottom: 0;
	}
}
