.rfqp-pricing,
.rfqp-pricing * {
	box-sizing: border-box;
}

.rfqp-pricing {
	--rfqp-red: #e7302a;
	--rfqp-violet: #29235c;
	--rfqp-night: #00002d;
	--rfqp-white: #fff;
	position: relative;
	width: 100%;
	margin: 18px 0 16px;
	padding: 0;
	color: var(--rfqp-night);
	font-family: Inter, Montserrat, Arial, Helvetica, sans-serif;
}

.rfqp-pricing[hidden] {
	display: none !important;
}

.rfqp-state {
	display: none;
	margin: 0;
	padding: 13px 15px;
	border-left: 4px solid var(--rfqp-red);
	border-radius: 10px;
	background: rgba(41, 35, 92, 0.07);
	color: var(--rfqp-night);
	font-size: 0.84rem;
	font-weight: 750;
	line-height: 1.42;
}

.rfqp-state.is-visible {
	display: block;
}

.rfqp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 11px;
}

.rfqp-grid:empty {
	display: none;
}

.rfqp-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 132px;
	flex-direction: column;
	justify-content: space-between;
	margin: 0 !important;
	padding: 15px 15px 13px;
	overflow: hidden;
	border: 2px solid rgba(41, 35, 92, 0.17);
	border-radius: 15px;
	background: var(--rfqp-white);
	box-shadow: 0 5px 16px rgba(0, 0, 45, 0.05);
	color: var(--rfqp-night);
	cursor: pointer;
	transition:
		border-color 170ms ease,
		box-shadow 170ms ease,
		transform 170ms ease,
		background 170ms ease,
		color 170ms ease;
}

.rfqp-card:not(.is-unavailable):hover {
	border-color: rgba(41, 35, 92, 0.52);
	box-shadow: 0 10px 24px rgba(0, 0, 45, 0.11);
	transform: translateY(-2px);
}

.rfqp-card.is-selected {
	border-color: var(--rfqp-night);
	background:
		radial-gradient(circle at 100% 0, rgba(231, 48, 42, 0.2), transparent 38%),
		var(--rfqp-night);
	box-shadow: 0 13px 27px rgba(0, 0, 45, 0.23);
	color: var(--rfqp-white);
}

.rfqp-card.is-unavailable {
	cursor: not-allowed;
	filter: grayscale(0.5);
	opacity: 0.48;
}

.rfqp-card input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.rfqp-card:focus-within {
	outline: 3px solid var(--rfqp-red);
	outline-offset: 3px;
}

.rfqp-card-top,
.rfqp-price-row,
.rfqp-card-foot {
	display: flex;
	align-items: center;
}

.rfqp-card-top {
	justify-content: space-between;
	gap: 8px;
	min-height: 25px;
	flex-wrap: wrap;
}

.rfqp-quantity-label {
	font-size: 0.9rem;
	font-weight: 900;
	line-height: 1.2;
}

.rfqp-discount,
.rfqp-best {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 23px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 950;
	letter-spacing: 0.025em;
	line-height: 1;
	white-space: nowrap;
}

.rfqp-discount {
	background: var(--rfqp-red);
	color: var(--rfqp-night);
}

.rfqp-best {
	background: var(--rfqp-violet);
	color: var(--rfqp-white);
}

.rfqp-card.is-selected .rfqp-best {
	background: var(--rfqp-red);
	color: var(--rfqp-night);
}

.rfqp-price-row {
	align-items: baseline;
	gap: 7px;
	margin-top: 9px;
	flex-wrap: wrap;
}

.rfqp-price-row strong {
	color: inherit;
	font-size: clamp(1.45rem, 3vw, 1.8rem);
	font-weight: 950;
	letter-spacing: -0.045em;
	line-height: 1;
}

.rfqp-price-row span {
	color: rgba(0, 0, 45, 0.61);
	font-size: 0.69rem;
	font-weight: 750;
}

.rfqp-card.is-selected .rfqp-price-row span {
	color: rgba(255, 255, 255, 0.72);
}

.rfqp-card-foot {
	justify-content: space-between;
	gap: 8px;
	margin-top: 11px;
}

.rfqp-saving {
	color: var(--rfqp-violet);
	font-size: 0.71rem;
	font-weight: 850;
	line-height: 1.2;
}

.rfqp-card.is-selected .rfqp-saving {
	color: var(--rfqp-white);
}

.rfqp-selected-mark {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: transparent;
	font-size: 0.64rem;
	font-weight: 850;
	line-height: 1;
	white-space: nowrap;
}

.rfqp-selected-mark::before {
	display: grid;
	width: 17px;
	height: 17px;
	place-items: center;
	border: 1px solid rgba(41, 35, 92, 0.24);
	border-radius: 50%;
	color: transparent;
	content: "✓";
	font-size: 0.68rem;
}

.rfqp-card.is-selected .rfqp-selected-mark {
	color: var(--rfqp-white);
}

.rfqp-card.is-selected .rfqp-selected-mark::before {
	border-color: var(--rfqp-red);
	background: var(--rfqp-red);
	color: var(--rfqp-night);
}

.rfqp-summary {
	display: none;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(41, 35, 92, 0.13);
	border-radius: 13px;
	background: rgba(41, 35, 92, 0.055);
	color: var(--rfqp-night);
}

.rfqp-summary.is-visible {
	display: grid;
}

.rfqp-summary-icon {
	display: grid;
	width: 31px;
	height: 31px;
	place-items: center;
	border-radius: 50%;
	background: var(--rfqp-violet);
	color: var(--rfqp-white);
	font-size: 0.82rem;
	font-weight: 900;
}

.rfqp-summary-copy span,
.rfqp-summary-total span {
	display: block;
	color: rgba(0, 0, 45, 0.62);
	font-size: 0.65rem;
	font-weight: 750;
	line-height: 1.2;
}

.rfqp-summary-copy strong,
.rfqp-summary-total strong {
	display: block;
	margin-top: 3px;
	color: var(--rfqp-night);
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1.25;
}

.rfqp-summary-total {
	text-align: right;
}

.rfqp-summary-total .has-saving {
	margin-top: 3px;
	color: var(--rfqp-violet);
	font-weight: 900;
}

.rfqp-summary-total .has-saving::before {
	color: var(--rfqp-red);
	content: "●";
	margin-right: 5px;
}

.rfqp-fallback-table {
	width: 100%;
	margin-top: 12px;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.rfqp-fallback-table th,
.rfqp-fallback-table td {
	padding: 8px;
	border-bottom: 1px solid rgba(41, 35, 92, 0.16);
	text-align: left;
}

@media (max-width: 520px) {
	.rfqp-grid {
		grid-template-columns: 1fr;
	}

	.rfqp-card {
		min-height: 118px;
	}

	.rfqp-summary {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.rfqp-summary-total {
		grid-column: 2;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rfqp-card {
		transition: none;
	}
}
