.hm-mgp-checkout,
.hm-mgp-checkout * {
	box-sizing: border-box;
}

.hm-mgp-checkout {
	--hm-mgp-bg: #f5f7fa;
	--hm-mgp-panel: #ffffff;
	--hm-mgp-text: #172033;
	--hm-mgp-muted: #667085;
	--hm-mgp-border: #dde3eb;
	--hm-mgp-primary: #1957d2;
	--hm-mgp-primary-dark: #1045ac;
	--hm-mgp-success: #157347;
	--hm-mgp-warning: #9a6700;
	--hm-mgp-danger: #b42318;
	--hm-mgp-info: #175cd3;
	--hm-mgp-neutral: #667085;
	width: min(100%, 1240px);
	margin: 24px auto;
	padding: 0 20px 48px;
	color: var(--hm-mgp-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.hm-mgp-checkout button,
.hm-mgp-checkout input {
	font: inherit;
}

.hm-mgp-checkout a {
	color: var(--hm-mgp-primary);
}

.hm-mgp-checkout-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 22px;
	margin-bottom: 18px;
	background: var(--hm-mgp-panel);
	border: 1px solid var(--hm-mgp-border);
	border-radius: 16px;
}

.hm-mgp-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--hm-mgp-text) !important;
	text-decoration: none !important;
}

.hm-mgp-brand img,
.hm-mgp-brand__mark {
	width: 42px;
	height: 42px;
	border-radius: 11px;
}

.hm-mgp-brand img {
	object-fit: cover;
}

.hm-mgp-brand__mark {
	display: grid;
	place-items: center;
	background: var(--hm-mgp-primary);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}

.hm-mgp-brand strong,
.hm-mgp-brand small {
	display: block;
}

.hm-mgp-brand strong {
	font-size: 15px;
	line-height: 1.25;
}

.hm-mgp-brand small {
	margin-top: 2px;
	color: var(--hm-mgp-muted);
	font-size: 12px;
}

.hm-mgp-exit-link {
	font-weight: 650;
	font-size: 14px;
	text-decoration: none;
}

.hm-mgp-exit-link:hover {
	text-decoration: underline;
}

.hm-mgp-preview-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 18px;
	border: 1px solid #f1cf76;
	border-radius: 12px;
	background: #fff8e1;
	color: #704d00;
}

.hm-mgp-preview-notice strong {
	white-space: nowrap;
}

.hm-mgp-checkout-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 18px;
	padding: 14px 22px;
	background: var(--hm-mgp-panel);
	border: 1px solid var(--hm-mgp-border);
	border-radius: 16px;
}

.hm-mgp-checkout-steps span {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--hm-mgp-muted);
	font-size: 13px;
	font-weight: 700;
}

.hm-mgp-checkout-steps span:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -12%;
	width: 24%;
	height: 1px;
	background: var(--hm-mgp-border);
}

.hm-mgp-checkout-steps b {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 50%;
	background: #fff;
	font-size: 12px;
}

.hm-mgp-checkout-steps .is-complete,
.hm-mgp-checkout-steps .is-current {
	color: var(--hm-mgp-text);
}

.hm-mgp-checkout-steps .is-complete b {
	border-color: #a6d8bb;
	background: #eaf7ef;
	color: var(--hm-mgp-success);
}

.hm-mgp-checkout-steps .is-current b {
	border-color: var(--hm-mgp-primary);
	background: var(--hm-mgp-primary);
	color: #fff;
}

.hm-mgp-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
	align-items: start;
	gap: 22px;
}

.hm-mgp-checkout-main,
.hm-mgp-order-summary__panel {
	background: var(--hm-mgp-panel);
	border: 1px solid var(--hm-mgp-border);
	border-radius: 18px;
}

.hm-mgp-checkout-main {
	padding: 26px;
}

.hm-mgp-order-summary__panel {
	position: sticky;
	top: 24px;
	padding: 24px;
}

.hm-mgp-status-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-bottom: 22px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--hm-mgp-border);
}

.hm-mgp-status-card__icon {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #eef4ff;
}

.hm-mgp-status-card__icon::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.hm-mgp-status-card--success .hm-mgp-status-card__icon {
	color: var(--hm-mgp-success);
	background: #eaf7ef;
}

.hm-mgp-status-card--warning .hm-mgp-status-card__icon {
	color: var(--hm-mgp-warning);
	background: #fff6dc;
}

