@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

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

.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

body {
	font-family:
		"Inter",
		-apple-system,
		sans-serif;
	background-color: #ffffff;
	color: #000000;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.nowrap {
	white-space: nowrap;
}

/* Layout Containers */
.container {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero Section */
.hero {
	padding-top: 120px;
	padding-bottom: 80px;
}

@media (max-width: 768px) {
	.hero {
		padding-top: 40px;
	}
}

.logo-image {
	width: 2.5rem;
	height: 2.5rem;
	margin: 48px;
}

.receipt-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

.label-id {
	color: #d1d5db;
	font-size: 14px;
	font-weight: 700;
}

.value-id {
	color: #9ca3af;
	font-size: 14px;
}

.receipt-id::before {
	content: "Order #";
}

.badge-preparing {
	background-color: #fffbeb;
	color: #d97706;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 9999px;
	border: 1px solid #fef3c7;
	width: fit-content;
	margin-bottom: 32px;
}

h1 {
	font-size: clamp(2.5rem, 8vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 24px;
}

.update-tag {
	margin-bottom: 24px;
}

.description {
	font-size: clamp(1.25rem, 4vw, 1.875rem);
	color: #6b7280;
	font-weight: 500;
	max-width: 800px;
	margin-bottom: 80px;
}

/* Progress Tracker - FIXED */
.progress-container {
	position: relative;
	max-width: 640px;
	height: 4px; /* The track thickness */
	background-color: #f3f4f6;
	margin-top: 80px;
	border-radius: 2px;
	filter: blur(2px);
	-webkit-filter: blur(2px);

	transition: 1s ease-in-out;
}

.progress-container.active {
	filter: none;
	-webkit-filter: none;
}

.progress-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background-color: #000000;
	width: 0%; /* Adjust to 0%, 50%, or 100% based on status */
	transition: width 1s ease-in-out;
	border-radius: 2px;
	z-index: 1;
}

.progress-steps {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	z-index: 2;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

/* Adjust alignment for first and last steps */
.step:first-child {
	align-items: flex-start;
}
.step:last-child {
	align-items: flex-end;
}

.step-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #e5e7eb;
	border: 2px solid #ffffff;
	position: relative;
	transition: 1s ease-in-out;
}

.step.active .step-dot {
	background-color: #000000;
}

.step-label {
	position: absolute;
	top: 24px;
	font-size: 10px;
	color: #d1d5db;
	white-space: nowrap;

	transition: 1s ease-in-out;
}

.step.active .step-label {
	color: #000000;
}

.large-id {
	font-size: 48px;
	font-weight: 700;
	color: #000000;
	margin-bottom: 56px;
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 8px;
}

/* Details Section */
.details-section {
	padding: 120px 0;
	background-color: #fbfbfd;
	border-top: 1px solid #f3f4f6;
	filter: blur(14px);
	-webkit-filter: blur(14px);
	transition: 1s ease-in-out;
}

.details-section.active {
	filter: none;
	-webkit-filter: none;
}

.blur {
	filter: blur(2px);
	-webkit-filter: blur(2px);
	transition: 1s ease-in-out;
}

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 80px;
}

@media (min-width: 768px) {
	.grid {
		grid-template-columns: 1fr 1fr;
	}
}

.section-title {
	font-size: 12px;
	font-weight: 700;
	color: #9ca3af;
	margin-bottom: 40px;
}

/* Summary Styles */
.order-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 1px solid #f3f4f6;
	padding-bottom: 24px;
	margin-bottom: 24px;
}

.order-item.discount {
	opacity: 0.5;
}

.item-name {
	font-size: 20px;
	font-weight: 700;
}

.item-name.discount {
	font-weight: normal;
}

.item-meta {
	color: #9ca3af;
	font-size: 14px;
}

.darker {
	color: #686868;
	font-weight: 700;
}

.price {
	font-size: 20px;
	font-weight: 500;
}

.shipping-row {
	display: flex;
	justify-content: space-between;
	color: #9ca3af;
	font-weight: 500;
	margin-bottom: 16px;
}

.total-row {
	display: flex;
	justify-content: space-between;
	padding-top: 16px;
}

.total-label {
	font-size: 24px;
	font-weight: 500;
}

.total-price {
	font-size: 30px;
	font-weight: 700;
}

/* Address & Support */
address {
	font-style: normal;
	font-size: 20px;
	color: #6b7280;
	line-height: 1.6;
}

.customer-name {
	display: block;
	color: #000000;
	font-weight: 700;
	font-size: 20px;
}

.email-indicator {
	position: relative;
	width: fit-content;
	margin: 72px auto;
}

