/* USDT Payment Gateway Styles */

/* Main Gateway Container */
.usdt-gateway-container {
	background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e8ebf0;
}

/* Network Selection */
.usdt-network-select {
	border: none;
	padding: 0;
	margin: 20px 0;
}

.usdt-network-select legend {
	font-weight: 700;
	margin-bottom: 16px;
	display: block;
	font-size: 16px;
	color: #1a202c;
}

.usdt-radio-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
}

.usdt-radio-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 16px;
	border: 2px solid #e8ebf0;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: white;
	font-weight: 600;
	position: relative;
}

.usdt-radio-label:hover {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.usdt-radio-label input[type="radio"] {
	margin: 0;
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #0073aa;
}

.usdt-radio-label input[type="radio"]:checked ~ * {
	color: #0073aa;
}

/* Active Network Card */
.usdt-radio-label input[type="radio"]:checked + label,
.usdt-radio-label input[type="radio"]:checked ~ * {
	color: #0073aa;
}

.usdt-radio-label input[type="radio"]:checked {
	border-color: #0073aa;
}

/* Network Panels */
.usdt-network-panel {
	display: none;
	padding: 24px;
	border: 2px solid #e8ebf0;
	border-radius: 12px;
	background: linear-gradient(135deg, #fafbfc 0%, #fff 100%);
	margin: 20px 0;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.usdt-network-panel-visible {
	display: block;
}

.usdt-wallet-section {
	margin-bottom: 20px;
}

.usdt-wallet-label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #5a6c7d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.usdt-wallet-address {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background-color: #f0f4f8;
	border: 1px solid #d6dce6;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.usdt-wallet-address:hover {
	background-color: #e8ecf3;
	border-color: #0073aa;
}

.usdt-wallet-address code {
	font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
	font-size: 13px;
	color: #2c3e50;
	flex: 1;
	overflow-wrap: break-word;
	word-break: break-all;
	line-height: 1.4;
	margin: 0;
}

.usdt-copy-btn {
	flex-shrink: 0;
	background: #0073aa;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.usdt-copy-btn:hover {
	background: #005a87;
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.usdt-copy-btn:active {
	transform: scale(0.98);
}

.usdt-copy-feedback {
	display: none;
	position: absolute;
	top: -25px;
	right: 0;
	background: #27ae60;
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	animation: fadeInOut 2s ease;
	z-index: 10;
}

@keyframes fadeInOut {
	0% { opacity: 0; transform: translateY(5px); }
	10% { opacity: 1; transform: translateY(0); }
	90% { opacity: 1; transform: translateY(0); }
	100% { opacity: 0; transform: translateY(-5px); }
}

.usdt-copy-feedback.show {
	display: block;
}

.usdt-qr-section {
	text-align: center;
}

.usdt-qr-label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #5a6c7d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.usdt-qr-code {
	background: white;
	padding: 16px;
	border: 2px dashed #d6dce6;
	border-radius: 8px;
	display: inline-block;
	transition: all 0.2s ease;
}

.usdt-qr-code:hover {
	border-color: #0073aa;
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.usdt-qr-code img {
	max-width: 180px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.usdt-notice {
	margin: 20px 0;
	padding: 14px 16px;
	background-color: #e7f3ff;
	border-left: 4px solid #0073aa;
	border-radius: 6px;
	color: #2c3e50;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

/* Admin Settings */
.usdt-qr-wrapper {
	margin: 10px 0;
}

.usdt-qr-preview {
	margin-bottom: 15px;
}

.usdt-qr-preview img {
	max-width: 200px;
	height: auto;
	display: block;
	border: 1px solid #ddd;
	padding: 5px;
	border-radius: 4px;
}

.usdt-upload-btn,
.usdt-remove-btn {
	margin-right: 10px;
	margin-top: 10px;
}

.usdt-remove-btn {
	display: none;
}

/* Thank You Page Proof Form */
.usdt-proof-section {
	margin: 30px 0;
	padding: 24px;
	border: 2px solid #e8ebf0;
	border-radius: 12px;
	background: linear-gradient(135deg, #fafbfc 0%, #fff 100%);
}

.usdt-proof-section h2 {
	font-size: 24px;
	margin-bottom: 12px;
	color: #1a202c;
	font-weight: 700;
}

.usdt-proof-section > p {
	margin-bottom: 20px;
	color: #5a6c7d;
	font-size: 15px;
	line-height: 1.6;
}

#usdt-proof-form {
	background-color: white;
	padding: 20px;
	border: 1px solid #e8ebf0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#usdt-proof-messages {
	margin-bottom: 20px;
	min-height: 20px;
}

.usdt-error,
.usdt-success {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.usdt-error {
	background-color: #fee;
	border-left: 4px solid #c33;
	color: #c00;
}

.usdt-success {
	background-color: #efe;
	border-left: 4px solid #3c3;
	color: #030;
}

#usdt-proof-form .form-row {
	margin-bottom: 16px;
}

#usdt-proof-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #1a202c;
	font-size: 14px;
}

#usdt-proof-form input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 2px solid #e8ebf0;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 14px;
	transition: all 0.2s ease;
	cursor: pointer;
}

#usdt-proof-form input[type="file"]:hover {
	border-color: #0073aa;
	background-color: #f8fafc;
}

#usdt-proof-form input[type="file"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.usdt-file-hint {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #7a8899;
	margin-top: 6px;
}

#usdt-proof-submit {
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: #fff;
	padding: 12px 32px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
	width: 100%;
}

#usdt-proof-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

#usdt-proof-submit:active:not(:disabled) {
	transform: translateY(0);
}

#usdt-proof-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Admin Order Display */
.usdt-admin-proof {
	margin: 15px 0;
	padding: 15px;
	background-color: #f9f9f9;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
}

.usdt-admin-proof p {
	margin: 10px 0;
	font-size: 14px;
}

.usdt-admin-proof strong {
	display: block;
	margin-bottom: 8px;
	color: #333;
}

.usdt-admin-proof a {
	color: #0073aa;
	text-decoration: none;
}

.usdt-admin-proof a:hover {
	text-decoration: underline;
}

.usdt-admin-proof img {
	max-width: 200px;
	height: auto;
	border: 1px solid #ddd;
	padding: 5px;
	margin: 10px 0;
	border-radius: 4px;
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.usdt-radio-group {
		grid-template-columns: 1fr;
	}

	.usdt-wallet-address {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.usdt-copy-btn {
		width: 100%;
		text-align: center;
	}

	.usdt-network-panel {
		padding: 16px;
	}

	.usdt-gateway-container {
		padding: 16px;
	}
}

@media (max-width: 600px) {
	.usdt-qr-code img,
	.usdt-admin-proof img {
		max-width: 150px;
	}

	.usdt-network-select legend {
		font-size: 14px;
	}

	.usdt-wallet-address code {
		font-size: 12px;
	}

	.usdt-copy-btn {
		padding: 6px 10px;
		font-size: 11px;
	}

	#usdt-proof-form {
		padding: 12px;
	}

	.usdt-radio-label {
		padding: 12px;
		font-size: 14px;
	}

	.usdt-radio-label span {
		font-size: 13px;
	}

	.usdt-radio-label span small {
		font-size: 11px;
		color: #7a8899;
	}
}