.hm-mgp-status-card--danger .hm-mgp-status-card__icon {
	color: var(--hm-mgp-danger);
	background: #fff0ee;
}

.hm-mgp-status-card--neutral .hm-mgp-status-card__icon {
	color: var(--hm-mgp-neutral);
	background: #f0f2f5;
}

.hm-mgp-status-card--info .hm-mgp-status-card__icon {
	color: var(--hm-mgp-info);
}

.hm-mgp-kicker {
	margin: 0 0 4px;
	color: var(--hm-mgp-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.hm-mgp-status-card h1,
.hm-mgp-order-summary h2,
.hm-mgp-empty-methods h2,
.hm-mgp-processing h2,
.hm-mgp-checkout-error h1 {
	margin: 0;
	color: var(--hm-mgp-text);
	line-height: 1.2;
}

.hm-mgp-status-card h1 {
	font-size: clamp(24px, 3vw, 34px);
}

.hm-mgp-status-card p:last-child,
.hm-mgp-order-description,
.hm-mgp-empty-methods p,
.hm-mgp-processing p,
.hm-mgp-checkout-error p {
	margin: 7px 0 0;
	color: var(--hm-mgp-muted);
}

.hm-mgp-inline-message {
	padding: 12px 14px;
	margin: -8px 0 20px;
	border: 1px solid #f3b4ae;
	border-radius: 10px;
	background: #fff3f1;
	color: var(--hm-mgp-danger);
	font-weight: 650;
}

.hm-mgp-method-section {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.hm-mgp-method-section legend {
	padding: 0;
	margin: 0;
	font-size: 19px;
	font-weight: 800;
}

.hm-mgp-section-help {
	margin: 4px 0 16px;
	color: var(--hm-mgp-muted);
	font-size: 14px;
}

.hm-mgp-method-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hm-mgp-method-card {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.hm-mgp-method-card input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.hm-mgp-method-card__body {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 22px;
	gap: 12px;
	align-items: start;
	min-height: 124px;
	padding: 16px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 14px;
	background: #fff;
	transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.hm-mgp-method-card:hover .hm-mgp-method-card__body {
	border-color: #acb8c8;
}

.hm-mgp-method-card input:checked + .hm-mgp-method-card__body {
	border-color: var(--hm-mgp-primary);
	background: #f7f9ff;
	box-shadow: 0 0 0 2px rgba(25, 87, 210, .12);
}

.hm-mgp-method-card input:focus-visible + .hm-mgp-method-card__body {
	outline: 3px solid rgba(25, 87, 210, .28);
	outline-offset: 2px;
}

.hm-mgp-method-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #eef2f7;
	color: #354052;
}

.hm-mgp-method-icon__svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.hm-mgp-method-copy,
.hm-mgp-method-copy > span,
.hm-mgp-method-copy > small {
	display: block;
	min-width: 0;
}

.hm-mgp-method-title-row {
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.hm-mgp-method-title-row strong {
	font-size: 15px;
	line-height: 1.3;
}

.hm-mgp-method-badge {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eef2f7;
	color: #465467;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.6;
	text-transform: uppercase;
}

.hm-mgp-method-description {
	margin-top: 7px;
	color: var(--hm-mgp-muted);
	font-size: 13px;
	line-height: 1.4;
}

.hm-mgp-method-copy small {
	margin-top: 8px;
	color: #7c8798;
	font-size: 11px;
}

.hm-mgp-method-check {
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 50%;
	color: transparent;
	font-size: 12px;
	font-weight: 900;
}

.hm-mgp-method-card input:checked + .hm-mgp-method-card__body .hm-mgp-method-check {
	border-color: var(--hm-mgp-primary);
	background: var(--hm-mgp-primary);
	color: #fff;
}

.hm-mgp-consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	padding: 15px;
	margin-top: 18px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 12px;
	background: #fafbfc;
	cursor: pointer;
}

.hm-mgp-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--hm-mgp-primary);
}

.hm-mgp-consent strong {
	display: block;
	margin-bottom: 3px;
	font-size: 14px;
}

.hm-mgp-consent span {
	color: var(--hm-mgp-muted);
	font-size: 13px;
}

.hm-mgp-payment-action {
	margin-top: 20px;
}

.hm-mgp-pay-button,
.hm-mgp-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 50px;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.hm-mgp-pay-button {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid var(--hm-mgp-primary);
	background: var(--hm-mgp-primary);
	color: #fff;
	cursor: pointer;
}

.hm-mgp-pay-button:hover:not(:disabled) {
	border-color: var(--hm-mgp-primary-dark);
	background: var(--hm-mgp-primary-dark);
}

.hm-mgp-pay-button:focus-visible,
.hm-mgp-secondary-button:focus-visible,
.hm-mgp-exit-link:focus-visible,
.hm-mgp-brand:focus-visible {
	outline: 3px solid rgba(25, 87, 210, .3);
	outline-offset: 3px;
}

.hm-mgp-pay-button:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.hm-mgp-pay-button strong {
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, .35);
	white-space: nowrap;
}

.hm-mgp-security-note {
	margin: 11px 0 0;
	color: var(--hm-mgp-muted);
	font-size: 12px;
	text-align: center;
}

.hm-mgp-empty-methods,
.hm-mgp-processing {
	padding: 22px;
	border: 1px dashed #c5ced9;
	border-radius: 14px;
	background: #fafbfc;
}

.hm-mgp-processing {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.hm-mgp-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #dce5f4;
	border-top-color: var(--hm-mgp-primary);
	border-radius: 50%;
	animation: hm-mgp-spin .9s linear infinite;
}

.hm-mgp-order-summary h2 {
	font-size: 21px;
}

.hm-mgp-order-description {
	font-size: 14px;
}

.hm-mgp-summary-lines {
	margin: 22px 0 0;
}

.hm-mgp-summary-lines div {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #edf0f4;
}

.hm-mgp-summary-lines dt,
.hm-mgp-summary-lines dd {
	margin: 0;
	font-size: 13px;
}

.hm-mgp-summary-lines dt {
	color: var(--hm-mgp-muted);
}

.hm-mgp-summary-lines dd {
	max-width: 60%;
	font-weight: 700;
	text-align: right;
	overflow-wrap: anywhere;
}

.hm-mgp-summary-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.hm-mgp-summary-total span {
	font-size: 14px;
	font-weight: 750;
}

.hm-mgp-summary-total strong {
	font-size: 22px;
	white-space: nowrap;
}

.hm-mgp-summary-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 11px;
	border-radius: 10px;
	background: #eef4ff;
	color: var(--hm-mgp-info);
	font-size: 12px;
	font-weight: 800;
}

