/* new orders */
.easystore-order-history-wrapper {
	background: #ffffff;
	border: 1px solid #c9cbcf;
	border-radius: 10px;
	padding: 28px 28px 20px;
	max-width: 100%;
}

.easystore-order-history-wrapper h4 {
	font-size: 24px;
	font-weight: 700;
	color: #494949;
	margin-bottom: 20px;
}

/* Filter bar */
.easystore-order-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	margin-bottom: 22px;
}

.easystore-order-filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
	min-width: 130px;
}

.easystore-order-filter-group label {
	font-size: 14px;
	color: #515257;
	font-weight: 500;
	margin-bottom: 0;
}

.easystore-order-filter-group select,
.easystore-order-filter-group input[type='text'],
.easystore-order-filter-group input[type='date'] {
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 0.875rem;
	color: #333;
	background: #fff;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 28px;
	cursor: pointer;
	height: 38px;
}

.easystore-order-filter-group input[type='text'],
.easystore-order-filter-group input[type='date'] {
	background-image: none;
	padding-right: 12px;
}

.easystore-order-filter-search {
	flex: 2;
	min-width: 200px;
}

.easystore-order-filter-search .easystore-search-input-wrap {
	position: relative;
}

.easystore-order-filter-search .easystore-search-input-wrap svg {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	pointer-events: none;
}

.easystore-order-filter-search input {
	width: 100%;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	padding: 7px 12px 7px 34px;
	font-size: 0.875rem;
	color: #333;
	outline: none;
	height: 38px;
}

.easystore-order-filter-search input::placeholder {
	color: #aaa;
}
.easystore-search-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);

	width: 24px;
	height: 24px;
	padding: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	border: none;
	background: transparent;
	color: #98a2b3;

	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.easystore-search-clear:hover {
	color: #344054;
}

/* Table */
.easystore-order-table-wrap {
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	overflow: hidden;
}

.easystore-order-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.875rem;
}

.easystore-order-table thead tr {
	background: #f0f4fa;
}

.easystore-order-table thead th {
	padding: 13px 18px;
	font-weight: 600;
	color: #5d5f66;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	border-bottom: 1px solid #e5e9f0;
	white-space: nowrap;
}

.easystore-order-table thead th:last-child {
	text-align: right;
}

.easystore-order-table tbody tr {
	border-bottom: 1px solid #e2e2e2;
	transition: background 0.15s;
}

.easystore-order-table tbody tr:last-child {
	border-bottom: none;
}

.easystore-order-table tbody tr:hover {
	background: #f9fafb;
}

.easystore-order-table tbody td {
	padding: 24px 18px;
	color: #515257;
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
}

.easystore-order-table tbody td:last-child {
	text-align: right;
	font-weight: 600;
	color: #515257;
}

.easystore-order-id-link {
	color: #2f59d6;
	font-weight: 500;
	text-decoration: none;
}

.easystore-order-id-link:hover {
	text-decoration: underline;
}
.easystore-order-table tbody td.easystore-no-orders {
	text-align: center;
	font-weight: 400;
	color: #515257;
}

/* Badges */
.easystore-order-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 42px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
}

.easystore-badge-paid {
	background: #1a7c4f;
	color: #fff;
}

.easystore-badge-unpaid {
	background: #ffd955;
	color: #404040;
}

.easystore-badge-pending {
	background: #5577ff;
	color: #ffffff;
}

.easystore-badge-refunded {
	background: #e2e8f0;
	color: #555;
}

.easystore-badge-active {
	background: #007d53;
	color: #ffffff;
}

.easystore-badge-cancelled {
	background: #e0e0e0;
	color: #3a3a3a;
}

.easystore-badge-processing {
	background: #2563eb;
	color: #fff;
}

/* Pagination */
.easystore-order-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	font-size: 0.85rem;
	color: #555;
	flex-wrap: wrap;
	gap: 10px;
}

.easystore-order-pagination .easystore-page-info {
	font-size: 0.85rem;
	color: #5b616f;
}

.easystore-order-pagination .easystore-page-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.easystore-order-pagination .easystore-page-links a,
.easystore-order-pagination .easystore-page-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	font-size: 0.85rem;
	text-decoration: none;
	color: #515257;
	border: 1px solid transparent;
	transition: all 0.15s;
}

.easystore-order-pagination .easystore-page-links a:hover {
	background: #f1f4fa;
	border-color: #d0d5dd;
}

.easystore-order-pagination .easystore-page-links span.easystore-active {
	color: #515257;
	background: blue !important;
	font-weight: 500;
}

.easystore-order-pagination .easystore-page-links .easystore-page-arrow {
	color: #888;
}

.easystore-order-pagination .easystore-page-links .easystore-page-arrow:hover {
	background: #f1f4fa;
	color: #333;
}
