/**
 * TUM My Reservations Widget Styles
 *
 * @package Templines_User_Manager
 * @author Templines
 * @link https://templines.com
 */

/* Container */
.tum-my-reservations {
	width: 100%;
	max-width: 100%;
    font-size: 15px;
}

/* Verification Required Message */
.tum-verification-required {
	text-align: center;
	padding: 60px 30px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	border: 2px dashed #dee2e6;
	max-width: 600px;
	margin: 40px auto;
}

.tum-verification-icon {
	font-size: 64px;
	margin-bottom: 20px;
	animation: tum-pulse 2s ease-in-out infinite;
}

@keyframes tum-pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.1);
		opacity: 1;
	}
}




.tum-verification-required h3 {
	font-size: 24px;
	font-weight: 600;
	color: #212529;
	margin: 0 0 15px 0;
}

.tum-verification-required p {
	font-size: 16px;
	color: #6c757d;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.tum-verification-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin: 20px 0;
}

.tum-verification-status .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.tum-status-pending {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.tum-status-rejected {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.tum-verification-required .tum-btn {
	display: inline-block;
	padding: 12px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	margin-top: 10px;
}

.tum-verification-required .tum-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.tum-verification-required .tum-btn:active {
	transform: translateY(0);
}

/* Login Required Message */
.tum-login-required {
	text-align: center;
	padding: 40px 30px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #dee2e6;
}

/* Subscription Required Message */
.tum-subscription-required {
	text-align: center;
	padding: 60px 30px;
	background: #f9fafb;
	border-radius: 12px;
	border: 2px dashed #e5e7eb;
	max-width: 600px;
	margin: 40px auto;
}

.tum-subscription-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tum-subscription-icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: #fff;
}

.tum-subscription-required h3 {
	font-size: 24px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 12px 0;
}

.tum-subscription-required p {
	font-size: 16px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 24px 0;
}

.tum-subscription-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.tum-subscription-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
	color: #fff;
}

.tum-subscription-button:active {
	transform: translateY(0);
}

.tum-subscription-button .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Sales Summary */
.tum-sales-summary {
	margin-bottom: 30px;
	padding: 0;
}

.tum-sales-summary h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 20px 0;
	padding: 0;
}

/* Commission Notice */
.tum-commission-notice {
	margin: 10px 0;
	padding: 10px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
	border-radius: 4px;
}

.tum-commission-notice p {
	margin: 0;
	padding: 0;
}

.tum-commission-notice p:not(:last-child) {
	margin-bottom: 8px;
}

.tum-commission-notice strong {
	font-weight: 500;
}

.tum-commission-notice span {
	margin-left: 10px;
	font-size: 15px;
}

.tum-commission-additional-info {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f0e5b8;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.95;
}

.tum-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.tum-summary-card {
	background: #ffffff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: all 0.3s ease;
}

