.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex !important;
}

.bmg-shortcode-heading {
	margin: 0 0 8px;
}

#widgetWrapper.bmg-shortcode-no-heading,
#competitionWidgetWrapper.bmg-shortcode-no-heading {
	margin-top: 0;
}

#widgetWrapper.bmg-shortcode-with-heading,
#competitionWidgetWrapper.bmg-shortcode-with-heading {
	margin-top: 0;
}

/* Заеднички font sizes за двата widget-и: lg = поголем (главно), sm = помал (споредно) */
:root {
	--widget-font-lg: 14px;
	--widget-font-sm: 13px;
}

/* Match voting widget: 2 font sizes only */
#widgetWrapper {
	--mv-font-lg: var(--widget-font-lg);
	--mv-font-sm: var(--widget-font-sm);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(157, 150, 150, 0.6) transparent;
	-ms-overflow-style: none;
	font-family: 'Montserrat', sans-serif;
	color: white;
	cursor: grab;
	box-sizing: border-box;
}
#widgetWrapper, #competitionWidgetWrapper{
	margin:10px 0;
}
#widgetWrapper.is-dragging {
	cursor: grabbing;
	user-select: none;
}
/* Незначителна сива scrollbar – показател и за превлачување */
#widgetWrapper::-webkit-scrollbar {
	height: 4px;
}
#widgetWrapper::-webkit-scrollbar-track {
	background: transparent;
}
#widgetWrapper::-webkit-scrollbar-thumb {
	background: rgba(120, 120, 120, 0.5);
	border-radius: 3px;
}
#widgetWrapper::-webkit-scrollbar-thumb:hover {
	background: rgba(140, 140, 140, 0.7);
}
#widgetWrapper {
	position: relative;
}
@keyframes blink {
	0% { opacity: 0; }
	50% { opacity: 1; }
	100% { opacity: 0; }
}
.blink-animation {
	animation: blink 1s infinite;
}
#widgetWrapper .match-box {
	background:  linear-gradient(180deg, #142d47 0%, #111F35 100%);
	padding: 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	position: relative;
	z-index: 2;
	flex: 0 0 min(320px, calc(100vw - 40px));
	min-width: 0;
	box-sizing: border-box;
	gap: 10px;
	overflow: visible;
}
#widgetWrapper .header-wrapper {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}
#widgetWrapper .match-details {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}
#widgetWrapper .partnerLogo img {
	max-width: 78px;
	height: auto;
}
.partnerLogo {
	width: auto;
}
#widgetWrapper .partnerLogo a{
    display:inline-block;
    padding:0;
    background:transparent;
    border:0;
    line-height:0;
    text-decoration:none;
}

#widgetWrapper .match-box * {
	position: relative;
	z-index: 2;
}
/* Row: Team 1 | start time / score (center) | Team 2 */
#widgetWrapper .match-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 10px;
}
#widgetWrapper .team {
	display: flex;
	align-items: center;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}
#widgetWrapper .team-logo {
	width: 50px;
	height: 50px;
	margin-bottom: 5px;
	background-size: 50px 50px;
	background-repeat: no-repeat;
	flex-shrink: 0;
}
#widgetWrapper .team-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
#widgetWrapper .team-name {
	font-size: var(--mv-font-sm);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
#widgetWrapper .live-results {
	font-size: var(--mv-font-lg);
	font-weight: 600;
	color: #1E8E4A;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 85px;
}
#widgetWrapper .match-time {
	font-size: var(--mv-font-sm);
	color: rgba(255,255,255,0.9);
}
#widgetWrapper .live-status {
	font-size: var(--mv-font-lg);
	color: #1E8E4A;
	font-weight: 600;
}
#widgetWrapper .prediction {
	font-size: var(--mv-font-lg);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	gap: 20px;
	position: relative;
	z-index: 20;
}

#widgetWrapper .tips-wrapper .click-counts,
#widgetWrapper .tips-wrapper .total-votes {
	position: relative;
	z-index: 0;
}
#widgetWrapper .tip {
	margin-bottom: 0;
    margin-top:0;
	font-weight: 600;
	font-size: var(--mv-font-sm);
	color: rgba(255,255,255,0.95);
    margin-bottom:5px;
}

#widgetWrapper .prediction-button,
#widgetWrapper .prediction-button:not(.voted-button) {
	background: rgba(255,255,255,0.25) !important;
	background-color: rgba(255,255,255,0.25) !important;
	background-image: none !important;
	color: white;
	border: 1px solid rgba(255,255,255,0.4);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: var(--mv-font-sm);
	font-weight: 600;
	transition: background-color 0.2s, border-color 0.2s;
}
#widgetWrapper .prediction-button:not(.voted-button):hover {
	background: rgba(255,255,255,0.35) !important;
	background-color: rgba(255,255,255,0.35) !important;
	border-color: rgba(255,255,255,0.5);
}
#widgetWrapper .prediction-button.disabled-button:not(.voted-button) {
	background-color: rgba(255,255,255,0.2) !important;
	cursor: not-allowed;
}
#widgetWrapper .prediction-button.disabled-button:not(.voted-button):hover {
	background-color: rgba(255,255,255,0.2) !important;
	cursor: not-allowed;
}
#widgetWrapper .prediction-button.voted-button {
	background-color: #1E8E4A !important;
	border-color: rgba(255,255,255,0.3);
	cursor: not-allowed;
}
#widgetWrapper .prediction-button.voted-button:hover {
	background-color: #1E8E4A !important;
	cursor: not-allowed;
}