.hm-mgp-summary-status > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.hm-mgp-summary-status--success {
	background: #eaf7ef;
	color: var(--hm-mgp-success);
}

.hm-mgp-summary-status--warning {
	background: #fff6dc;
	color: var(--hm-mgp-warning);
}

.hm-mgp-summary-status--danger {
	background: #fff0ee;
	color: var(--hm-mgp-danger);
}

.hm-mgp-summary-status--neutral {
	background: #f0f2f5;
	color: var(--hm-mgp-neutral);
}

.hm-mgp-checkout--error {
	max-width: 760px;
}

.hm-mgp-checkout-error {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 18px;
	padding: 28px;
	border: 1px solid #efc3bf;
	border-radius: 18px;
	background: #fff;
}

.hm-mgp-checkout-error__icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 15px;
	background: #fff0ee;
	color: var(--hm-mgp-danger);
	font-size: 24px;
	font-weight: 900;
}

.hm-mgp-secondary-button {
	padding: 10px 16px;
	margin-top: 18px;
	border: 1px solid var(--hm-mgp-border);
	background: #fff;
	color: var(--hm-mgp-text) !important;
}

@keyframes hm-mgp-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.hm-mgp-checkout-layout {
		grid-template-columns: 1fr;
	}

	.hm-mgp-order-summary {
		order: -1;
	}

	.hm-mgp-order-summary__panel {
		position: static;
	}
}

