/**
 * EM Storefront — Order Received page components styles
 */

/* ==========================================================================
   EM Order Hero (.em-oh)
   ========================================================================== */
.em-oh {
	text-align: center;
	padding: 60px 32px;
	font-family: var(--em-font-body);
	max-width: 720px;
	margin: 0 auto;
}

.em-oh-icon-success {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: var(--em-green-deep);
	color: var(--em-cream);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 8px rgba(31, 58, 46, 0.08);
	animation: em-oh-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.em-oh-icon-failed {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: var(--em-rust);
	color: var(--em-cream);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 8px rgba(168, 69, 31, 0.08);
}

@keyframes em-oh-pop {
	0%   { transform: scale(0); opacity: 0; }
	60%  { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

.em-oh-title {
	font-family: var(--em-font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
	color: var(--em-green-deep);
	margin: 0 0 14px;
	line-height: 1.1;
	letter-spacing: -.02em;
}
.em-oh-failed .em-oh-title {
	color: var(--em-rust);
}
.em-oh-title em {
	font-style: italic;
	color: var(--em-rust);
}
.em-oh-failed .em-oh-title em {
	color: var(--em-green-deep);
}

.em-oh-subtitle {
	color: var(--em-earth);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 32px;
}

.em-oh-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	padding: 24px;
	background: var(--em-cream);
	border-radius: 8px;
	margin-top: 8px;
}
.em-oh-meta-item small {
	display: block;
	font-size: 11px;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--em-earth);
	font-weight: 600;
	margin-bottom: 4px;
}
.em-oh-meta-item strong {
	display: block;
	font-family: var(--em-font-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--em-green-deep);
}

.em-oh-retry-btn {
	display: inline-block;
	padding: 14px 32px;
	background: var(--em-green-deep);
	color: var(--em-cream);
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background .15s, transform .15s;
}
.em-oh-retry-btn:hover {
	background: var(--em-green-mid);
	color: var(--em-cream);
	transform: translateY(-1px);
}

/* ==========================================================================
   EM Order Details (.em-od)
   ========================================================================== */
.em-od {
	font-family: var(--em-font-body);
	margin: 40px 0;
}

.em-od-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.em-od-card {
	background: var(--em-paper);
	border: 1px solid var(--em-line);
	border-radius: 8px;
	padding: 28px;
	margin-bottom: 16px;
}
.em-od-card:last-child { margin-bottom: 0; }

.em-od-card-heading {
	font-family: var(--em-font-heading);
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--em-green-deep);
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--em-line);
	letter-spacing: -.005em;
}
.em-od-card-heading-sm {
	font-family: var(--em-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--em-green-deep);
	margin: 0 0 14px;
}

/* Items */
.em-od-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--em-line);
}
.em-od-item {
	display: flex;
	gap: 14px;
	align-items: center;
}
.em-od-item-img {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--em-cream-warm);
	flex-shrink: 0;
}
.em-od-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.em-od-qty-bubble {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--em-green-deep);
	color: var(--em-cream);
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--em-paper);
}
.em-od-item-info {
	flex: 1;
	min-width: 0;
}
.em-od-item-info strong {
	display: block;
	font-family: var(--em-font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--em-green-deep);
	line-height: 1.3;
	margin-bottom: 2px;
}
.em-od-item-info small {
	display: block;
	font-size: 11px;
	color: var(--em-earth);
}
.em-od-item-price {
	font-family: var(--em-font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--em-green-deep);
	white-space: nowrap;
}

/* Totals */
.em-od-totals-list {
	margin: 0;
}
.em-od-totals-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 13px;
	color: var(--em-earth);
}
.em-od-totals-row dt {
	font-weight: 400;
	margin: 0;
}
.em-od-totals-row dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	color: var(--em-green-deep);
	font-weight: 600;
}
.em-od-totals-final {
	font-family: var(--em-font-heading);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--em-green-deep);
	border-top: 1px solid var(--em-line);
	margin-top: 8px;
	padding-top: 12px;
}
.em-od-totals-final dt {
	color: var(--em-green-deep);
	font-weight: 500;
}

/* Address */
.em-od-address {
	font-style: normal;
	font-size: 13px;
	line-height: 1.6;
	color: var(--em-ink);
	margin: 0 0 12px;
}
.em-od-contact-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--em-earth);
}
.em-od-contact-line svg {
	color: var(--em-green-soft);
	flex-shrink: 0;
}
.em-od-contact-line a {
	color: var(--em-green-deep);
	text-decoration: none;
	transition: color .15s;
}
.em-od-contact-line a:hover {
	color: var(--em-rust);
	text-decoration: underline;
}

