/* Motus Payment — front-end styles
 * Brand spec (packet §9): Deep Blue #0A1A3F fill, Action Cyan #0E7C93 hover,
 * Montserrat Semi-Bold, 8px rounded corners, Stripe badge below button.
 */

.mtsp-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0;
}
.mtsp-align-left   { align-items: flex-start; text-align: left; }
.mtsp-align-center { align-items: center; text-align: center; }
.mtsp-align-right  { align-items: flex-end; text-align: right; }

.mtsp-pay-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0A1A3F;               /* Deep Blue fill */
	color: #FFFFFF;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;                   /* Semi-Bold */
	font-size: 16px;
	line-height: 1;
	padding: 14px 32px;
	border: 0;
	border-radius: 8px;                 /* 8px rounded corners */
	cursor: pointer;
	text-decoration: none;
	transition: background-color .18s ease, transform .12s ease;
}
.mtsp-pay-btn:hover,
.mtsp-pay-btn:focus {
	background: #0E7C93;                /* Action Cyan hover */
	color: #FFFFFF;
}
.mtsp-pay-btn:focus-visible {
	outline: 3px solid #52C7DC;
	outline-offset: 2px;
}
.mtsp-pay-btn:active { transform: translateY(1px); }
.mtsp-pay-btn[disabled] {
	opacity: .65;
	cursor: wait;
}

/* Loading state — swap label for "Redirecting…" */
.mtsp-btn-loading { display: none; }
.mtsp-pay-btn.mtsp-loading .mtsp-btn-label   { display: none; }
.mtsp-pay-btn.mtsp-loading .mtsp-btn-loading { display: inline; }

.mtsp-stripe-badge {
	font-size: 12.5px;
	color: #5B6B87;
	letter-spacing: .01em;
}
.mtsp-stripe-badge strong {
	font-weight: 700;
	color: #32364E;
}

.mtsp-refund-note {
	font-size: 12px;
	color: #5B6B87;
}

.mtsp-error {
	display: none;
	font-size: 13px;
	color: #B3261E;
}
.mtsp-error.mtsp-visible { display: block; }

/* Status cards (success / failed pages) */
.mtsp-status-card {
	max-width: 560px;
	margin: 24px auto;
	padding: 40px 32px;
	background: #FFFFFF;
	border: 1px solid #E3E8F1;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(10, 26, 63, .06), 0 12px 32px rgba(10, 26, 63, .08);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.mtsp-status-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 26px;
	font-weight: 700;
	color: #FFFFFF;
}
.mtsp-icon-ok      { background: #0E7C93; }
.mtsp-icon-fail    { background: #B3261E; }
.mtsp-icon-pending { background: #5B6B87; }

.mtsp-status-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 24px;
	color: #0A1A3F;
	margin: 0;
}
.mtsp-status-text {
	font-size: 15px;
	color: #5B6B87;
	margin: 0;
	max-width: 42ch;
}
.mtsp-status-card .mtsp-pay-btn { margin-top: 8px; }

@media (max-width: 480px) {
	.mtsp-status-card { padding: 32px 20px; }
	.mtsp-pay-btn { width: 100%; }
}

/* On-site legal consent checkbox */
.mtsp-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	max-width: 560px;
	font-size: 13px;
	line-height: 1.6;
	color: #16233F;
	cursor: pointer;
	text-align: left;
}
.mtsp-consent input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex: none;
	accent-color: #0E7C93;
	cursor: pointer;
}
.mtsp-consent a { color: #0E7C93; text-decoration: underline; }
.mtsp-pay-btn[data-mtsp-needs-consent][disabled]:not(.mtsp-loading) {
	opacity: .55;
	cursor: not-allowed;
}

/* Consent modal */
.mtsp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 26, 63, .55);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	opacity: 0;
	transition: opacity .2s ease;
}
.mtsp-modal-overlay.mtsp-open { opacity: 1; }
.mtsp-modal-overlay[hidden] { display: none; }
.mtsp-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 520px;
	width: 100%;
	box-shadow: 0 24px 64px rgba(10, 26, 63, .3);
	padding: 0 0 20px;
	transform: translateY(24px) scale(.98);
	transition: transform .22s ease;
	display: flex;
	flex-direction: column;
	text-align: center;
}
.mtsp-modal-overlay.mtsp-open .mtsp-modal { transform: none; }
.mtsp-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #E3E8F1;
}
.mtsp-modal-head h3 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: #0A1A3F;
	margin: 0;
}
.mtsp-modal-overlay button.mtsp-modal-close {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	font-size: 26px;
	line-height: 1;
	color: #5B6B87 !important;
	cursor: pointer;
	padding: 0 4px;
	width: auto;
	height: auto;
	min-width: 0;
}
.mtsp-modal-overlay button.mtsp-modal-close:hover { color: #0A1A3F !important; background: transparent !important; }
.mtsp-modal-body { padding: 20px 24px 4px; text-align: left; }
.mtsp-modal-intro { font-size: 14.5px; color: #16233F; margin: 0 0 14px; }
.mtsp-modal-body .mtsp-consent { max-width: none; }
.mtsp-modal-foot {
	display: flex;
	justify-content: center;
	padding: 16px 24px 4px;
}
.mtsp-modal-overlay button.mtsp-modal-agree {
	background: #0A1A3F !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 32px;
	width: 100%;
	max-width: 320px;
	cursor: pointer;
	transition: background-color .18s ease;
}
.mtsp-modal-overlay button.mtsp-modal-agree:hover:not([disabled]) { background: #0E7C93 !important; }
.mtsp-modal-overlay button.mtsp-modal-agree[disabled] { opacity: .55; cursor: not-allowed; }
.mtsp-modal-badge { padding: 10px 24px 0; }
.mtsp-modal .mtsp-error { padding: 6px 24px 0; }
@media (max-width: 480px) {
	.mtsp-modal-overlay button.mtsp-modal-agree { max-width: none; }
}
