/* Revenue Monster - Direct Card Checkout */

/* Card / E-wallet choice */
.rm-pay-modes {
	margin-top: 12px;
}

.rm-pay-modes .rm-pay-mode {
	margin: 0 0 8px;
	padding: 0;
}

.rm-pay-modes .rm-pay-mode > label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}

.rm-pay-modes .rm-pay-mode > label > input {
	margin: 0;
}

.rm-pay-mode__hint {
	margin: 4px 0 0 24px;
	font-size: 0.85em;
	opacity: 0.7;
}

.rm-direct-card {
	margin: 4px 0 14px 24px;
}

/* Self-contained rows so alignment does not depend on theme / WC float rules. */
.rm-direct-card .rm-dc-row {
	margin: 0 0 14px;
	padding: 0;
}

.rm-direct-card .rm-dc-row > label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.3;
}

.rm-direct-card input.input-text {
	width: 100%;
	box-sizing: border-box;
	height: auto;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	line-height: 1.4;
}

.rm-direct-card input.input-text:focus {
	border-color: #3d5afe;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(61, 90, 254, 0.2);
}

.rm-direct-card__notice {
	margin: 8px 0 0;
	padding: 8px 10px;
	border: 1px solid #e2401c;
	border-radius: 3px;
	color: #e2401c;
	font-size: 0.9em;
	background: #fdf2f0;
}

/* 3-D Secure modal */
body.rm-3ds-open {
	overflow: hidden;
}

.rm-3ds-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	padding: 16px;
}

.rm-3ds-modal {
	background: #fff;
	border-radius: 6px;
	width: 100%;
	max-width: 600px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.rm-3ds-head,
.rm-3ds-foot {
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}

.rm-3ds-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rm-3ds-close {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 22px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}

.rm-3ds-close:hover,
.rm-3ds-close:focus {
	color: #111;
}

.rm-3ds-foot {
	border-bottom: 0;
	border-top: 1px solid #eee;
	text-align: center;
	min-height: 20px;
}

.rm-3ds-title {
	font-weight: 600;
	font-size: 0.95em;
}

.rm-3ds-body {
	position: relative;
	flex: 1 1 auto;
	min-height: 560px;
	display: flex;
}

.rm-3ds-frame-wrap,
.rm-3ds-body iframe {
	width: 100%;
	border: 0;
}

.rm-3ds-body iframe {
	min-height: 560px;
	height: 100%;
}

.rm-3ds-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid #ddd;
	border-top-color: #666;
	border-radius: 50%;
	animation: rm-3ds-spin 0.9s linear infinite;
}

@keyframes rm-3ds-spin {
	to {
		transform: rotate(360deg);
	}
}

.rm-3ds-return {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.9em;
	text-decoration: underline;
}
