/**
 * Phase 4: Payment Success Styles (Pixel-Perfect Design Matching Mockup)
 *
 * @package CryptoPay
 * @subpackage Styles
 * @since 1.0.0
 */

/* Header */
.phase4-header {
	background: linear-gradient(to right, #2563eb, #1d4ed8);
	padding: 1.5rem;
	color: #fff;
	margin: 0;
	border-radius: 0;
}

.phase4-header h1 {
	font-size: 1.25rem;
	font-weight: bold;
	margin: 0;
	color: #fff;
}

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

/* Content */
.phase4-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Success Status */
.phase4-success-status {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.phase4-icon-circle {
	background: #f0fdf4;
	padding: 1rem;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.phase4-status-text {
	min-width: 250px;
}

.phase4-status-text h2 {
	color: #111827;
	font-weight: 500;
	font-size: 1rem;
	margin: 0;
}

.phase4-status-text p {
	color: #6b7280;
	font-size: 0.875rem;
	margin: 0.25rem 0 0 0;
}

/* Fields Container */
.phase4-fields-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.phase4-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.phase4-field-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
}

.phase4-field-container {
	display: flex;
	position: relative;
}

.phase4-field-value {
	flex: 1;
	background: #fff;
	padding: 0.5rem 1rem;
	border: 1px solid #e5e7eb;
	border-right: none;
	border-radius: 0.5rem 0 0 0.5rem;
	font-family: 'Courier New', Consolas, Monaco, monospace;
	font-size: 0.875rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	display: flex;
	align-items: center;
	color: #111827;
}

.phase4-copy-button {
	padding: 0.5rem 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0 0.5rem 0.5rem 0;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	position: relative;
	flex-shrink: 0;
}

.phase4-copy-button:hover {
	background: #f3f4f6;
}

.phase4-copy-button:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.phase4-copy-button svg {
	width: 1.25rem;
	height: 1.25rem;
	stroke: #6b7280;
}

/* Tooltip */
.phase4-tooltip {
	position: absolute;
	background: #111827;
	color: #fff;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 0.5rem;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phase4-tooltip.visible {
	opacity: 1;
}

/* Timer Container */
.phase4-timer-container {
	padding: 1rem 0;
	display: flex;
	justify-content: center;
}

.phase4-circular-timer {
	position: relative;
	width: 5rem;
	height: 5rem;
}

.phase4-circular-timer svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.phase4-timer-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.5rem;
	font-weight: bold;
	color: #111827;
}

/* Finalize Button */
.phase4-finalize-button {
	width: 100%;
	padding: 0.75rem 1rem;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.phase4-finalize-button:disabled {
	background: #6b7280;
	cursor: not-allowed;
}

.phase4-finalize-button:hover:not(:disabled) {
	background: #1d4ed8;
}

.phase4-finalize-button:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* Progress Container */
.phase4-progress-container {
	margin-top: 0;
}

.phase4-progress-steps {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.phase4-step-bar {
	height: 0.5rem;
	width: 1.5rem;
	background: #2563eb;
	border-radius: 9999px;
}

.phase4-step-text {
	text-align: center;
	font-size: 0.75rem;
	color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 480px) {
	.phase4-header {
		padding: 1rem;
	}

	.phase4-content {
		padding: 1rem;
		gap: 1.25rem;
	}

	.phase4-success-status {
		gap: 0.75rem;
	}

	.phase4-icon-circle {
		padding: 0.75rem;
	}

	.phase4-icon-circle svg {
		width: 24px;
		height: 24px;
	}

	.phase4-status-text {
		min-width: 0;
	}

	.phase4-field-value {
		font-size: 0.75rem;
		padding: 0.5rem 0.75rem;
	}

	.phase4-copy-button {
		padding: 0.5rem 0.75rem;
	}

	.phase4-circular-timer {
		width: 4rem;
		height: 4rem;
	}

	.phase4-timer-text {
		font-size: 1.25rem;
	}
}

/* Copy Animation */
@keyframes phase4CheckMark {
	0% { transform: scale(0); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.phase4-copy-button.copied svg {
	animation: phase4CheckMark 0.3s ease;
}
