.emwc-single-event {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.emwc-single-event *,
.emwc-single-event *::before,
.emwc-single-event *::after {
	box-sizing: border-box;
}

/* Prevent text overflow on all elements */
.emwc-single-event p,
.emwc-single-event h1,
.emwc-single-event h2,
.emwc-single-event h3,
.emwc-single-event span {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.emwc-event-hero {
	position: relative;
	margin: 0 -20px 30px;
	overflow: hidden;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	min-height: 200px;
}

.emwc-event-hero img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	display: block;
}

.emwc-date-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: #fff;
	border-radius: 8px;
	padding: 12px 16px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	min-width: 60px;
}

.emwc-date-month {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #e74c3c;
	letter-spacing: 1px;
}

.emwc-date-day {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1;
	margin-top: 2px;
}

.emwc-event-container {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: start;
}

.emwc-event-header {
	margin-bottom: 30px;
}

.emwc-status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.emwc-status-cancelled { background: #fee2e2; color: #dc2626; }
.emwc-status-postponed { background: #fef3c7; color: #d97706; }
.emwc-status-sold-out { background: #f3f4f6; color: #6b7280; }

.emwc-event-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: #1a1a2e;
}

.emwc-event-meta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.emwc-meta-card {
	display: flex;
	gap: 14px;
	padding: 18px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.emwc-meta-icon {
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.emwc-meta-icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #6366f1;
}

.emwc-meta-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.emwc-meta-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
}

.emwc-meta-value {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.emwc-meta-sub {
	font-size: 13px;
	color: #64748b;
}

.emwc-event-description {
	margin-bottom: 40px;
}

.emwc-event-description h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a2e;
}

.emwc-event-description p {
	line-height: 1.7;
	color: #475569;
}

.emwc-event-map {
	margin-bottom: 40px;
}

.emwc-event-map h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a2e;
}

.emwc-map-container {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.emwc-map-container iframe {
	display: block;
}

.emwc-address-text {
	margin: 12px 0 0;
	font-size: 14px;
	color: #64748b;
}

.emwc-event-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
}

.emwc-tag {
	display: inline-block;
	padding: 6px 14px;
	background: #f1f5f9;
	color: #475569;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
}

.emwc-tag:hover {
	background: #6366f1;
	color: #fff;
}

.emwc-event-sidebar {
	position: sticky;
	top: 100px;
}

.emwc-ticket-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.emwc-ticket-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}

.emwc-ticket-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.emwc-ticket-row:first-child {
	padding-top: 0;
}

/* Inline ticket form styles */
.emwc-ticket-form {
	margin: 0;
}

.emwc-ticket-form-inline {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.emwc-ticket-form-inline button {
	margin: 0;
}

.emwc-ticket-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.emwc-ticket-label {
	font-weight: 500;
	color: #1e293b;
	font-size: 14px;
}

.emwc-ticket-persons {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #f0fdf4;
	border-radius: 6px;
	font-size: 15px;
	color: #16a34a;
	margin-bottom: 16px;
}

.emwc-ticket-persons .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.emwc-ticket-persons .woocommerce-Price-amount {
	font-weight: 700;
	font-size: 18px;
}

.emwc-per-person {
	font-weight: 400;
	font-size: 13px;
	opacity: 0.85;
}

.emwc-ticket-meta {
	display: block;
	font-size: 13px;
	color: #64748b;
	margin-top: 2px;
}

.emwc-ticket-meta .woocommerce-Price-amount {
	color: #1e293b;
	font-weight: 600;
}

.emwc-ticket-persons-sm {
	font-size: 12px;
	color: #64748b;
	font-weight: 400;
}

.emwc-btn-sm {
	padding: 6px 14px !important;
	font-size: 13px !important;
}

.emwc-btn-full {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	padding: 14px 20px !important;
	font-size: 16px !important;
}

.emwc-btn-primary {
	background: #6366f1 !important;
	color: #fff !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	transition: background 0.2s !important;
}

.emwc-btn-primary:hover {
	background: #4f46e5 !important;
}

.emwc-notice-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
	font-size: 14px;
	color: #64748b;
}

.emwc-notice-error {
	background: #fef2f2;
	color: #dc2626;
}

.emwc-share-box {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
}

.emwc-share-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	display: block;
	margin-bottom: 12px;
}

.emwc-share-links {
	display: flex;
	gap: 8px;
}

.emwc-share-links a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border-radius: 8px;
	color: #64748b;
	text-decoration: none;
	transition: all 0.2s;
}

.emwc-share-links a:hover {
	background: #6366f1;
	color: #fff;
}

/* Countdown timer in ticket card - ensure single line on desktop */
.emwc-ticket-card .emwc-countdown {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: nowrap;
}

