/**
 * WC Dedicated Thank You Page — frontend styles.
 * Minimal, mobile-first, dependency-free.
 *
 * NOTE: The order-overview list ("Order number / Date / Email / Total /
 * Payment method") and the "Order details" table + Billing/Shipping
 * address boxes are rendered using WooCommerce core's own markup and
 * CSS classes (.woocommerce-order-overview, .woocommerce-table--order-
 * details, .woocommerce-customer-details, etc.) so they are styled by
 * your active theme's own WooCommerce CSS (e.g. Astra) automatically.
 * This stylesheet only styles the parts this plugin adds itself: the
 * hero heading, delivery message, next-steps list, action buttons, and
 * the print invoice output.
 */

.wcdty-thank-you {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	color: #1e1e1e;
}

.wcdty-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.wcdty-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e6f6ec;
	color: #1f9254;
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.wcdty-hero-title {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.wcdty-hero-subtitle {
	color: #616161;
	margin: 0;
}

.wcdty-invoice {
	margin-bottom: 1.5rem;
}

.wcdty-invoice-print-header {
	display: none;
}

.wcdty-delivery-message {
	background: #f5f8ff;
	border: 1px solid #dce6fb;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
}

.wcdty-next-steps ol {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.wcdty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 1rem;
}

.wcdty-btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease-in-out;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.wcdty-btn:hover {
	opacity: 0.88;
}

.wcdty-btn-primary {
	background: #1e1e1e;
	color: #fff;
}

.wcdty-btn-secondary {
	background: #eee;
	color: #1e1e1e;
}

.wcdty-btn-whatsapp {
	background: #25d366;
	color: #fff;
}

.wcdty-support-contact {
	text-align: center;
	font-size: 0.875rem;
	color: #757575;
}

.wcdty-invalid-order {
	max-width: 560px;
	margin: 3rem auto;
	text-align: center;
	font-size: 0.9375rem;
}

@media ( min-width: 600px ) {
	.wcdty-thank-you {
		padding-top: 3rem;
	}

	.wcdty-hero-title {
		font-size: 1.75rem;
	}
}

/**
 * Print stylesheet.
 *
 * Only the #wcdty-invoice section (the native order-overview list and
 * order-details table/customer-details block) is printed. Everything
 * else on the page -- the hero heading, delivery message, "What
 * Happens Next", action buttons, and support contact line -- is
 * hidden so the output reads like a clean invoice, whether the
 * customer prints on paper or uses "Save as PDF".
 */
@media print {
	.wcdty-hero,
	.wcdty-delivery-message,
	.wcdty-next-steps,
	.wcdty-actions,
	.wcdty-support-contact {
		display: none !important;
	}

	.wcdty-invoice-print-header {
		display: block;
		text-align: center;
		margin-bottom: 1.5rem;
		padding-bottom: 1rem;
		border-bottom: 2px solid #1e1e1e;
	}

	.wcdty-invoice-store-name {
		font-size: 1.25rem;
		font-weight: 700;
	}

	.wcdty-invoice-title {
		font-size: 1rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		margin-top: 0.25rem;
	}

	.wcdty-invoice-meta {
		font-size: 0.875rem;
		color: #444;
		margin-top: 0.25rem;
	}

	.wcdty-thank-you {
		max-width: 100%;
		padding: 0;
	}

	.wcdty-invoice {
		display: block;
	}
}