@media (max-width: 680px) {
	.hm-mgp-checkout {
		margin: 0 auto;
		padding: 12px 12px 112px;
	}

	.hm-mgp-checkout-header,
	.hm-mgp-checkout-steps,
	.hm-mgp-checkout-main,
	.hm-mgp-order-summary__panel {
		border-radius: 13px;
	}

	.hm-mgp-checkout-header {
		padding: 13px 14px;
	}

	.hm-mgp-exit-link {
		font-size: 12px;
	}

	.hm-mgp-checkout-steps {
		padding: 12px 8px;
	}

	.hm-mgp-checkout-steps span {
		gap: 5px;
		font-size: 11px;
	}

	.hm-mgp-checkout-steps span:not(:last-child)::after {
		display: none;
	}

	.hm-mgp-checkout-main,
	.hm-mgp-order-summary__panel {
		padding: 18px;
	}

	.hm-mgp-method-grid {
		grid-template-columns: 1fr;
	}

	.hm-mgp-method-card__body {
		min-height: 0;
	}

	.hm-mgp-payment-action {
		position: fixed;
		z-index: 9999;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 10px 12px max(10px, env(safe-area-inset-bottom));
		margin: 0;
		border-top: 1px solid var(--hm-mgp-border);
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
	}

	.hm-mgp-security-note {
		display: none;
	}

	.hm-mgp-preview-notice {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-mgp-spinner {
		animation-duration: 2.5s;
	}

	.hm-mgp-method-card__body {
		transition: none;
	}
}

.hm-mgp-manual-payment {
	padding: 22px;
	margin-top: 20px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 16px;
	background: #fbfcfe;
}

.hm-mgp-manual-payment[hidden],
.hm-mgp-manual-instructions[hidden] {
	display: none !important;
}

.hm-mgp-manual-payment__heading,
.hm-mgp-manual-reference,
.hm-mgp-raast-layout {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.hm-mgp-manual-payment__heading h2,
.hm-mgp-manual-instructions h3 {
	margin: 3px 0 0;
}

.hm-mgp-manual-instructions {
	padding: 18px;
	margin-top: 18px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 14px;
	background: #fff;
}

.hm-mgp-manual-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
	margin: 16px 0 0;
}

.hm-mgp-manual-details div {
	min-width: 0;
}

.hm-mgp-manual-details dt,
.hm-mgp-manual-reference span,
.hm-mgp-manual-fields label > span {
	display: block;
	margin-bottom: 5px;
	color: var(--hm-mgp-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}

.hm-mgp-manual-details dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.hm-mgp-manual-details code {
	padding: 2px 5px;
	background: #f2f4f7;
	color: var(--hm-mgp-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	white-space: normal;
}

.hm-mgp-raast-qr {
	flex: 0 0 180px;
	max-width: 180px;
	height: auto;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 12px;
	background: #fff;
}

.hm-mgp-manual-reference {
	padding: 14px 16px;
	margin-top: 18px;
	border-radius: 12px;
	background: #eef4ff;
}

.hm-mgp-manual-reference > div {
	min-width: 0;
}

.hm-mgp-manual-reference strong {
	display: block;
	overflow-wrap: anywhere;
}

.hm-mgp-manual-note,
.hm-mgp-manual-warning {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.55;
}

.hm-mgp-manual-note {
	background: #fff;
	border: 1px solid var(--hm-mgp-border);
}

.hm-mgp-manual-warning {
	margin-bottom: 0;
	background: #fff7e6;
	color: #7a4b00;
}

.hm-mgp-manual-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.hm-mgp-manual-fields__wide {
	grid-column: 1 / -1;
}

.hm-mgp-manual-fields input,
.hm-mgp-manual-fields textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--hm-mgp-border);
	border-radius: 10px;
	background: #fff;
	color: var(--hm-mgp-text);
	font: inherit;
}

.hm-mgp-manual-fields input:focus,
.hm-mgp-manual-fields textarea:focus {
	outline: 3px solid rgba(46, 108, 246, .16);
	border-color: #2e6cf6;
}

.hm-mgp-manual-fields input[type="file"] {
	padding: 8px;
}

.hm-mgp-manual-fields small {
	display: block;
	margin-top: 5px;
	color: var(--hm-mgp-muted);
}

@media (max-width: 680px) {
	.hm-mgp-manual-payment {
		padding: 16px;
	}

	.hm-mgp-manual-payment__heading,
	.hm-mgp-manual-reference,
	.hm-mgp-raast-layout {
		flex-direction: column;
	}

	.hm-mgp-manual-details,
	.hm-mgp-manual-fields {
		grid-template-columns: 1fr;
	}

	.hm-mgp-manual-fields__wide {
		grid-column: auto;
	}

	.hm-mgp-raast-qr {
		align-self: center;
	}
}
