/**
 * Order History page – order-history.html design
 *
 * @package skinfinity
 */

body.order-history-page {
	background-color: #fdf4f7;
}

.order-history-page .page-banner {
	height: 320px;
	background-size: cover;
	background-position: center center;
	display: table;
	width: 100%;
	position: relative;
}

.order-history-page .page-banner .container {
	display: table;
	height: 100%;
}

.order-history-page .page-banner-entry {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
	position: relative;
	z-index: 2;
	color: #1f1f1f;
}

.order-history-page .page-banner-entry h1 {
	font-size: 60px;
	line-height: 1.3;
	margin-bottom: 10px;
	font-weight: 500;
	color: #1f1f1f;
}

@media (max-width: 991.98px) {
	.order-history-page .page-banner-entry h1 {
		font-size: 42px;
	}
}

@media (max-width: 767.98px) {
	.order-history-page .page-banner {
		height: 300px;
	}
	.order-history-page .page-banner-entry h1 {
		font-size: 32px;
	}
}

@media (max-width: 576px) {
	.order-history-page .page-banner {
		height: 200px;
	}
	.order-history-page .page-banner-entry h1 {
		font-size: 28px;
		margin-bottom: 5px;
	}
}

.order-history-page .breadcrumb-row {
	margin-top: 8px;
}

.order-history-page .breadcrumb-row .list-inline {
	margin: 0;
	display: inline-block;
	background: #fff;
	padding: 5px 15px;
	border-radius: 30px;
	border: 1px solid #fff;
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.02);
	list-style: none;
}

.order-history-page .breadcrumb-row .list-inline li {
	padding: 0;
	margin-right: 3px;
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
}

.order-history-page .breadcrumb-row .list-inline li i {
	font-size: 13px;
	margin-right: 5px;
	color: #b6554f;
}

.order-history-page .breadcrumb-row .list-inline li a {
	text-decoration: none;
	color: #b6554f;
	font-weight: 600;
}

.order-history-page .breadcrumb-row .list-inline li:last-child {
	color: #5a564d;
}

.order-history-page .breadcrumb-row .list-inline li:after {
	content: "\f105";
	margin-left: 7px;
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", "fontawesome";
	font-weight: 900;
	opacity: 0.5;
	color: #999;
}

.order-history-page .breadcrumb-row .list-inline li:last-child:after {
	display: none;
}

.order-history-container {
	padding: 60px 0 100px;
}

.order-history-container .container {
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.06);
	padding: 60px 90px 90px;
	max-width: 1400px;
}

@media (max-width: 991.98px) {
	.order-history-container .container {
		padding: 40px 24px 50px;
		border-radius: 24px;
	}
}

.order-history-form {
	max-width: 600px;
	margin: 0 auto;
}

#order-history-form-wrapper #step-3 {
	max-width: 100% !important;
	width: 100% !important;
}

#order-history-form-wrapper #step-3 .orders-list {
	max-width: 100%;
}

body:has(#step-3.active) #order-history-form-wrapper,
#order-history-form-wrapper.step-3-active {
	max-width: 100% !important;
}

.order-history-form .form-group {
	margin-bottom: 25px;
}

.order-history-form label {
	display: block;
	margin-bottom: 10px;
	font-weight: 500;
	color: #1f1f1f;
	font-size: 16px;
}

.order-history-form .form-control {
	width: 100%;
	padding: 15px 20px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s;
}

.order-history-form .form-control:focus {
	outline: none;
	border-color: #b6554f;
	box-shadow: 0 0 0 3px rgba(182, 85, 79, 0.1);
}

/* Step 1: +91 prefix before mobile input */
.order-history-form .mobile-input-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s;
}

.order-history-form .mobile-input-wrap:focus-within {
	border-color: #b6554f;
	box-shadow: 0 0 0 3px rgba(182, 85, 79, 0.1);
}

.order-history-form .mobile-country-code {
	display: flex;
	align-items: center;
	padding: 15px 16px;
	background: #f5f5f5;
	color: #5a564d;
	font-size: 16px;
	font-weight: 600;
	border-right: 1px solid #ddd;
}

.order-history-form .mobile-input-wrap .form-control {
	border: none;
	border-radius: 0;
	flex: 1;
}

