.leaderboard-sort-criterion {
	font-size:x-small;
}

.highlight-year,  .highlight-month{
    color: #FF5722;  
    font-weight: 600;  
}

.prize-section {
    margin-top: 40px;
    padding: 20px; 
    position: relative; /* Важливо для loading-overlay */
    min-height: 150px; /* Забезпечити висоту для спінера */
}

#leaderboard-ajax-container p {
	margin-top:15px;
}

.leaderboard-title,.prize-table-title {
	text-align:center;
	padding: 20px 0px 0px 0px;
	font-size: 1.5em; 
}

.leadfowo-warning {
	color:red;
	font-size:1.4em;
	text-align:center;
}



.buyers-table tr { 
	height: 50px;
	}



.buyers-table {
	width: 100%;
	border-collapse: collapse;
	margin: 25px 0;
	font-size: 0.9em;
	font-family: sans-serif;
	min-width: 400px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.buyers-table thead tr { 
	text-align: left;
	line-height: 2em;
}

.buyers-table th,
.buyers-table td { 
	border-left: none;
	border-right: none;
}

.buyers-table th,
.buyers-table td {
	padding: 10px; 
	text-align: left;
}

.buyers-table td:first-child,
.buyers-table th:first-child {
	text-align: center;
}

.gold {
 
} 
.silver {
	 
}

.bronze {
 
}

.highlight {
	font-weight: bold;
}

.blink-row {
	animation: blinkAnimation 1.5s infinite alternate;
	font-weight: bold;
}

@keyframes blinkAnimation { 
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.2;
	}
}






.prize-table tr { 
	height: 50px;
	vertical-align: top;
	}
 
.prize-table {
	width: 100%;
	border-collapse: collapse;
	margin: 25px 0;
	font-size: 0.9em;
	font-family: sans-serif;
	min-width: 400px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.prize-table thead tr { 
	text-align: left;
	line-height: 2em; 
}

.prize-table th,
.prize-table td {
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-left: none;
	border-right: none;
	padding: 10px; 
	text-align: center;
	width:33%;
}

.prize-table th{
	font-size: large;
}
 
 
.prize-table a  {  
  padding: 10px;
}

.prize-table img {
	max-width: 100px;
	height: auto;
	display: block;
	margin: 0 auto 5px;
}

.prize-item-wrapper {
	margin-bottom: 15px;
	min-height: 200px;
}

.prize-item-wrapper:last-child {
	margin-bottom: 0;
}

.place_1::after {
	content: "🥇";
	font-size: xx-large;
}

.place_2::after {
	content: "🥈";
	font-size: xx-large;
}

.place_3::after {
	content: "🥉";
	font-size: xx-large;
}
 
 .prize-separator {
	 padding:15px;
	 }
 
 
.leaderboard-controls {
display: flex;
  align-items: center;
  gap: 15px; 
  padding-top: 15px;
}

.leaderboard-controls label {
    font-weight: bold;
    margin-right: 5px 
}

.leaderboard-controls select {
    padding: 6px; 
    border-radius: 4px;
    font-size: 1em;
    min-width: 120px;
}

.leaderboard-controls .button {  
    padding: 8px 15px;
    border: none;
    border-radius: 4px; 
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leaderboard-wrapper h4 {
	margin-top:15px;
}
 
 
.leaderboard-controls select option {
    padding: 10px; 
}
 
@media (max-width: 600px) {
    .leaderboard-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .leaderboard-controls label,
    .leaderboard-controls select {
        width: 100%;
        margin-bottom: 10px;
    }
    .leaderboard-controls label:last-of-type,
    .leaderboard-controls select:last-of-type {
        margin-bottom: 0;
    }
	.prize-table { 
  min-width: 100%;
}

}
 

.leadfowo-pagination {
    text-align: center;
    margin-top: 25px; 
}

.leadfowo-pagination .page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border-radius: 5px;
    text-decoration: none; 
    transition: all 0.2s ease;
    min-width: 35px;  
    text-align: center;
}
 
.leadfowo-pagination .page-link.active { 
    cursor: default; 
}

.leaderboard-content-area,.prize-section {  
    position: relative;
    min-height: 200px;  
}

.leaderboard-content-area.loading-overlay,
.prize-section.loading-overlay {  
    opacity: 0.7; 
    pointer-events: none;  
}

.leaderboard-content-area .loading-message,
.prize-section .loading-message {  
    text-align: center;
    margin-top: 50px;  
    font-size: 1.2em;
    color: #666;
    font-style: italic;
}

 
.prize-section.loading-overlay::before,
.leaderboard-content-area.loading-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);  
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 100;
}
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* сховати спінер в блоці призів */
.prize-section.loading-overlay{
    content: none;
}


@media (max-width: 768px) {
    .leadfowo-pagination .page-link {
        padding: 6px 10px;  
        margin: 0 2px;
		margin-bottom: 10px;
    }
	.leadfowo-email { 
    word-break: break-all;
	}
	.buyers-table th  { 
    text-align: left;
    font-size: 11px;
}
.leaderboard-controls .button { 
  width: 100%;
}
}