#simplyin-add-card-payment-method {
	.simplyin-add-card-iframe-container {
		padding: 12px;
		border-radius: 8px;
		background: #ffffff;
	}

	.simplyin-add-card-info {
		margin-bottom: 16px;
		font-size: 12px;
		color: #64748b;
		text-align: center;
		line-height: 1.4;

		p {
			margin: 0;
			padding: 12px 16px;
			background: #f1f5f9;
			border-radius: 6px;
			border-left: 3px solid #3b82f6;
			color: #1e40af;
			font-weight: 500;
		}
	}

	.simplyin-iframe-wrapper {
		position: relative;
		margin-bottom: 12px;
	}

	.simplyin-add-card-iframe {
		display: block;
		background-color: white;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

		.card-name-group {
			display: block;

			&-hidden {
				display: none;
			}
		}

		.form-group {
			margin-bottom: 16px;

			&:last-child {
				margin-bottom: 0;
			}

			label {
				display: block;
				font-size: 12px;
				font-weight: 500;
				color: #374151;
				margin-bottom: 6px;
			}

			.card-input {
				width: 100%;
				padding: 10px 12px;
				border: 1px solid #d1d5db;
				border-radius: 4px;
				font-size: 14px;
				font-family: inherit;
				font-family: "Inter Tight", sans-serif;
				background-color: #ffffff;
				height: 45px;

				&::placeholder {
					color: #9ca3af;
					font-weight: 400;
				}
			}

			.card-field {
				border: 1px solid #d1d5db;
				border-radius: 4px;
				background-color: #ffffff;
				overflow: hidden;

				.ccIframe-component {
					padding: 10px 12px;
					font-size: 14px;

					iframe {
						height: 20px !important;
						min-height: 20px !important;
					}
				}
			}
		}

		.form-row {
			display: flex;
			flex-direction: column;
			gap: 16px;
			margin-bottom: 16px;
			padding: 0 !important;

			.form-group {
				margin-bottom: 0;
			}
		}

		.form-actions {
			margin-top: 20px;
			margin-bottom: 12px;
			display: flex;
			justify-content: center;
		}

		.simplyin-confirm-card-button {
			background-color: #3b82f6;
			color: white;
			border: none;
			border-radius: 4px;
			padding: 10px 20px;
			font-size: 14px;
			font-weight: 500;
			font-family: inherit;
			cursor: pointer;
			width: 100%;

			&:disabled {
				background-color: #9ca3af;
				cursor: not-allowed;
			}
		}

		.simplyin-card-success {
			margin-top: 12px;
			padding: 12px 16px;
			background-color: #d1fae5;
			border: 1px solid #10b981;
			border-radius: 4px;
			color: #047857;
			font-size: 13px;
			font-weight: 500;
			text-align: center;

			strong {
				color: #065f46;
				font-size: 14px;
				margin-right: 6px;
			}

			&[style*="display: none"] {
				display: none !important;
			}
		}

		.field-error {
			margin-top: 16px;
			padding: 10px 12px;
			background-color: #fef2f2;
			border: 1px solid #fca5a5;
			border-radius: 4px;
			color: #dc2626;
			font-size: 12px;
			font-weight: 500;
			display: flex;
			align-items: center;
			gap: 6px;

			&::before {
				content: "⚠";
				font-size: 14px;
				color: #ef4444;
				margin-right: 5px;
			}

			&[style*="display: none"] {
				display: none !important;
			}
		}
	}

	.simplyin-iframe-loading {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
		color: #64748b;
		z-index: 10;
		background-color: #ffffff;
		padding: 20px;
		border-radius: 6px;
		border: 1px solid #e2e8f0;

		p {
			margin: 0;
			font-size: 13px;
			font-weight: 500;
			color: #475569;
		}
	}

	.simplyin-payment-option-item {
		&.inner-group-item {
			.simplyin-add-card-iframe-container {
				margin-left: 16px;
			}
		}
	}

	@media (min-width: 768px) {
		.simplyin-add-card-iframe {
			.form-row {
				flex-direction: row;
				gap: 16px;
				padding: 0 !important;

				.form-group {
					flex: 1;
				}
			}
		}
	}

	@media (max-width: 768px) {
		.simplyin-add-card-iframe-container {
			padding: 16px;
		}

		.simplyin-add-card-info p {
			font-size: 11px;
			padding: 10px 12px;
		}

		.simplyin-add-card-iframe {
			padding: 14px;

			.simplyin-confirm-card-button {
				font-size: 13px;
				padding: 9px 18px;
				min-width: 100px;
			}

			.simplyin-card-success {
				font-size: 12px;
				padding: 10px 12px;
			}

			.form-group {
				.card-input {
					font-size: 14px;
					padding: 9px 10px;
				}

				.card-field .ccIframe-component {
					padding: 9px 10px;
					font-size: 14px;
				}
			}
		}
	}

	@media (max-width: 480px) {
		.simplyin-add-card-iframe-container {
			padding: 12px;
			border-radius: 6px;
		}

		.simplyin-add-card-iframe {
			padding: 12px;

			.simplyin-confirm-card-button {
				font-size: 13px;
				padding: 8px 16px;
				min-width: 90px;
			}

			.simplyin-card-success {
				font-size: 11px;
				padding: 8px 10px;
			}

			.form-group {
				margin-bottom: 12px;

				.card-input {
					padding: 8px;
					font-size: 14px;
				}

				.card-field .ccIframe-component {
					padding: 8px;
					font-size: 14px;

					iframe {
						height: 18px !important;
						min-height: 18px !important;
					}
				}
			}

			.field-error {
				font-size: 11px;
				padding: 8px 10px;
			}
		}
	}

	.simplyin-add-card-iframe {
		&.edit-mode,
		&:has(.simplyin-confirm-card-button.edit-mode) {
			.card-input {
				opacity: 0.5;
				pointer-events: none;
			}

			.card-field {
				opacity: 0.4 !important;
				pointer-events: none !important;

				.ccIframe-component {
					pointer-events: none !important;
					opacity: 0.6;
				}
			}
		}
	}

	.simplyin-card-save-checkbox {
		margin-top: 16px;
		margin-bottom: 12px;
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 12px 0;

		input[type="checkbox"] {
			width: 16px;
			height: 16px;
			border: 1px solid #d1d5db;
			border-radius: 3px;
			background-color: #ffffff;
			cursor: pointer;
			position: relative;
			margin: 0;
			flex-shrink: 0;
			margin-right: 0 !important;

			&::before,
			&::after {
				display: none !important;
			}

			&:checked {
				background-color: #3b82f6;
				border-color: #3b82f6;

				&::after {
					content: "✓";
					display: block !important;
					position: absolute;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
					color: white;
					font-size: 10px;
					font-weight: bold;
					width: auto !important;
					height: auto !important;
					border: solid unset !important;
					border-width: unset !important;
					border: unset !important;
				}
			}

			&:hover {
				border-color: #3b82f6;
			}

			&:focus {
				outline: 2px solid #3b82f6;
				outline-offset: 1px;
			}
		}

		label {
			font-size: 13px;
			color: #374151;
			cursor: pointer;
			line-height: 1.4;
			margin: 0;
			user-select: none;
			margin-left: 5px;

			&:hover {
				color: #1f2937;
			}
		}
	}

	@media (max-width: 768px) {
		.simplyin-card-save-checkbox {
			margin-top: 12px;
			margin-bottom: 10px;
			padding: 10px 0;

			input[type="checkbox"] {
				width: 15px;
				height: 15px;
				margin-right: 0 !important;
			}

			label {
				font-size: 12px;
			}
		}
	}

	@media (max-width: 480px) {
		.simplyin-card-save-checkbox {
			margin-top: 10px;
			margin-bottom: 8px;
			padding: 8px 0;

			input[type="checkbox"] {
				width: 14px;
				height: 14px;
				margin-right: 0 !important;

				&:checked::after {
					font-size: 9px;
				}
			}

			label {
				font-size: 11px;
			}
		}
	}
}