.order-history-form .required-asterisk {
	color: #b6554f;
}

.order-history-form .order-history-step-title {
	text-align: center;
	margin-bottom: 30px;
	font-size: 28px;
	color: #1f1f1f;
}

.order-history-form .otp-label {
	text-align: center;
	display: block;
}

.order-history-form .btn-submit {
	width: 100%;
	padding: 15px;
	background: #f17298;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	transition: all 0.3s;
	cursor: pointer;
	margin-top: 10px;
}

.order-history-form .btn-submit:hover {
	background: #b6554f;
	color: #fff;
}

.order-history-form .btn-submit:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.otp-input-group {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 20px;
}

.otp-input-group input {
	width: 50px;
	height: 60px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	border: 2px solid #ddd;
	border-radius: 10px;
	transition: all 0.3s;
}

.otp-input-group input:focus {
	border-color: #b6554f;
	outline: none;
	box-shadow: 0 0 0 3px rgba(182, 85, 79, 0.1);
}

.otp-resend {
	text-align: center;
	margin-top: 20px;
}

.otp-resend a {
	color: #b6554f;
	text-decoration: none;
	font-weight: 500;
}

.otp-resend a:hover {
	text-decoration: underline;
}

.step-indicator {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
	gap: 20px;
}

.step-indicator .step {
	display: flex;
	align-items: center;
	gap: 10px;
}

.step-indicator .step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ddd;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
}

.step-indicator .step.active .step-number {
	background: #f17298;
	color: #fff;
}

.step-indicator .step.completed .step-number {
	background: #0b9f92;
	color: #fff;
}

.step-indicator .step-label {
	font-size: 14px;
	color: #999;
	font-weight: 500;
}

.step-indicator .step.active .step-label {
	color: #b6554f;
}

.step-indicator .step.completed .step-label {
	color: #0b9f92;
}

@media (max-width: 767.98px) {
	.step-indicator {
		flex-direction: column;
		gap: 15px;
	}
	.step-indicator .step-label {
		display: none;
	}
}

.order-step {
	display: none;
}

.order-step.active {
	display: block;
}

.success-message {
	background: #f0fdf4;
	border: 2px solid #22c55e;
	border-radius: 10px;
	padding: 15px 20px;
	margin-bottom: 20px;
	color: #166534;
	font-size: 14px;
}

.success-message i {
	margin-right: 8px;
	color: #22c55e;
}

.orders-list {
	margin-top: 30px;
}

.no-orders-message {
	font-size: 16px;
	color: #5a564d;
	text-align: center;
	padding: 40px 20px;
}

.order-history-page .pagination-bx {
	margin-top: 40px;
}

.order-history-page .pagination-bx .pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 0;
	list-style: none;
}

.order-history-page .pagination-bx .pagination li {
	display: inline-block;
}

.order-history-page .pagination-bx .pagination li a,
.order-history-page .pagination-bx .pagination li span {
	display: inline-block;
	min-width: 40px;
	height: 40px;
	padding: 8px 15px;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	margin: 0 4px;
	font-size: 14px;
	font-weight: 500;
	color: #5a564d;
	text-decoration: none;
	line-height: 22px;
	transition: all 0.3s;
}

.order-history-page .pagination-bx .pagination li.disabled span {
	cursor: not-allowed;
	opacity: 0.6;
}

.order-history-page .pagination-bx .pagination li.active a,
.order-history-page .pagination-bx .pagination li a:hover {
	background: #0b9f92;
	color: #fff;
	border-color: #0b9f92;
}

.order-history-page .pagination-bx .pagination li.previous a,
.order-history-page .pagination-bx .pagination li.next a {
	border: 0;
	background: transparent;
	color: #0b9f92;
	padding: 8px 16px;
	margin: 0 4px;
}

.order-history-page .pagination-bx .pagination li.previous a:hover,
.order-history-page .pagination-bx .pagination li.next a:hover {
	background: rgba(11, 159, 146, 0.1);
	color: #0b9f92;
}

.order-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 20px;
	padding: 30px 35px;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.order-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
}

.order-status {
	display: flex;
	align-items: center;
	gap: 10px;
}

.order-status-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.order-status-text {
	font-size: 16px;
	font-weight: 600;
}