/* По гласање / затворено: tooltip на wrap (hover); копчињата остануваат 1 / X / 2 */
#widgetWrapper .bmg-prediction-disabled-wrap {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

#widgetWrapper .bmg-prediction-disabled-wrap::before {
	content: attr(data-bmg-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	transform: translateX(-50%);
	padding: 8px 12px;
	max-width: min(240px, 70vw);
	width: 90px;
	white-space: normal;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a202c;
	background-color: #ffffff;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	isolation: isolate;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 100;
}

#widgetWrapper .bmg-prediction-disabled-wrap::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% + 2px);
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: #ffffff;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 101;
}

#widgetWrapper .bmg-prediction-disabled-wrap:hover::before,
#widgetWrapper .bmg-prediction-disabled-wrap:hover::after,
#widgetWrapper .bmg-prediction-disabled-wrap:focus-within::before,
#widgetWrapper .bmg-prediction-disabled-wrap:focus-within::after {
	opacity: 1;
	visibility: visible;
}

#widgetWrapper .click-counts {
	justify-content: center;
	width: 100%;
	align-items: center;
	display: none;
	gap: 20px;
	margin-top: 6px;
}
#widgetWrapper .click-counts span {
	width: 36px;
	font-size: var(--mv-font-sm);
	text-align: center;
}
#widgetWrapper .total-votes {
	display: none;
	text-align: center;
	font-size: var(--mv-font-sm);
	margin-top: 4px;
}
#widgetWrapper #countdown {
	color: #1E8E4A;
	font-weight: 600;
	font-size: var(--mv-font-lg);
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#widgetWrapper .startsIn {
	font-size: var(--mv-font-sm) !important;
    color:white !important;
}
#widgetWrapper .tips-wrapper {
	width: 100%;
}
/* Match voting: responsive mobile */
@media (max-width: 480px) {
	#widgetWrapper {
		gap: 10px;
        padding: 0 !important;
	}
	#widgetWrapper .match-box {
		flex: 0 0 min(290px, calc(100vw - 40px));
		padding: 10px;
	}
	#widgetWrapper .team-logo {
		width: 44px;
		height: 44px;
		background-size: 44px 44px;
	}
	#widgetWrapper .live-results {
		min-width: 60px;
		font-size: var(--mv-font-lg);
		color: #1E8E4A;
	}
    #widgetWrapper .team-name {
        font-size: 11px;
       
     
    }
}

/* Horizontal matches slider: исти font sizes како voting (lg главно, sm споредно) */
.bmg-competition-widget {
	--cw-font-lg: var(--widget-font-lg);
	--cw-font-sm: var(--widget-font-sm);
	font-family: 'Montserrat', sans-serif;
	background: #f0f0f3;
	padding: 10px;
	overflow: hidden;
}

/* Еден ред: date-picker (trigger + live) + лиги; при отворен дата-пикер лигите се кријат */
.bmg-cw-top-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.bmg-cw-top-row:has(.bmg-cw-date-picker.open) .bmg-cw-competition-row {
	display: none;
}

/* Кога дата-пикерот е отворен: цел ред за датуми, scroll по x ако има многу датуми */
.bmg-cw-top-row:has(.bmg-cw-date-picker.open) .bmg-cw-date-row {
	flex: 1;
	min-width: 0;
	max-width: 100%;
}

.bmg-cw-date-row,
.bmg-cw-competition-row {
	display: flex;
	gap: 10px;
	overflow-x: hidden;
	flex-wrap: wrap;
}

.bmg-cw-competition-row {
	margin-top: 0;
	flex: 1;
	min-width: 0;
}

.bmg-cw-date-row {
	display: flex;
	flex-shrink: 0;
}

.bmg-cw-date-picker {
	display: flex;
	gap: 10px;
	width: auto;
	max-width: 100%;
	align-items: flex-start;
}

.bmg-cw-date-picker.open {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	align-items: center;
}

.bmg-cw-date-picker.open .bmg-cw-date-trigger,
.bmg-cw-date-picker.open .bmg-cw-live-toggle {
	flex-shrink: 0;
}

.bmg-cw-date-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--cw-font-sm);
}

.bmg-cw-date-chevron {
	font-size: var(--cw-font-sm);
	line-height: 1;
}

.bmg-cw-date-options {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	width: 0;
	max-width: 0;
	max-height: 40px;
	opacity: 0;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	transform-origin: left center;
	transform: translateX(-8px) scaleX(0.94);
	pointer-events: none;
	transition: max-width 320ms cubic-bezier(0.22, 1, 0.36, 1), max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
	-webkit-overflow-scrolling: touch;
}

