/**
 * MightyPress Woo Provisioning - Product Display Styles
 *
 * @package MightyPress_Woo_Provisioning
 * @version 1.0.0
 */

/* ==========================================================================
   Hosting Features
   ========================================================================== */

.mwp-hosting-features {
	margin: 1.5em 0;
	padding: 1.5em;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.mwp-hosting-features h3 {
	margin: 0 0 1em;
	font-size: 1.1em;
	font-weight: 600;
	color: #1e3a5f;
}

.mwp-features-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mwp-features-list.mwp-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75em;
}

.mwp-features-list.mwp-layout-list .mwp-feature-item {
	margin-bottom: 0.5em;
}

.mwp-feature-item {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 0;
	color: #333;
}

.mwp-feature-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: #28a745;
}

.mwp-feature-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.mwp-feature-text {
	font-size: 0.95em;
}

/* ==========================================================================
   Hosting Badges
   ========================================================================== */

.mwp-hosting-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 1em 0;
}

.mwp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.35em 0.75em;
	font-size: 0.8em;
	font-weight: 500;
	border-radius: 4px;
	white-space: nowrap;
}

.mwp-badge .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.mwp-badge-hosting {
	background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
	color: #fff;
}

.mwp-badge-ssl {
	background: #d4edda;
	color: #155724;
}

.mwp-badge-backups {
	background: #cce5ff;
	color: #004085;
}

.mwp-badge-cdn {
	background: #fff3cd;
	color: #856404;
}

.mwp-badge-datacenter {
	background: #e2e3e5;
	color: #383d41;
}

/* ==========================================================================
   Provisioning Status (Order Received Page)
   ========================================================================== */

.mwp-provisioning-status {
	margin: 2em 0;
	padding: 0;
}

.mwp-provisioning-status h2 {
	margin: 0 0 1em;
	font-size: 1.3em;
	font-weight: 600;
	color: #1e3a5f;
}

.mwp-site-provisioning {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 1.5em;
	overflow: hidden;
}

.mwp-site-product {
	padding: 1em 1.5em;
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
}

.mwp-site-product strong {
	color: #1e3a5f;
}

.mwp-provisioning-content {
	padding: 2em;
}

/* Status Animation */
.mwp-status-animation {
	text-align: center;
	margin-bottom: 1.5em;
}

/* Spinner */
.mwp-spinner {
	display: inline-block;
	width: 48px;
	height: 48px;
	border: 4px solid #e0e0e0;
	border-top-color: #2c5282;
	border-radius: 50%;
	animation: mwp-spin 1s linear infinite;
}

.mwp-spinner-small {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #e0e0e0;
	border-top-color: #2c5282;
	border-radius: 50%;
	animation: mwp-spin 1s linear infinite;
}

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

/* Checkmark */
.mwp-checkmark {
	display: inline-block;
	color: #28a745;
}

.mwp-checkmark .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

/* Error Icon */
.mwp-error-icon {
	display: inline-block;
	color: #dc3545;
}

.mwp-error-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

/* Status Title and Message */
.mwp-status-title {
	margin: 0 0 0.5em;
	font-size: 1.3em;
	font-weight: 600;
	color: #1e3a5f;
	text-align: center;
}

.mwp-status-message {
	margin: 0 0 1.5em;
	color: #666;
	text-align: center;
	font-size: 1em;
}

/* Progress Steps */
.mwp-status-steps {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	max-width: 300px;
	margin: 1.5em auto;
}

.mwp-step {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.5em 0;
	color: #aaa;
	font-size: 0.95em;
}

.mwp-step-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.mwp-step-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.mwp-step-active {
	color: #28a745;
}

.mwp-step-active .mwp-step-icon {
	color: #28a745;
}

.mwp-step-current {
	color: #2c5282;
	font-weight: 500;
}

.mwp-step-current .mwp-step-icon {
	color: #2c5282;
}

/* Auto Refresh Notice */
.mwp-auto-refresh-notice {
	text-align: center;
	color: #888;
	margin-top: 1.5em;
}

/* Site Details Card */
.mwp-site-details-card {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1.5em;
	margin: 1.5em 0;
}

.mwp-site-details {
	width: 100%;
	border-collapse: collapse;
}

.mwp-site-details th,
.mwp-site-details td {
	padding: 0.75em 0;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.mwp-site-details tr:last-child th,
.mwp-site-details tr:last-child td {
	border-bottom: none;
}

.mwp-site-details th {
	width: 120px;
	font-weight: 600;
	color: #666;
}

.mwp-site-details td a {
	color: #2c5282;
	text-decoration: none;
}

.mwp-site-details td a:hover {
	text-decoration: underline;
}

.mwp-site-details .dashicons-external {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin-left: 0.25em;
	vertical-align: middle;
}

/* Site Actions */
.mwp-site-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: center;
	margin-top: 1.5em;
}

