/**
 * Printable event ticket styles.
 *
 * The primary colour is injected via the `--emwc-ticket-primary` CSS variable
 * (see `wp_add_inline_style( 'emwc-ticket', ... )` in EMWC_PDF_Ticket).
 */

:root {
	--emwc-ticket-primary: #2563eb;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #f5f5f5;
	padding: 20px;
	color: #333;
}

.emwc-ticket-actions {
	max-width: 700px;
	margin: 0 auto 20px;
	display: flex;
	gap: 10px;
}

.emwc-ticket-actions button {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.emwc-btn-print {
	background: var( --emwc-ticket-primary );
	color: #fff;
}

.emwc-btn-print:hover {
	opacity: 0.9;
}

.emwc-btn-close {
	background: #e5e7eb;
	color: #374151;
}

.emwc-btn-close:hover {
	background: #d1d5db;
}

.emwc-ticket {
	max-width: 700px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.emwc-ticket-header {
	background: var( --emwc-ticket-primary );
	color: #fff;
	padding: 24px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.emwc-ticket-logo {
	max-height: 50px;
	max-width: 200px;
}

.emwc-ticket-site-name {
	font-size: 24px;
	font-weight: 700;
}

.emwc-ticket-badge {
	background: rgba(255, 255, 255, 0.2);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
}

.emwc-ticket-body {
	display: flex;
	padding: 30px;
	gap: 30px;
}

.emwc-ticket-main {
	flex: 1;
}

.emwc-ticket-event-name {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	margin-bottom: 24px;
	line-height: 1.3;
}

.emwc-ticket-details {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emwc-ticket-detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.emwc-ticket-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: 0.5px;
}

.emwc-ticket-value {
	font-size: 16px;
	color: #111;
}

.emwc-ticket-value small {
	color: #6b7280;
	font-size: 14px;
}

.emwc-ticket-qr {
	width: 180px;
	text-align: center;
	border-left: 2px dashed #e5e7eb;
	padding-left: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.emwc-ticket-qr-image {
	width: 150px;
	height: 150px;
}

.emwc-ticket-code {
	margin-top: 12px;
	font-family: "SF Mono", Monaco, "Courier New", monospace;
	font-size: 14px;
	font-weight: 600;
	color: #111;
	background: #f3f4f6;
	padding: 8px 16px;
	border-radius: 6px;
}

.emwc-ticket-footer {
	background: #f9fafb;
	padding: 20px 30px;
	text-align: center;
	border-top: 1px solid #e5e7eb;
}

.emwc-ticket-footer p {
	font-size: 13px;
	color: #6b7280;
	margin: 4px 0;
}

.emwc-ticket-order {
	font-weight: 600;
	color: #374151 !important;
}

@media print {
	body {
		background: #fff;
		padding: 0;
	}

	.no-print {
		display: none !important;
	}

	.emwc-ticket {
		box-shadow: none;
		max-width: 100%;
	}
}

@media ( max-width: 600px ) {
	.emwc-ticket-body {
		flex-direction: column;
	}

	.emwc-ticket-qr {
		width: 100%;
		border-left: none;
		border-top: 2px dashed #e5e7eb;
		padding-left: 0;
		padding-top: 30px;
	}

	.emwc-ticket-event-name {
		font-size: 22px;
	}
}