.bmg-cw-date-options::-webkit-scrollbar {
	display: none;
}

.bmg-cw-date-options.is-dragging {
	cursor: grabbing;
}

.bmg-cw-date-picker.open .bmg-cw-date-options {
	flex: 1;
	min-width: 0;
	width: auto;
	max-width: 100%;
	max-height: 44px;
	opacity: 1;
	transform: translateX(0) scaleX(1);
	pointer-events: auto;
	scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.bmg-cw-date-picker.open .bmg-cw-date-options::-webkit-scrollbar {
	display: block;
	height: 3px;
}

.bmg-cw-date-picker.open .bmg-cw-date-options::-webkit-scrollbar-track {
	background: transparent;
}

.bmg-cw-date-picker.open .bmg-cw-date-options::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.22);
	border-radius: 2px;
}

.bmg-cw-date-picker.open .bmg-cw-date-options::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.38);
}

.bmg-cw-date-option {
	font-size: var(--cw-font-sm);
	flex: 0 0 auto;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--date-index, 0) * 18ms);
}

.bmg-cw-date-picker.open .bmg-cw-date-option {
	opacity: 1;
	transform: translateX(0);
}

.bmg-cw-competition-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.bmg-cw-competition-flag {
	width: 14px;
	height: 14px;
	border-radius: 0;
	flex: 0 0 14px;
	object-fit: cover;
	display: block;
	align-self: center;
}

.bmg-cw-competition-text {
	display: inline-block;
	line-height: 1.2;
}

.bmg-cw-league-count {
	font-size: var(--cw-font-sm);
	font-weight: 600;
	margin-left: 2px;
	line-height: 1;
}

/* Chip: без border и позадина; underline како мени на hover и active */
.bmg-cw-chip {
	border: none;
	background: transparent;
	color: #2d3748;
	border-radius: 0;
	font-size: var(--cw-font-sm);
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	transition: color 0.2s ease;
}

.bmg-cw-chip::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	opacity: 0;
	transform: scaleX(0);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bmg-cw-chip:hover {
	color: #1a202c;
}

.bmg-cw-chip:hover::after {
	opacity: 0.4;
	transform: scaleX(1);
}

.bmg-cw-chip.active {
	color: #1a202c;
	font-weight: 600;
}

.bmg-cw-chip.active::after {
	background: #1E8E4A;
	opacity: 1;
	transform: scaleX(1);
}


.bmg-cw-carousel {
	position: relative;
	display: flex;
	align-items: center;
}

.bmg-cw-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 36px;
	cursor: grab;
	user-select: none;
	width: 100%;
}

.bmg-cw-track::-webkit-scrollbar {
	display: none;
}

.bmg-cw-track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.bmg-cw-match-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 10px;
	flex: 0 0 auto;
	width: max-content;
	min-height: 64px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bmg-cw-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #2d3748;
	font-size: var(--cw-font-lg);
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s, color 0.2s;
}

.bmg-cw-nav:hover {
	background: #f7fafc;
	color: #1a202c;
}

.bmg-cw-nav-left {
	left: 4px;
}

.bmg-cw-nav-right {
	right: 4px;
}

.bmg-cw-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.bmg-cw-match-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--cw-font-sm);
	color: #718096;
	margin-bottom: 0;
    gap: 20px;
}

.bmg-cw-match-date {
	font-weight: 500;
}

.bmg-cw-match-time {
	color: #4a5568;
	font-size: var(--cw-font-sm);
	line-height: 1;
}

.bmg-cw-team-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 24px;
	gap: 8px;
}

.bmg-cw-team {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #1a202c;
	white-space: nowrap;
	min-width: 0;
}

.bmg-cw-team img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.bmg-cw-team-score {
	font-size: var(--cw-font-lg);
	font-weight: 600;
	color: #1a202c;
	min-width: 20px;
	text-align: right;
}

.bmg-cw-empty {
	font-size: var(--cw-font-sm);
	color: #718096;
	padding: 10px;
}

@media (max-width: 768px) {
	.bmg-cw-date-picker.open .bmg-cw-date-options {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.06);
		max-height: 48px;
	}

	.bmg-cw-competition-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.bmg-cw-competition-row::-webkit-scrollbar {
		display: none;
	}

	.bmg-cw-chip {
		font-size: 12px;
	}
	.bmg-cw-date-trigger,
	.bmg-cw-date-chevron,
	.bmg-cw-date-option,
	.bmg-cw-live-toggle {
		font-size: 12px;
	}

	.bmg-cw-match-meta,
	.bmg-cw-match-date,
	.bmg-cw-match-time {
		font-size: 12px;
	}
	.bmg-cw-team {
		font-size: 11px;
	}
	.bmg-cw-team-score {
		font-size: 12px;
	}

	.bmg-cw-track {
		padding: 4px 0;
	}

	.bmg-cw-match-card {
		flex: 0 0 auto;
		width: max-content;
	}

	.bmg-cw-nav {
		display: none;
	}
}