.mwp-site-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.mwp-site-actions .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Failed/Other States */
.mwp-status-failed,
.mwp-status-other {
	text-align: center;
}

.mwp-support-notice {
	color: #666;
	font-size: 0.9em;
}

.mwp-support-notice a {
	color: #2c5282;
}

/* ==========================================================================
   Subscription Hosting Details
   ========================================================================== */

.mwp-subscription-hosting {
	margin: 2em 0;
}

.mwp-subscription-hosting h2 {
	margin: 0 0 1em;
	font-size: 1.2em;
	font-weight: 600;
	color: #1e3a5f;
}

.mwp-hosting-pending {
	padding: 1.5em;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
}

.mwp-status-notice {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin: 0;
}

.mwp-status-notice .dashicons {
	flex-shrink: 0;
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.mwp-status-notice.mwp-status-pending {
	color: #856404;
}

/* Hosting Status Badge */
.mwp-hosting-status {
	margin-bottom: 1em;
}

.mwp-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.5em 1em;
	font-size: 0.9em;
	font-weight: 500;
	border-radius: 20px;
}

.mwp-status-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.mwp-status-live {
	background: #d4edda;
	color: #155724;
}

.mwp-status-staging {
	background: #cce5ff;
	color: #004085;
}

.mwp-status-pending {
	background: #ffffff;
	color: #856404;
}

.mwp-status-disabled {
	background: #f8d7da;
	color: #721c24;
}

.mwp-status-failed {
	background: #f8d7da;
	color: #721c24;
}

/* Hosting Details Table */
.mwp-hosting-details-table {
	margin-bottom: 1.5em;
}

.mwp-hosting-details-table th {
	width: 150px;
	font-weight: 600;
	color: #666;
}

.mwp-hosting-details-table td a {
	color: #2c5282;
	text-decoration: none;
}

.mwp-hosting-details-table td a:hover {
	text-decoration: underline;
}

.mwp-hosting-details-table .dashicons-external {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin-left: 0.25em;
	vertical-align: middle;
}

.mwp-hosting-details-table code {
	background: #f1f1f1;
	padding: 0.2em 0.5em;
	border-radius: 3px;
	font-size: 0.9em;
}

/* Hosting Actions */
.mwp-hosting-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1em;
}

.mwp-hosting-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.mwp-hosting-actions .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Hosting Notices */
.mwp-hosting-notice {
	display: flex;
	gap: 0.75em;
	padding: 1em 1.25em;
	border-radius: 6px;
	margin-top: 1.5em;
}

.mwp-hosting-notice .dashicons {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.mwp-hosting-notice p {
	margin: 0;
}

.mwp-notice-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.mwp-notice-error {
	background: #f8d7da;
	border: 1px solid #dc3545;
	color: #721c24;
}

.mwp-notice-error a {
	color: #721c24;
	font-weight: 500;
}

/* ==========================================================================
   Checkout Hosting Fields
   ========================================================================== */

.mwp-checkout-hosting-fields {
	margin: 1.5em 0;
	padding: 1.5em;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.mwp-checkout-hosting-fields h3 {
	margin: 0 0 1em;
	font-size: 1.1em;
	font-weight: 600;
	color: #1e3a5f;
}

.mwp-checkout-hosting-fields h3 .dashicons {
	margin-right: 0.5em;
	vertical-align: middle;
}

.mwp-checkout-hosting-fields .form-row {
	margin-bottom: 1em;
}

.mwp-checkout-hosting-fields .form-row:last-child {
	margin-bottom: 0;
}

.mwp-checkout-hosting-fields label {
	font-weight: 500;
	color: #333;
}

.mwp-checkout-hosting-fields input,
.mwp-checkout-hosting-fields select {
	width: 100%;
	max-width: 400px;
}

.mwp-checkout-hosting-fields .description {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.25em;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media screen and (max-width: 768px) {
	.mwp-features-list.mwp-layout-grid {
		grid-template-columns: 1fr;
	}

	.mwp-hosting-badges {
		justify-content: flex-start;
	}

	.mwp-site-actions {
		flex-direction: column;
	}

	.mwp-site-actions .button {
		width: 100%;
		justify-content: center;
	}

	.mwp-status-steps {
		max-width: none;
	}

	.mwp-hosting-details-table th {
		width: 120px;
	}

	.mwp-hosting-actions {
		flex-direction: column;
	}

	.mwp-hosting-actions .button {
		width: 100%;
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	.mwp-provisioning-content {
		padding: 1.5em;
	}

	.mwp-site-details-card {
		padding: 1em;
	}

	.mwp-hosting-notice {
		flex-direction: column;
		text-align: center;
	}
}