.tum-summary-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tum-summary-total {
	border-color: #3b82f6;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.tum-summary-total:hover {
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.tum-summary-completed {
	border-color: #10b981;
	background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

.tum-summary-completed:hover {
	box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.tum-summary-pending {
	border-color: #f59e0b;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.tum-summary-pending:hover {
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.tum-summary-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tum-summary-total .tum-summary-icon {
	background: #3b82f6;
}

.tum-summary-completed .tum-summary-icon {
	background: #10b981;
}

.tum-summary-pending .tum-summary-icon {
	background: #f59e0b;
}

.tum-summary-icon .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #ffffff;
}

.tum-summary-content {
	flex: 1;
}

.tum-summary-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	margin-bottom: 5px;
}

.tum-summary-value {
	font-size: 28px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.2;
	margin-bottom: 5px;
}

.tum-summary-meta {
	font-size: 13px;
	color: #9ca3af;
	font-weight: 500;
}

/* Summary Earnings */
.tum-summary-earnings {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e0e0e0;
}

.tum-summary-earnings small {
	color: #2e8540;
	font-weight: 600;
}

/* Filters */
.tum-reservations-filters {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

.tum-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-start;
}

.tum-search-field,
.tum-status-filter,
.tum-date-filters {
	flex: 1;
	min-width: 200px;
}

.tum-date-filters {
	display: flex;
	gap: 10px;
}

.tum-search-field input,
.tum-status-filter select,
.tum-date-filters input {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease;
        margin-bottom: 0;
}

.tum-search-field input:focus,
.tum-status-filter select:focus,
.tum-date-filters input:focus {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.tum-filter-submit {
	padding: 10px 25px;
	background: #007cba;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tum-filter-submit:hover {
	background: #005a87;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Orders List */
.tum-orders-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Order Card */
.tum-order-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	padding: 15px;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.tum-order-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #007cba;
}

.tum-order-card.expanded {
	padding: 20px;
}

/* Order Header */
.tum-order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.tum-order-card.expanded .tum-order-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f3f4f6;
}

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

.tum-order-id strong {
    font-size: 16px;
    color: #1f2937;
    font-weight: normal;
}

.tum-order-card.expanded .tum-order-id strong {
	font-size: 18px;
}

.tum-order-toggle {
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 0;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    transition: color 0.3s 
ease;
}

.tum-order-card:hover .tum-order-toggle {
	background: #007cba;
	color: #fff;
}

.tum-order-card.expanded .tum-order-toggle {
	transform: rotate(180deg);
}

/* Status Badges */
.tum-order-status {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tum-order-status.status-pending {
	background: #fef3c7;
	color: #92400e;
}

.tum-order-status.status-processing {
	background: #dbeafe;
	color: #1e40af;
}

.tum-order-status.status-on-hold {
	background: #fde68a;
	color: #78350f;
}

.tum-order-status.status-completed {
	background: #d1fae5;
	color: #065f46;
}

.tum-order-status.status-cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.tum-order-status.status-refunded {
	background: #e0e7ff;
	color: #3730a3;
}

/* Order Content */
.tum-order-content {
	display: none;
	flex-direction: column;
	gap: 20px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 2px solid #f3f4f6;
}

.tum-order-card.expanded .tum-order-content {
	display: flex;
}

.tum-order-details {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tum-order-customer,
.tum-order-properties,
.tum-booking-dates,
.tum-order-total {
    font-size: 16px;
    line-height: 1.6;
    font-weight: normal;
}

.tum-order-customer strong,
.tum-order-properties strong,
.tum-booking-dates strong,
.tum-order-total strong {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.tum-order-customer small {
    color: #6b7280;
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

.tum-order-properties ul {
	margin: 5px 0 0 0;
	padding: 0;
	list-style: none;
}

.tum-order-properties li {
	padding: 5px 0;
}

.tum-order-properties a {
	color: #007cba;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.tum-order-properties a:hover {
	color: #005a87;
	text-decoration: underline;
}

.tum-order-total {
	font-size: 16px;
	font-weight: 600;
	color: #059669;
}

.tum-order-date {
	color: #9ca3af;
	font-size: 13px;
}

/* Compact Info */
.tum-order-compact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 17px;
    color: #6b7280;
    font-weight: normal;
}

.tum-order-card.expanded .tum-order-compact-info {
	display: none;
}

.tum-compact-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.tum-compact-item strong {
    color: #374151;
    font-weight: 500;
}

/* Order Actions */
.tum-order-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.tum-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s 
ease;
    text-decoration: none;
    display: inline-flex
;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

.tum-btn-view-details {
	background: #f3f4f6;
	color: #374151;
}

.tum-btn-view-details:hover {
	background: #e5e7eb;
	color: #1f2937;
}

.tum-btn-message-customer {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.tum-btn-message-customer:hover {
	background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tum-btn-message-customer .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.tum-btn-status {
	background: #3b82f6;
	color: #ffffff;
}

.tum-btn-status:hover {
	background: #2563eb;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tum-btn-success {
	background: #10b981;
}

.tum-btn-success:hover {
	background: #059669;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tum-btn-danger {
	background: #ef4444;
}

.tum-btn-danger:hover {
	background: #dc2626;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tum-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

/* Status Actions */
.tum-status-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* No Orders */
.tum-no-orders {
	text-align: center;
	padding: 60px 20px;
	background: #f9fafb;
	border-radius: 12px;
}

.tum-no-orders p {
	font-size: 16px;
	color: #6b7280;
	margin: 0;
}

/* Pagination */
.tum-pagination {
	margin-top: 30px;
	text-align: center;
}

.tum-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 4px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #374151;
	text-decoration: none;
	transition: all 0.3s ease;
}

.tum-pagination .page-numbers:hover,
.tum-pagination .page-numbers.current {
	background: #007cba;
	color: #ffffff;
	border-color: #007cba;
}

/* Loading State */
.tum-order-card.loading {
	opacity: 0.6;
	pointer-events: none;
}

.tum-order-card.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: 30px;
	border: 3px solid #f3f4f6;
	border-top-color: #007cba;
	border-radius: 50%;
	animation: tum-spin 0.8s linear infinite;
}

@keyframes tum-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.tum-summary-grid {
		grid-template-columns: 1fr;
	}

	.tum-summary-card {
		padding: 15px;
	}

	.tum-summary-icon {
		width: 50px;
		height: 50px;
	}

	.tum-summary-icon .dashicons {
		font-size: 24px;
		width: 24px;
		height: 24px;
	}

	.tum-summary-value {
		font-size: 24px;
	}

	.tum-filter-form {
		flex-direction: column;
	}

	.tum-search-field,
	.tum-status-filter,
	.tum-date-filters {
		min-width: 100%;
	}

	.tum-order-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.tum-order-compact-info {
		flex-direction: column;
		gap: 8px;
		align-items: flex-start;
	}

	.tum-order-actions {
		flex-direction: column;
	}

	.tum-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Login Required */
.tum-login-required {
	text-align: center;
	padding: 60px 20px;
	background: #fef2f2;
	border: 2px dashed #fca5a5;
	border-radius: 12px;
}

.tum-login-required p {
	font-size: 16px;
	color: #991b1b;
	margin: 0;
}


.tum-order-items-table td , 
.tum-order-items-table th{
    border: 1px solid #eee;
    padding: 15px;
    font-weight: 500;
}


.tum-order-details-full address {
    line-height: 1.7;
    background: #fcf8e3;
    padding: 20px;
    margin: 0;
}

.tum-order-details-full h5{
    margin-bottom: 0;
}