/* Invoice */
.em-od-invoice-card {
	border-color: var(--em-wheat);
	background: linear-gradient(135deg, var(--em-paper) 0%, var(--em-cream) 100%);
}
.em-od-invoice-list {
	margin: 0;
}
.em-od-invoice-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 12px;
	border-bottom: 1px dashed var(--em-line);
}
.em-od-invoice-row:last-child {
	border-bottom: none;
}
.em-od-invoice-row dt {
	color: var(--em-earth);
	font-weight: 500;
	margin: 0;
}
.em-od-invoice-row dd {
	margin: 0;
	color: var(--em-ink);
	text-align: right;
	max-width: 60%;
	word-break: break-word;
}

/* Note */
.em-od-note {
	font-style: italic;
	color: var(--em-earth);
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
	padding: 12px 14px;
	background: var(--em-cream);
	border-left: 3px solid var(--em-wheat);
	border-radius: 4px;
}

/* ==========================================================================
   EM Order Next Steps (.em-ons)
   ========================================================================== */
.em-ons {
	font-family: var(--em-font-body);
	margin: 40px 0;
	padding: 40px 0;
}
.em-ons-head {
	text-align: center;
	margin-bottom: 32px;
}
.em-ons-heading {
	font-family: var(--em-font-heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	color: var(--em-green-deep);
	margin: 0 0 8px;
	letter-spacing: -.01em;
}
.em-ons-sub {
	color: var(--em-earth);
	font-size: 14px;
	margin: 0;
}

/* AWB block (priority above timeline) */
.em-ons-awb {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--em-green-deep) 0%, var(--em-green-mid) 100%);
	color: var(--em-cream);
	border-radius: 8px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.em-ons-awb-icon {
	width: 48px;
	height: 48px;
	background: rgba(245, 240, 230, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.em-ons-awb-info {
	flex: 1;
	min-width: 200px;
}
.em-ons-awb-info strong {
	display: block;
	font-family: var(--em-font-heading);
	font-size: 16px;
	font-weight: 500;
	color: var(--em-cream);
	margin-bottom: 4px;
	letter-spacing: -.005em;
}
.em-ons-awb-info small {
	display: block;
	font-size: 12px;
	color: rgba(245, 240, 230, 0.85);
}
.em-ons-awb-info code {
	background: rgba(245, 240, 230, 0.15);
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 11px;
}
.em-ons-awb-info strong:not(:first-child) {
	color: var(--em-wheat);
	font-weight: 600;
	font-size: 12px;
	display: inline;
}
.em-ons-awb-btn {
	display: inline-flex;
	align-items: center;
	padding: 11px 22px;
	background: var(--em-wheat);
	color: var(--em-green-deep);
	border-radius: 50px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.em-ons-awb-btn:hover {
	background: var(--em-wheat-light);
	transform: translateY(-1px);
}

/* Timeline */
.em-ons-timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 720px;
	margin: 0 auto;
}
.em-ons-step {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 18px;
	position: relative;
	padding-bottom: 28px;
}
.em-ons-step:last-child {
	padding-bottom: 0;
}
.em-ons-step-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--em-paper);
	border: 2px solid var(--em-line);
	color: var(--em-green-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .2s, border-color .2s, color .2s;
	z-index: 1;
}
.em-ons-step-icon svg,
.em-ons-step-icon i {
	width: 20px;
	height: 20px;
	font-size: 18px;
}
.em-ons-step.is-done .em-ons-step-icon {
	background: var(--em-green-deep);
	border-color: var(--em-green-deep);
	color: var(--em-cream);
}
.em-ons-step.is-active .em-ons-step-icon {
	background: var(--em-wheat);
	border-color: var(--em-wheat);
	color: var(--em-green-deep);
	box-shadow: 0 0 0 6px rgba(200, 165, 91, 0.15);
	animation: em-ons-pulse 2s ease-in-out infinite;
}
.em-ons-step.is-pending .em-ons-step-icon {
	opacity: 0.6;
}

@keyframes em-ons-pulse {
	0%, 100% { box-shadow: 0 0 0 6px rgba(200, 165, 91, 0.15); }
	50%      { box-shadow: 0 0 0 10px rgba(200, 165, 91, 0.05); }
}

.em-ons-step-line {
	position: absolute;
	left: 23px;
	top: 48px;
	bottom: 4px;
	width: 2px;
	background: var(--em-line);
	z-index: 0;
	transition: background .2s;
}
.em-ons-step-line.is-done {
	background: var(--em-green-deep);
}

.em-ons-step-body {
	padding-top: 11px;
}
.em-ons-step-body strong {
	display: block;
	font-family: var(--em-font-heading);
	font-size: 16px;
	font-weight: 500;
	color: var(--em-green-deep);
	line-height: 1.3;
	letter-spacing: -.005em;
	margin-bottom: 4px;
}
.em-ons-step.is-pending .em-ons-step-body strong {
	color: var(--em-green-soft);
}
.em-ons-step-body p {
	margin: 0;
	font-size: 13px;
	color: var(--em-earth);
	line-height: 1.55;
}
.em-ons-step.is-pending .em-ons-step-body p {
	opacity: 0.75;
}

/* ==========================================================================
   EM Order CTA (.em-octa)
   ========================================================================== */
.em-octa {
	font-family: var(--em-font-body);
	margin: 40px 0;
	padding: 40px 0;
}
.em-octa-heading {
	font-family: var(--em-font-heading);
	font-size: clamp(1.4rem, 2.8vw, 1.8rem);
	font-weight: 500;
	color: var(--em-green-deep);
	margin: 0 0 28px;
	text-align: center;
	letter-spacing: -.01em;
}
.em-octa-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.em-octa-cols-2 .em-octa-grid { grid-template-columns: repeat(2, 1fr); }
.em-octa-cols-4 .em-octa-grid { grid-template-columns: repeat(4, 1fr); }

.em-octa-card {
	background: var(--em-paper);
	border: 1px solid var(--em-line);
	border-radius: 8px;
	padding: 28px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform .2s, border-color .15s;
}
.em-octa-card:hover {
	border-color: var(--em-wheat);
	transform: translateY(-2px);
}

.em-octa-card.is-highlight {
	background: var(--em-green-deep);
	color: var(--em-cream);
	border-color: var(--em-green-deep);
}
.em-octa-card.is-highlight strong {
	color: var(--em-cream);
}
.em-octa-card.is-highlight p {
	color: rgba(245, 240, 230, 0.85);
}

.em-octa-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto;
	background: var(--em-cream);
	color: var(--em-green-deep);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.em-octa-icon svg,
.em-octa-icon i {
	width: 22px;
	height: 22px;
	font-size: 20px;
}
.em-octa-card.is-highlight .em-octa-icon {
	background: rgba(245, 240, 230, 0.15);
	color: var(--em-wheat);
}

.em-octa-body {
	flex: 1;
}
.em-octa-body strong {
	display: block;
	font-family: var(--em-font-heading);
	font-size: 16px;
	font-weight: 500;
	color: var(--em-green-deep);
	margin-bottom: 6px;
	letter-spacing: -.005em;
}
.em-octa-body p {
	margin: 0;
	font-size: 13px;
	color: var(--em-earth);
	line-height: 1.55;
}

.em-octa-btn {
	display: inline-block;
	margin: 0 auto;
	padding: 11px 20px;
	background: var(--em-green-deep);
	color: var(--em-cream);
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s, transform .15s;
	align-self: center;
}
.em-octa-btn:hover {
	background: var(--em-green-mid);
	color: var(--em-cream);
	transform: translateY(-1px);
}
.em-octa-card.is-highlight .em-octa-btn {
	background: var(--em-wheat);
	color: var(--em-green-deep);
}
.em-octa-card.is-highlight .em-octa-btn:hover {
	background: var(--em-wheat-light);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
	.em-od-grid {
		grid-template-columns: 1fr;
	}
	.em-octa-grid,
	.em-octa-cols-3 .em-octa-grid,
	.em-octa-cols-4 .em-octa-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.em-oh {
		padding: 40px 20px;
	}
	.em-oh-icon-success,
	.em-oh-icon-failed {
		width: 64px;
		height: 64px;
	}
	.em-oh-meta {
		grid-template-columns: 1fr 1fr;
		padding: 18px;
	}
	.em-od-card {
		padding: 20px;
	}
	.em-ons-awb {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}
	.em-ons-awb-info {
		text-align: center;
	}
	.em-octa-grid,
	.em-octa-cols-2 .em-octa-grid,
	.em-octa-cols-3 .em-octa-grid,
	.em-octa-cols-4 .em-octa-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.em-oh-meta {
		grid-template-columns: 1fr;
	}
	.em-ons-step {
		grid-template-columns: 40px 1fr;
		gap: 14px;
	}
	.em-ons-step-icon {
		width: 40px;
		height: 40px;
	}
	.em-ons-step-line {
		left: 19px;
		top: 40px;
	}
}