/* Status colours – default (completed/delivered) green */
.order-status .order-status-dot { background: #22c55e; }
.order-status .order-status-text { color: #22c55e; }

.order-status.order-status--completed .order-status-dot { background: #22c55e; }
.order-status.order-status--completed .order-status-text { color: #22c55e; }
.order-status.order-status--processing .order-status-dot { background: #3b82f6; }
.order-status.order-status--processing .order-status-text { color: #3b82f6; }
.order-status.order-status--on-hold .order-status-dot { background: #f59e0b; }
.order-status.order-status--on-hold .order-status-text { color: #f59e0b; }
.order-status.order-status--pending .order-status-dot { background: #6b7280; }
.order-status.order-status--pending .order-status-text { color: #6b7280; }
.order-status.order-status--cancelled .order-status-dot { background: #dc2626; }
.order-status.order-status--cancelled .order-status-text { color: #dc2626; }
.order-status.order-status--refunded .order-status-dot { background: #6b7280; }
.order-status.order-status--refunded .order-status-text { color: #6b7280; }
.order-status.order-status--failed .order-status-dot { background: #dc2626; }
.order-status.order-status--failed .order-status-text { color: #dc2626; }

.order-content {
	display: grid;
	grid-template-columns: 280px 200px 1fr;
	gap: 0;
	row-gap: 0;
	align-items: start;
	align-content: start;
}

.order-info-section:first-of-type {
	padding-right: 50px;
	border-right: 1px solid #e5e5e5;
	grid-row: 1;
	grid-column: 1;
	margin-top: 0;
	padding-top: 0;
}

.order-info-section:nth-of-type(2) {
	padding-left: 20px;
	grid-row: 1;
	grid-column: 2;
	margin-top: 0;
	padding-top: 0;
}

.order-items {
	padding-left: 50px;
	margin-top: 0 !important;
	padding-top: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 25px;
	align-self: start;
	grid-row: 1;
	grid-column: 3;
}

.order-total-section {
	grid-column: 1 / 3;
	grid-row: 2;
	margin-top: 0 !important;
	padding-top: 20px;
	padding-right: 50px;
	padding-left: 0;
	border-top: 1px solid #e5e5e5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	align-self: start;
}

@media (max-width: 991.98px) {
	.order-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

.order-info-section {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 0;
	padding-bottom: 0;
}

.order-info-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-info-label {
	font-size: 14px;
	color: #5a564d;
	font-weight: 400;
	margin-bottom: 2px;
}

.order-info-value {
	font-size: 16px;
	color: #1f1f1f;
	font-weight: 600;
}

.order-total-amount {
	font-size: 16px;
	font-weight: 400;
	color: #5a564d;
}

.order-total-amount strong {
	font-size: 20px;
	font-weight: 600;
	color: #1f1f1f;
}

.download-invoice-link {
	color: #f17298;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.download-invoice-link:hover {
	color: #b6554f;
	text-decoration: underline;
}

.order-item {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	padding: 0;
}

.order-item:first-child {
	padding-bottom: 20px;
	margin-bottom: 20px;
	margin-top: 0;
	border-bottom: 1px solid #e5e5e5;
}

.order-item-image {
	width: 100px;
	height: 100px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f5f5f5;
}

.order-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.order-item-name-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.order-item-name {
	font-size: 16px;
	font-weight: 600;
	color: #1f1f1f;
}

.order-item-price-inline {
	font-size: 16px;
	font-weight: 600;
	color: #1f1f1f;
}

.order-item-meta {
	font-size: 14px;
	color: #5a564d;
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.5;
}

.buy-again-link {
	color: #f17298;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s;
	align-self: flex-start;
	margin-top: 10px;
}

.buy-again-link:hover {
	color: #b6554f;
	text-decoration: underline;
}

.page-title {
	font-size: 32px;
	font-weight: 600;
	color: #1f1f1f;
	margin-bottom: 30px;
	text-align: left;
	padding-bottom: 0;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767.98px) {
	.page-title {
		font-size: 24px;
		margin-bottom: 20px;
	}
	.order-item {
		flex-direction: column;
	}
	.order-item-image {
		width: 100%;
		height: 200px;
	}
}
