.msp-checkout {
	--msp-border: rgba(255, 255, 255, 0.16);
	--msp-text: #ffffff;
	--msp-muted: rgba(255, 255, 255, 0.74);
	--msp-bg: #050505;
	--msp-surface: #050505;
	--msp-field-text: #121212;
	--msp-accent: #ffffff;
	--msp-accent-contrast: #101010;
	--msp-shadow: none;
	color: var(--msp-text);
	background: var(--msp-bg);
	padding: 24px;
	border-radius: 12px;
}

.msp-form-shell {
	max-width: 1360px;
	margin: 0 auto;
}

.msp-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 52px 26px;
}

.msp-form-header {
	margin-bottom: 30px;
	text-align: center;
}

.msp-form-header h2 {
	margin: 0;
	font-size: clamp(3rem, 5vw, 4.25rem);
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1;
}

.msp-form-header h2::after {
	content: "";
	display: block;
	width: 230px;
	max-width: 55%;
	height: 2px;
	margin: 12px auto 0;
	background: rgba(255, 255, 255, 0.82);
}

.msp-field {
	margin: 0;
}

.msp-field-full {
	grid-column: 1 / -1;
}

.msp-field label {
	display: block;
	margin-bottom: 12px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.msp-field input[type="text"],
.msp-field input[type="email"],
.msp-field input[type="tel"],
.msp-field input[type="date"],
.msp-field select,
.msp-field textarea {
	width: 100%;
	min-height: 58px;
	padding: 14px 16px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--msp-field-text);
	font-size: 1rem;
	box-sizing: border-box;
}

.msp-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px 18px;
	padding-right: 46px;
}

.msp-field textarea {
	min-height: 300px;
	resize: vertical;
}

.msp-checkbox-field label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0;
}

.msp-checkbox-field input[type="checkbox"] {
	margin-top: 5px;
}

.msp-course-summary-wrap {
	margin-top: -26px;
}

.msp-partner-name-field {
	display: none;
}

.msp-partner-name-field.is-visible {
	display: block;
}

.msp-submit-button {
	margin-top: 26px;
	width: 100%;
	padding: 16px 18px;
	border-radius: 0;
	background: var(--msp-accent);
	border-color: var(--msp-accent);
	color: var(--msp-accent-contrast);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.03em;
}

.msp-product-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	padding: 14px 18px;
	border: 1px solid var(--msp-border);
	background: rgba(255, 255, 255, 0.06);
}

.msp-product-summary-image img {
	display: block;
	width: 96px;
	max-width: 96px;
	height: auto;
	border-radius: 0;
}

.msp-product-summary-meta,
.msp-inline-payment h2 {
	display: grid;
	gap: 6px;
}

.msp-product-summary-meta {
	flex: 1 1 220px;
}

.msp-product-summary-title {
	margin: 0;
}

.msp-product-summary-description {
	flex-basis: 100%;
	margin: 0;
}

.msp-product-summary-price,
.msp-inline-order-meta strong {
	font-weight: 700;
	font-size: 1.05rem;
}

.msp-product-summary-price del {
	color: var(--msp-muted);
	font-weight: 500;
}

.msp-product-summary-price ins {
	margin-left: 8px;
	text-decoration: none;
}

.msp-product-summary-stock {
	margin: 0;
	color: #ffb4b4;
	font-weight: 700;
}

.msp-course-pricing-details {
	flex-basis: 100%;
	display: grid;
	gap: 4px;
	padding-top: 4px;
	color: var(--msp-muted);
}

.msp-course-pricing-details p {
	margin: 0;
}

.msp-product-option-unavailable,
.msp-field select option:disabled {
	color: #8a8a8a;
}

.msp-product-summary-placeholder,
.msp-gateway-description {
	color: var(--msp-muted);
}

.msp-inline-payment {
	display: grid;
	gap: 20px;
}

.msp-inline-payment-form,
.msp-gateway-list,
.msp-summary-card {
	display: grid;
	gap: 14px;
}

.msp-summary-card {
	padding: 22px 24px;
	border: 1px solid var(--msp-border);
	background: rgba(255, 255, 255, 0.06);
}

.msp-gateway-option {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 18px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	background: #232323;
	cursor: pointer;
	position: relative;
	transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.msp-gateway-option:hover {
	border-color: rgba(255, 255, 255, 0.24);
	transform: translateY(-1px);
}

.msp-gateway-option:focus-within {
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.msp-gateway-option.is-selected {
	border-color: rgba(255, 255, 255, 0.48);
	background: #2b2b2b;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.msp-gateway-option input[type="radio"] {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

.msp-gateway-label {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 600;
	min-width: 0;
}

.msp-gateway-label img {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
	padding: 4px;
}

.msp-gateway-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.msp-gateway-check {
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.42);
	align-self: start;
	margin-top: 2px;
	position: relative;
	transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.msp-gateway-check::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 999px;
	background: #fff;
	transform: scale(0);
	transition: transform 0.18s ease;
}

.msp-gateway-option.is-selected .msp-gateway-check {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.msp-gateway-option.is-selected .msp-gateway-check::after {
	transform: scale(1);
}

.msp-inline-fallback {
	padding: 16px;
	border: 1px dashed var(--msp-border);
	border-radius: 14px;
	background: #fff;
}

.msp-success-message {
	margin-top: 20px;
}

.msp-gateway-description {
	grid-column: 1 / -1;
	margin-left: 66px;
	font-size: 0.98rem;
	line-height: 1.5;
}

.msp-gateway-description > *:first-child {
	margin-top: 0;
}

.msp-gateway-description > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.msp-field-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.msp-course-summary-wrap {
		margin-top: 0;
	}

	.msp-product-summary {
		flex-direction: column;
		align-items: flex-start;
	}

	.msp-gateway-option {
		grid-template-columns: 1fr;
	}

	.msp-gateway-check {
		display: none;
	}

	.msp-gateway-description {
		margin-left: 0;
	}

	.msp-checkout {
		padding: 18px;
	}
}
