/*
 * Elementor Advanced Table - Frontend Styles
 */

.eat-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.eat-wrapper *,
.eat-wrapper *::before,
.eat-wrapper *::after {
	box-sizing: border-box;
}

.eat-table-title {
	font-weight: 700;
	font-size: 1.25em;
	margin: 0 0 12px;
}

.eat-scroll {
	width: 100%;
	position: relative;
}

.eat-responsive-scroll .eat-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.eat-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
}

.eat-table thead th {
	font-weight: 700;
	text-align: left;
	background-color: #f5f6f8;
	color: #1a1a1a;
	padding: 12px 16px;
	border-bottom: 2px solid #e1e3e8;
}

.eat-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #e1e3e8;
	color: #333333;
	vertical-align: middle;
}

.eat-table tbody tr:last-child td {
	border-bottom: none;
}

/* Zebra striping */
.eat-zebra .eat-table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.eat-zebra .eat-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.eat-table tbody tr {
	transition: background-color 0.15s ease-in-out;
}

/* Sticky header */
.eat-sticky-header .eat-scroll {
	max-height: 70vh;
	overflow-y: auto;
}

.eat-sticky-header .eat-table thead th {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 2;
}

/* Sticky first column */
.eat-sticky-first-col .eat-table th:first-child,
.eat-sticky-first-col .eat-table td:first-child {
	position: -webkit-sticky;
	position: sticky;
	left: 0;
	z-index: 1;
	background-clip: padding-box;
}

.eat-sticky-first-col.eat-sticky-header .eat-table thead th:first-child {
	z-index: 3;
}

/* Scroll shadow indicator (toggled by frontend.js) */
.eat-scroll.eat-is-scrolled::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 12px;
	pointer-events: none;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
	z-index: 4;
}

/* Responsive defaults */
@media (max-width: 767px) {
	.eat-table-title {
		font-size: 1.1em;
	}

	.eat-table thead th,
	.eat-table tbody td {
		padding: 8px 10px;
		font-size: 0.9em;
	}
}
