/**
 * LearnPress profile Orders tab UI fixes
 * - Space below orders table before "Displaying X to Y..."
 * - Prevent Recover button text wrapping (Recov / er)
 */

/* Space between orders table body and "Displaying ..." footer row */
.lp-user-profile .profile-orders table.lp-list-table tfoot tr.list-table-nav td,
.lp-profile-content .profile-orders table.lp-list-table tfoot tr.list-table-nav td,
body.lp-profile .profile-orders table.lp-list-table tfoot td.nav-text,
body.lp-profile .profile-orders table.lp-list-table tfoot td.nav-pages {
	padding-top: 18px !important;
	padding-bottom: 10px !important;
	vertical-align: middle;
}

.lp-user-profile .profile-orders table.lp-list-table tfoot tr.list-table-nav td.nav-text,
.lp-profile-content .profile-orders table.lp-list-table tfoot tr.list-table-nav td.nav-text {
	padding-top: 20px !important;
	line-height: 1.5;
}

/* Recover order form — keep button on one line */
.lp-user-profile .lp-order-recover,
.lp-profile-content .lp-order-recover,
.profile-recover-order .lp-order-recover {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
}

.lp-user-profile .lp-order-recover input[type="text"],
.lp-profile-content .lp-order-recover input[type="text"],
.profile-recover-order .lp-order-recover input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	max-width: none;
}

.lp-user-profile .lp-order-recover .button-recover-order,
.lp-user-profile .lp-order-recover button.lp-button,
.lp-profile-content .lp-order-recover .button-recover-order,
.lp-profile-content .lp-order-recover button.lp-button,
.profile-recover-order .lp-order-recover .button-recover-order,
.profile-recover-order .lp-order-recover button.lp-button {
	flex: 0 0 auto !important;
	flex-shrink: 0 !important;
	width: auto !important;
	min-width: 110px !important;
	max-width: none !important;
	height: auto !important;
	padding: 12px 24px !important;
	white-space: nowrap !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	font-size: 15px !important;
	overflow: visible !important;
	word-break: normal !important;
}

@media (max-width: 575px) {
	.lp-user-profile .lp-order-recover,
	.lp-profile-content .lp-order-recover,
	.profile-recover-order .lp-order-recover {
		flex-wrap: wrap;
	}

	.lp-user-profile .lp-order-recover .button-recover-order,
	.lp-profile-content .lp-order-recover .button-recover-order,
	.profile-recover-order .lp-order-recover .button-recover-order {
		width: 100% !important;
	}
}