.emwc-ticket-card .emwc-cd-item {
	flex: 0 0 auto;
	min-width: 50px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 900px) {
	.emwc-event-container {
		grid-template-columns: 1fr;
	}
	.emwc-event-sidebar {
		position: static;
		order: -1;
	}
	.emwc-event-meta-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.emwc-single-event {
		padding: 0 16px;
	}

	.emwc-event-hero {
		margin: 0 -16px 24px;
		border-radius: 0;
	}

	.emwc-event-hero img {
		height: 250px;
	}

	.emwc-date-badge {
		top: 16px;
		left: 16px;
		padding: 10px 12px;
		min-width: 50px;
	}

	.emwc-date-month {
		font-size: 11px;
	}

	.emwc-date-day {
		font-size: 24px;
	}

	.emwc-event-container {
		gap: 24px;
	}

	.emwc-event-header {
		margin-bottom: 20px;
	}

	.emwc-event-title {
		font-size: 26px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.emwc-event-meta-grid {
		gap: 12px;
		margin-bottom: 24px;
	}

	.emwc-meta-card {
		padding: 14px;
		gap: 12px;
	}

	.emwc-meta-icon {
		width: 40px;
		height: 40px;
	}

	.emwc-meta-icon .dashicons {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}

	.emwc-meta-value {
		font-size: 14px;
	}

	.emwc-meta-sub {
		font-size: 12px;
	}

	.emwc-event-description {
		margin-bottom: 24px;
	}

	.emwc-event-description h2,
	.emwc-event-map h2,
	.emwc-event-speakers h2 {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.emwc-event-description p {
		font-size: 15px;
		line-height: 1.6;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.emwc-ticket-card {
		padding: 20px;
	}

	/* Allow countdown to wrap only on mobile */
	.emwc-ticket-card .emwc-countdown {
		flex-wrap: wrap !important;
		gap: 8px;
	}

	.emwc-ticket-card .emwc-cd-item {
		min-width: 45px;
	}

	.emwc-ticket-persons {
		padding: 10px 14px;
		font-size: 14px;
	}

	.emwc-ticket-persons .woocommerce-Price-amount {
		font-size: 16px;
	}

	.emwc-btn-full {
		padding: 12px 16px !important;
		font-size: 15px !important;
	}

	.emwc-share-links a {
		width: 36px;
		height: 36px;
	}

	.emwc-event-tags {
		margin-bottom: 20px;
	}

	.emwc-tag {
		padding: 5px 12px;
		font-size: 12px;
	}
}

@media (max-width: 600px) {
	.emwc-single-event {
		padding: 0 12px;
	}

	.emwc-event-hero {
		margin: 0 -12px 20px;
	}

	.emwc-event-hero img {
		height: 200px;
	}

	.emwc-date-badge {
		top: 12px;
		left: 12px;
		padding: 8px 10px;
		min-width: 44px;
		border-radius: 6px;
	}

	.emwc-date-month {
		font-size: 10px;
	}

	.emwc-date-day {
		font-size: 20px;
	}

	.emwc-event-container {
		gap: 20px;
	}

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

	.emwc-meta-card {
		padding: 12px;
	}

	.emwc-meta-icon {
		width: 36px;
		height: 36px;
	}

	.emwc-meta-icon .dashicons {
		font-size: 18px;
		width: 18px;
		height: 18px;
	}

	.emwc-meta-label {
		font-size: 10px;
	}

	.emwc-meta-value {
		font-size: 13px;
	}

	.emwc-meta-sub {
		font-size: 11px;
	}

	.emwc-ticket-card {
		padding: 16px;
	}

	.emwc-ticket-row {
		padding: 10px 0;
		flex-wrap: wrap;
		gap: 8px;
	}

	.emwc-ticket-info {
		flex: 1 1 100%;
	}

	.emwc-ticket-option {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.emwc-speakers-grid {
		grid-template-columns: 1fr;
	}

	.emwc-speaker-card {
		padding: 14px;
		gap: 12px;
	}

	.emwc-speaker-photo {
		width: 52px;
		height: 52px;
	}

	.emwc-speaker-name {
		font-size: 15px;
	}

	.emwc-speaker-title {
		font-size: 13px;
	}
}

@media (max-width: 400px) {
	.emwc-single-event {
		padding: 0 10px;
	}

	.emwc-event-hero {
		margin: 0 -10px 16px;
	}

	.emwc-event-hero img {
		height: 180px;
	}

	.emwc-event-title {
		font-size: 20px;
	}

	.emwc-meta-card {
		padding: 10px;
		gap: 10px;
	}

	.emwc-meta-icon {
		width: 32px;
		height: 32px;
		border-radius: 8px;
	}

	.emwc-meta-icon .dashicons {
		font-size: 16px;
		width: 16px;
		height: 16px;
	}

	.emwc-ticket-card {
		padding: 14px;
		border-radius: 10px;
	}

	.emwc-btn-full {
		padding: 10px 14px !important;
		font-size: 14px !important;
	}

	.emwc-share-links {
		flex-wrap: wrap;
	}

	.emwc-share-links a {
		width: 34px;
		height: 34px;
	}
}