.customer-email {
	font-size: 20px;
	margin-bottom: 12px;
}

.customer-phone {
	margin-bottom: 8px;
	color: #000000;
	font-size: 16px;
}

.arrow-container {
	margin: 8px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	opacity: 0.5;
}

img[alt="To"] {
	width: 18px;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
}

.support-box {
	margin-top: 64px;
}

.support-text {
	color: #6b7280;
	margin-bottom: 24px;
}

.email-link {
	font-size: 24px;
	font-weight: 700;
	color: #000000;
	text-decoration: none;
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	transition: border-color 0.2s;
	margin-top: 16px;
}

.email-link:hover {
	border-color: #000000;
}

/* Footer */
footer {
	padding: 48px 0;
	text-align: center;
	border-top: 1px solid #fafafa;
}

.copyright {
	font-size: 10px;
	color: #687282;
}

.motion-dots::after {
	content: ".";
	animation: loading-dots 1s steps(1) infinite;
}

@keyframes loading-dots {
	0% {
		content: ".";
	}
	33% {
		content: "..";
	}
	66% {
		content: "...";
	}
	100% {
		content: ".";
	}
}

.link {
	color: black;
	font-size: 18px;
	margin: 0 2px;
}

/* Container layout */
.input-container {
	display: flex;
	flex-direction: column;
	gap: 1rem; /* Equivalent to space-y-4 */
	width: 100%;
	max-width: 400px;
}

/* Base Input Style */
input {
	/* Layout & Sizing */
	width: 100%;
	box-sizing: border-box;
	padding: 1.25rem 1.5rem;
	height: auto;

	/* Aesthetics */
	border: 1px solid #dbdbdb;
	background-color: #f8fafc;
	border-radius: 20px;

	/* Typography */
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro HK", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);

	/* Animation */
	transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
	appearance: none; /* Removes mobile default styling */
}

/* Placeholder styling */
input::placeholder {
	color: #94a3b8;
	font-weight: 500;
}

/* Interaction States */
input:focus {
	background-color: #ffffff;
	outline: none;
	/* Combined shadow and blue border ring */
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	/* Subtle lift effect */
	transform: translateY(-2px);
}

/* Optional: Slight hover effect for desktop */
input:hover:not(:focus) {
	background-color: #f1f5f9;
}

.btn-primary {
	/* Layout & Sizing */
	display: block;
	width: 100%;
	padding: 1.25rem 0; /* py-5 equivalent */
	margin-top: 2.5rem; /* mt-10 equivalent */

	/* Aesthetics */
	background-color: #000000;
	color: #ffffff;
	border: none;
	border-radius: 24px;
	cursor: pointer;

	/* Typography */
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro HK", sans-serif;
	font-size: 1.125rem; /* text-lg */
	font-weight: 700; /* font-bold */

	/* Shadow (shadow-xl shadow-gray-200) */
	box-shadow:
		0 20px 25px -5px rgba(229, 231, 235, 0.8),
		0 10px 10px -5px rgba(229, 231, 235, 0.5);

	/* Animation & Physics */
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

/* Hover State (Optional, but good for Desktop) */
.btn-primary:hover {
	background-color: #1a1a1a;
	transform: translateY(-1px);
}

/* Active/Press State (The "Haptic" feel) */
.btn-primary:active {
	transform: scale(0.95); /* Shrinks slightly on click */
	background-color: #2563eb; /* Turns blue on press per your logic */
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Disabled State */
.btn-primary:disabled {
	background-color: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

.notes-404 {
	background: rgb(255, 101, 101);
	color: white;
	width: fit-content;
	padding: 24px;
	border-radius: 17px;
	margin-bottom: 48px;


	a {
		color: white;
	}
}

.notes-404:not(.hidden) {
	animation: unblur 1s ease-in-out;
}

@keyframes unblur {
	0% {
		filter: blur(7px);
		-webkit-filter: blur(7px);
	}
	100% {
		filter: none;
		-webkit-filter: none;
	}
}

.clearButton {
	margin: 0 auto;
	user-select: none;
	-webkit-user-select: none;
	text-decoration: underline;
	cursor: pointer;
}

.hidden {
	display: none;
}

.shipping-list {
	margin-top: 1rem;
	margin-left: 1rem;
}

.product-item {
	display: flex;
	max-width: 330px;
	justify-content: center;
	align-items: center;
}

.product-item .item-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 12px 0;
	padding: 12px 0;
	border-bottom: 1px solid #f3f4f6;
}

.product-item .item-main .item-type {
	color: #c9c9c9;
	font-size: 14px;
	font-weight: 700;
}

.post-url {
	margin: 2rem 0;
}