@use '../../../scss/variables/colors' as colors;

.edd-modal.edd-modal--cart-recovery {
	max-width: 800px;
}

.edd-acr-cart-details {
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: left;

	h3 {
		font-size: 16px;
		margin-bottom: 16px;
		padding: 0 0 8px 0;
		border-bottom: 1px solid colors.$wp-gray-5;
		font-weight: 600;
	}
}

.edd-acr-cart-section {

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

	code {
		background: colors.$wp-gray-5;
		padding: 2px 6px;
		border-radius: 3px;
		font-family: monospace;
		font-size: 12px;
	}
}

/* Info grid for customer, totals, and metadata sections */
.edd-acr-info-grid {
	display: grid;
}

.edd-acr-info-row {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) 2fr;
	gap: 16px;
	padding: 12px;

	@media (max-width: 600px) {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

.edd-acr-info-label {
	font-weight: 600;
	color: colors.$wp-gray-50;
}

.edd-acr-info-value {
	word-break: break-word;
}

/* Cart items list with rich detail display */
.edd-acr-items-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Email history list */
.edd-acr-email-list {
	display: grid;
	gap: 12px;
}

.edd-acr-email-item {
	padding: 12px;
	border: 1px solid colors.$wp-border;
	border-radius: 4px;
	border-left: 3px solid var(--edd-wp-admin-theme-color);
}

.edd-acr-email-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
	flex-wrap: wrap;

	strong {
		flex: 1;
		min-width: 0;
		word-break: break-word;
	}
}

.edd-acr-email-meta {
	font-size: 13px;
	color: colors.$wp-gray-50;
}

/* Empty message */
.edd-acr-empty-message {
	padding: 16px;
	text-align: center;
	color: colors.$wp-gray-50;
	border: 1px solid colors.$wp-gray-5;
	border-radius: 4px;
	margin: 0;
}
