/* Grid layout for entire page */
.sellerlootgrid {
	display: inline-grid;
	grid-template: 60px 35px 45px auto 45px 300px / 100%;
	width: 100%;
	height: 100%;
	border: none;
	background-color: #D0D3D4;
}

/* Title styling */
.pagetitle {
	grid-area: 3/1/4/2;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 24px;
	color: #E6093A;
	font-weight: bold;
}

/* Container holding all loot entries */
.sellerlootcontainer {
	grid-area: 4/1/5/2;
	width: 90%;
	min-height: 750px;
	height: 100%;
	display: flex;
	flex-direction: column;
	margin-left: 5%;
	padding: 0;
	gap: 18px;
}

.sellerloottip {
	margin: 12px 5% 0 5%;
	color: #333;
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 14px;
	background-color: #fdfdfd;
	padding: 10px 14px;
	border-left: 4px solid #E6093A;
	border-radius: 4px;
}

/* Loot row & header grid layout */
.sellerlootentry {
	display: grid;
	grid-template-columns: 260px 140px 140px 160px 140px; /* Fixed widths for alignment */
	align-items: center;
	padding: 14px 18px;
	background-color: #FFFFFF;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 16px;
}

/* Header row */
.sellerlootheader {
	display: grid;
	grid-template-columns: 260px 140px 140px 160px 140px;
	align-items: center;
	font-weight: bold;
	background-color: #f0f0f0;
	border-bottom: 2px solid #ccc;
	padding: 12px 18px;
}

/* No loot message */
.no-loot-message {
	text-align: center;
	font-style: italic;
	color: #666;
	padding: 1rem;
}

/* Normalize fonts across all elements */
.sellerlootentry,
.sellerlootentry *,
.sellerlootheader,
.sellerlootheader * {
	font-family: 'Trebuchet MS', sans-serif !important;
	font-size: 16px !important;
	color: #2C3E50 !important;
	box-sizing: border-box;
}

/* Seller ID column */
.seller-id {
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Loot amount */
.loot-amount {
	color: #27AE60 !important;
	font-weight: bold;
	text-align: right;
}

/* Expiring loot */
.expires {
	color: #E67E22 !important;
	text-align: right;
}

/* Countdown */
.countdown {
	color: #C0392B !important;
	font-family: monospace !important;
	text-align: right;
	white-space: nowrap;
}

.pending-loot {
  color: #666;
  text-align: right;
}

.clock-icon {
  cursor: pointer;
  user-select: none;
  margin-left: 6px;
  color: #666;
}

.countdown-popup {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  z-index: 10;
}

/* Footer areas */
.footer {
	grid-area: 6/1/7/2;
}
.minifooter {
	grid-area: 6/1/7/2;
}

@media (max-width: 985px) {
	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 160px 140px 140px 160px 140px;
	}
}
@media (max-width: 875px) {
	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 160px 120px 120px 150px 140px;
	}
}
@media (max-width: 800px) {
	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 160px 110px 110px 120px 120px;
	}
}
@media (max-width: 730px) {
	.sellerlootentry,
	.sellerlootentry * {
		font-size: 13px !important;
	}

	.sellerlootheader,
	.sellerlootheader * {
		font-size: 13px !important;
	}

	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 140px 90px 90px 100px 90px;
	}
}
@media (max-width: 608px) {
	.sellerlootentry,
	.sellerlootentry * {
		font-size: 11px !important;
	}

	.sellerlootheader,
	.sellerlootheader * {
		font-size: 11px !important;
	}

	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 125px 65px 65px 75px 70px;
	}
}
@media (max-width: 480px) {
	.sellerlootentry,
	.sellerlootentry * {
		font-size: 11px !important;
	}

	.sellerlootheader,
	.sellerlootheader * {
		font-size: 11px !important;
	}
	.sellerlootentry .pending-loot,
	.sellerlootheader .pending-loot {
		display: none;
	}
	.sellerlootentry,
	.sellerlootheader {
		grid-template-columns: 125px 65px 75px 70px;
	}
}
