/* --- NytroPay Card Form --- */

.nytropay-card-form {
	max-width: 100%;
}

.nytropay-card-row {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.nytropay-card-row.nytropay-card-row--half > .nytropay-card-field {
	flex: 1;
}

.nytropay-card-field {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nytropay-card-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.nytropay-card-field label .required {
	color: #e2401c;
}

.nytropay-card-field input {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
	letter-spacing: 0.5px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fff;
	color: #111;
	width: 100%;
	box-sizing: border-box;
}

.nytropay-card-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nytropay-card-field input::placeholder {
	color: #9ca3af;
	font-family: inherit;
}

#nytropay_card_name {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	letter-spacing: normal;
}

.nytropay-secure-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 12px;
	color: #6b7280;
}

.nytropay-secure-badge svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* --- 3DS Modal Overlay --- */

.nytropay-3ds-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	backdrop-filter: blur(4px);
}

.nytropay-3ds-overlay.nytropay-3ds-visible {
	opacity: 1;
	visibility: visible;
}

.nytropay-3ds-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.nytropay-3ds-visible .nytropay-3ds-modal {
	transform: translateY(0);
}

.nytropay-3ds-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.nytropay-3ds-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #111;
}

.nytropay-3ds-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
}

.nytropay-3ds-close:hover {
	color: #111;
	background: #f3f4f6;
}

.nytropay-3ds-message {
	padding: 12px 20px;
	margin: 0;
	font-size: 14px;
	color: #4b5563;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.nytropay-3ds-iframe-container {
	flex: 1;
	min-height: 400px;
	position: relative;
}

.nytropay-3ds-iframe {
	width: 100%;
	height: 100%;
	min-height: 400px;
	border: none;
	display: block;
}

/* --- Responsive --- */

@media (max-width: 480px) {
	.nytropay-card-row {
		flex-direction: column;
		gap: 0;
	}

	.nytropay-3ds-modal {
		width: 95%;
		max-height: 95vh;
		border-radius: 8px;
	}

	.nytropay-3ds-iframe-container {
		min-height: 350px;
	}

	.nytropay-3ds-iframe {
		min-height: 350px;
	}
}
