/*
|--------------------------------------------------------------------------
| Order Tracker
| Designed by BDImedia
|--------------------------------------------------------------------------
*/

.bd-ot-wrapper {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	direction: rtl;
	font-family: inherit;
}


/*
|--------------------------------------------------------------------------
| General
|--------------------------------------------------------------------------
*/

.bd-ot-title {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.5;
	font-weight: 700;
	color: #222;
}

.bd-ot-description {
	margin: 0;
	color: #777;
	font-size: 15px;
	line-height: 1.9;
}

.bd-ot-heading {
	margin-bottom: 25px;
}


/*
|--------------------------------------------------------------------------
| Guest Login
|--------------------------------------------------------------------------
*/

.bd-ot-login-box {
	width: 100%;
	max-width: 560px;
	margin: 25px auto;
	padding: 40px 30px;
	text-align: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.bd-ot-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f6f6f6;
	color: #333;
}

.bd-ot-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 25px;
	padding: 12px 30px;
	border-radius: 7px;
	background: #222;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	transition:
		opacity .2s ease,
		transform .2s ease;
}

.bd-ot-login-button:hover {
	color: #fff !important;
	opacity: .85;
	transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Order Card
|--------------------------------------------------------------------------
*/

.bd-ot-order-card {
	margin-bottom: 22px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Order Header
|--------------------------------------------------------------------------
*/

.bd-ot-order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
}

.bd-ot-order-main-info {
	min-width: 0;
}

.bd-ot-order-number {
	margin-bottom: 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: #222;
}

.bd-ot-order-date {
	font-size: 13px;
	color: #888;
	line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
*/

.bd-ot-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 6px;
	background: #f3f3f3;
	color: #444;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Order Items
|--------------------------------------------------------------------------
*/

.bd-ot-items {
	padding: 5px 20px;
}

.bd-ot-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f0;
}

.bd-ot-item:last-child {
	border-bottom: none;
}

.bd-ot-item-image {
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	overflow: hidden;
	border-radius: 8px;
	background: #f7f7f7;
}

.bd-ot-item-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bd-ot-no-image {
	width: 100%;
	height: 100%;
	background: #f4f4f4;
}

.bd-ot-item-info {
	min-width: 0;
	flex: 1;
}

.bd-ot-item-info h3 {
	margin: 0 0 7px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.8;
	color: #333;
}

.bd-ot-item-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	color: #777;
	font-size: 13px;
	line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.bd-ot-order-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 17px 20px;
	background: #fafafa;
	border-top: 1px solid #eee;
}

.bd-ot-total {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bd-ot-total span {
	color: #777;
	font-size: 12px;
	line-height: 1.6;
}

.bd-ot-total strong {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
	color: #222;
}

.bd-ot-view-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 6px;
	background: #222;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	transition:
		opacity .2s ease,
		transform .2s ease;
}

.bd-ot-view-button:hover {
	color: #fff !important;
	opacity: .85;
	transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| Empty Orders
|--------------------------------------------------------------------------
*/

.bd-ot-empty {
	padding: 40px 25px;
	text-align: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
}

.bd-ot-empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f6f6f6;
	color: #555;
}

.bd-ot-empty h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: #222;
}

.bd-ot-empty p {
	margin: 0;
	color: #777;
	font-size: 14px;
	line-height: 1.9;
}


/*
|--------------------------------------------------------------------------
| WooCommerce Notice
|--------------------------------------------------------------------------
*/

.bd-ot-notice {
	padding: 25px;
	text-align: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	color: #555;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

	.bd-ot-title {
		font-size: 22px;
	}

	.bd-ot-description {
		font-size: 14px;
	}

	.bd-ot-login-box {
		padding: 30px 20px;
	}

	.bd-ot-order-header {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px;
	}

	.bd-ot-order-number {
		font-size: 16px;
	}

	.bd-ot-status {
		font-size: 12px;
	}

	.bd-ot-items {
		padding: 5px 15px;
	}

	.bd-ot-item {
		gap: 12px;
	}

	.bd-ot-item-image {
		width: 64px;
		height: 64px;
		flex-basis: 64px;
	}

	.bd-ot-item-info h3 {
		font-size: 14px;
	}

	.bd-ot-item-meta {
		font-size: 12px;
		gap: 10px;
	}

	.bd-ot-order-footer {
		align-items: stretch;
		flex-direction: column;
		padding: 15px;
	}

	.bd-ot-total {
		align-items: flex-start;
	}

	.bd-ot-view-button {
		width: 100%;
	}

}