/**
 * Token Editor Styles
 *
 * @package FunnelKit_Square
 * @subpackage Admin
 */

.fkwcsq_payment_gateway_user_settings {
	margin: 20px 0;
}

.fkwcsq_payment_gateway_user_settings h3 {
	margin-top: 0;
}

.fkwcsq_payment_gateway_token_editor {
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.fkwcsq_payment_gateway_token_editor th {
	background: #f9f9f9;
	border-bottom: 1px solid #ddd;
	padding: 12px;
	font-weight: 600;
}

.fkwcsq_payment_gateway_token_editor td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.fkwcsq_payment_gateway_token_editor tr:last-child td {
	border-bottom: none;
}

.fkwcsq_payment_gateway_token_editor .token-actions {
	text-align: right;
	white-space: nowrap;
}

.fkwcsq_payment_gateway_token_editor .token-actions .button {
	margin-left: 5px;
}

.fkwcsq_payment_gateway_token_editor .token-default {
	text-align: center;
}

.fkwcsq_payment_gateway_token_editor .token-default input[type="radio"] {
	margin: 0;
}

.fkwcsq_payment_gateway_token_editor .token-attribute {
	font-weight: 500;
}

.fkwcsq_payment_gateway_token_editor .new-token {
	background-color: #f0f8ff;
}

.fkwcsq_payment_gateway_token_editor .no-tokens td {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 20px;
}

.fkwcsq_payment_gateway_token_editor .actions {
	text-align: right;
	padding: 15px;
	background: #f9f9f9;
}

.fkwcsq_payment_gateway_token_editor .actions .button {
	margin-left: 10px;
}

.fkwcsq_payment_gateway_token_editor input[type="text"],
.fkwcsq_payment_gateway_token_editor select {
	width: 100%;
	max-width: 200px;
}

.fkwcsq_payment_gateway_token_editor .token-id {
	font-family: monospace;
	font-size: 12px;
	color: #666;
}

/* Loading state */
.fkwcsq_payment_gateway_token_editor.loading {
	opacity: 0.6;
	pointer-events: none;
}

.fkwcsq_payment_gateway_token_editor.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0073aa;
	border-radius: 50%;
	animation: fkwcsq-spin 1s linear infinite;
}

@keyframes fkwcsq-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error states */
.fkwcsq_payment_gateway_token_editor .error {
	color: #d63638;
	font-size: 12px;
	margin-top: 5px;
}

.fkwcsq_payment_gateway_token_editor .token.error {
	background-color: #fef7f7;
	border-left: 4px solid #d63638;
}

/* Success states */
.fkwcsq_payment_gateway_token_editor .token.success {
	background-color: #f0f8f0;
	border-left: 4px solid #00a32a;
}

/* Responsive design */
@media (max-width: 768px) {
	.fkwcsq_payment_gateway_token_editor {
		overflow-x: auto;
	}
	
	.fkwcsq_payment_gateway_token_editor th,
	.fkwcsq_payment_gateway_token_editor td {
		padding: 8px;
		font-size: 14px;
	}
	
	.fkwcsq_payment_gateway_token_editor .token-actions .button {
		margin: 2px;
		padding: 4px 8px;
		font-size: 12px;
	}
}
