/**
 * CryptoPay Phase 3 - Payment Confirmation
 *
 * @package CryptoPay
 * @since 1.0.0
 */

/* Phase 3 Container */
#cryptopay-phase-3 {
	width: 100%;
	max-width: 28rem;
	background-color: white;
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin: 0 auto;
}

/* Header */
.phase3-header {
	background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
	padding: 1.5rem !important;
	color: white !important;
}

.phase3-header h2 {
	font-size: 1.25rem !important;
	font-weight: bold !important;
	color: white !important;
	margin: 0 !important;
}

.phase3-header p {
	color: #bfdbfe !important;
	margin: 0.25rem 0 0 0 !important;
	font-size: 0.875rem !important;
}

/* Content */
.phase3-content {
	padding: 1.5rem !important;
}

/* Status Display */
.phase3-status-display {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 1rem !important;
	margin-bottom: 1.5rem !important;
}

.phase3-status-icon {
	background-color: #eff6ff !important;
	padding: 1rem !important;
	border-radius: 9999px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex-shrink: 0 !important;
}

.phase3-status-icon svg {
	animation: phase3-spin 1s linear infinite;
}

.phase3-status-text {
	flex: 1 !important;
	text-align: left !important;
}

.phase3-status-text h3 {
	font-size: 1rem !important;
	font-weight: 500 !important;
	color: #111827 !important;
	line-height: 1.25 !important;
	margin: 0 0 0.25rem 0 !important;
}

.phase3-status-text p {
	font-size: 0.875rem !important;
	color: #6b7280 !important;
	line-height: 1.25 !important;
	margin: 0 !important;
}

/* Progress Bar */
.phase3-progress-bar {
	height: 0.375rem !important;
	background-color: #f1f5f9 !important;
	border-radius: 9999px !important;
	overflow: hidden !important;
	margin-bottom: 1rem !important;
}

.phase3-progress-fill {
	height: 100% !important;
	width: 75% !important;
	background: linear-gradient(to right, #2563eb, #60a5fa) !important;
	border-radius: 9999px !important;
	animation: phase3-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Time Estimate */
.phase3-time-estimate {
	background-color: #eff6ff !important;
	border-radius: 0.5rem !important;
	padding: 1rem !important;
	margin-bottom: 1.5rem !important;
}

.phase3-time-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
}

.phase3-time-left {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
}

.phase3-time-left svg {
	position: relative;
	top: -1px;
	flex-shrink: 0 !important;
}

.phase3-time-left span {
	font-size: 0.875rem !important;
	color: #64748b !important;
}

.phase3-completion-time {
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	color: #2563eb !important;
	white-space: nowrap;
}

.phase3-time-description {
	font-size: 0.75rem !important;
	color: #64748b !important;
	margin-top: 8px !important;
	line-height: 1 !important;
}

/* Alert */
.phase3-alert {
	background-color: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	border-radius: 0.5rem !important;
	padding: 1rem !important;
	display: flex !important;
	align-items: center !important;
	margin-bottom: 1.5rem !important;
	font-size: 0.875rem !important;
	color: #64748b !important;
}

.phase3-alert svg {
	flex-shrink: 0 !important;
}

.phase3-alert > span {
	margin-left: 0.5rem !important; /* Only direct child span gets margin (after SVG) */
}

.phase3-alert-network {
	color: #2563eb !important;
	font-weight: 500 !important;
	margin-left: 0 !important; /* No margin on nested network span */
}

/* Track ID */
.phase3-track-id {
	background-color: #f8fafc !important;
	border-radius: 0.5rem !important;
	padding: 1rem !important;
	margin-bottom: 1.5rem !important;
}

.phase3-track-id label {
	display: block !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	color: #374151 !important;
	margin: 0 0 0.5rem 0 !important;
}

.phase3-track-id-container {
	display: flex !important;
}

.phase3-track-id-text {
	flex: 1 !important;
	background-color: white !important;
	padding: 0.5rem 1rem !important;
	border: 1px solid #e2e8f0 !important;
	border-right: 0 !important;
	border-radius: 0.5rem 0 0 0.5rem !important;
	font-family: monospace !important;
	font-size: 0.875rem !important;
	color: #111827 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.phase3-copy-button {
	padding: 0.5rem 1rem !important;
	background-color: white !important;
	border: 1px solid #e2e8f0 !important;
	border-left: 0 !important;
	border-radius: 0 0.5rem 0.5rem 0 !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.phase3-copy-button:hover {
	background-color: #f8fafc !important;
}

.phase3-copy-icon {
	color: #64748b !important;
	stroke: #64748b !important;
}

.phase3-check-icon {
	color: #22c55e !important;
	stroke: #22c55e !important;
}

/* Progress Steps */
.phase3-progress-steps {
	padding-top: 1rem !important;
	text-align: center !important;
}

.phase3-step-dots {
	display: flex !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	margin-bottom: 0.5rem !important;
}

.phase3-dot {
	height: 0.5rem !important;
	width: 1.5rem !important;
	border-radius: 9999px !important;
}

.phase3-dot.active {
	background-color: #2563eb !important;
}

.phase3-dot.inactive {
	background-color: #e2e8f0 !important;
}

.phase3-step-text {
	font-size: 0.75rem !important;
	color: #6b7280 !important;
}

/* Animations */
@keyframes phase3-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes phase3-spin {
	to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
	#cryptopay-phase-3 {
		border-radius: 0;
	}

	.phase3-time-header {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.5rem;
	}

	.phase3-completion-time {
		align-self: flex-start;
	}
}
