.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex !important;
}

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

/* Horizontal slider: heading text + optional livescore logo on one row (logo right) */
.bmg-horizontal-slider-heading-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 8px;
}

.bmg-horizontal-slider-heading-row .bmg-shortcode-heading {
	margin: 0;
	flex: 1;
	min-width: 0;
	padding-bottom: 8px;
}

.bmg-horizontal-slider-heading-row .bmg-cw-livescore-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.bmg-cw-livescore-provided-by {
	font-size: var(--widget-font-sm);
	font-weight: 500;
	color: #4a5568;
	white-space: nowrap;
	line-height: 1.2;
}

#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.voted-button {
	background-color: #1E8E4A !important;
	border-color: rgba(255,255,255,0.3);
	cursor: not-allowed;
}

/* Tooltip на клик/тап врз disabled wrap; JS: 5s авто + клик надвор; не :hover */
#widgetWrapper .bmg-prediction-disabled-wrap {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	cursor: not-allowed;
}

#widgetWrapper .bmg-prediction-disabled-wrap .prediction-button[disabled] {
	pointer-events: none;
}

#widgetWrapper .bmg-prediction-disabled-wrap::before {
	content: attr(data-bmg-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 5px);
	transform: translateX(-50%);
	padding: 5px;
	width: 100px;
	white-space: normal;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: #1a202c;
	background-color: #ffffff;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	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;
}

/* Блокира hover/focus tooltip (теми/стар CSS); само .bmg-show-vote-tooltip од клик */
#widgetWrapper .bmg-prediction-disabled-wrap:hover:not(.bmg-show-vote-tooltip)::before,
#widgetWrapper .bmg-prediction-disabled-wrap:hover:not(.bmg-show-vote-tooltip)::after,
#widgetWrapper .bmg-prediction-disabled-wrap:focus-within:not(.bmg-show-vote-tooltip)::before,
#widgetWrapper .bmg-prediction-disabled-wrap:focus-within:not(.bmg-show-vote-tooltip)::after {
	opacity: 0 !important;
	visibility: hidden !important;
}

#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.bmg-show-vote-tooltip::before,
#widgetWrapper .bmg-prediction-disabled-wrap.bmg-show-vote-tooltip::after {
	opacity: 1 !important;
	visibility: visible !important;
}

#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 .tips-wrapper {
	width: 100%;
}

/* ——— Match voting: card layout (динамички од pluginBuilder) ——— */
.bmg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#widgetWrapper.bmg-voting-cards {
	scrollbar-color: rgba(30, 142, 74, 0.5) transparent;
}

#widgetWrapper.bmg-voting-cards::-webkit-scrollbar-thumb {
	background: rgba(30, 142, 74, 0.45);
}

#widgetWrapper.bmg-voting-cards .match-box {
	flex: 0 0 min(320px, calc(100vw - 40px));
	align-items: stretch;
	text-align: left;
	padding: 10px;
	gap: 10px;
	border-radius: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-card-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	width: 100%;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
	display: block;
	text-align: left;
	min-width: 0;
	justify-self: start;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta .match-time {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	color: rgba(255, 255, 255, 0.9);
	min-width: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta .match-time__date {
	color: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
	font-size: 11px !important;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta .match-time__sep {
	color: rgba(255, 255, 255, 0.35);
	font-weight: 600;
	flex-shrink: 0;
	user-select: none;
	font-size: 11px !important;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta .live-status {
	color: #1e8e4a;
	font-weight: 600;
	line-height: 1.2;
	min-width: 0;
	font-size: 11px !important;
}

#widgetWrapper.bmg-voting-cards .bmg-card-meta .bmg-card-kickoff.live-status {
	white-space: nowrap;
}

#widgetWrapper.bmg-voting-cards .bmg-card-live-results {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	max-width: 42%;
	text-align: center;
}

#widgetWrapper.bmg-voting-cards #liveScore.block {
	font-weight: 700;
	color: #1e8e4a;
	font-size: var(--mv-font-lg);
	line-height: 1.2;
	text-align: center;
}

#widgetWrapper.bmg-voting-cards #countdown.bmg-card-countdown-badge {
	font-size: 11px;
	font-weight: 600;
	color: #1e8e4a;
	background: rgba(30, 142, 74, 0.22);
	padding: 5px;
	border-radius: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto;
	min-width: 0;
	width: 90px;
}

#widgetWrapper.bmg-voting-cards #countdown.bmg-card-countdown-badge .bmg-countdown-label {
	font-size: 10px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

#widgetWrapper.bmg-voting-cards #countdown.bmg-card-countdown-badge > span:not(.bmg-countdown-label) {
	white-space: nowrap;
}

#widgetWrapper.bmg-voting-cards .bmg-card-partner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	justify-self: end;
	min-width: 0;
	pointer-events: auto;
}

#widgetWrapper.bmg-voting-cards .bmg-card-partner:empty {
	width: 0;
	min-width: 0;
	padding: 0;
	overflow: visible;
}

#widgetWrapper.bmg-voting-cards .bmg-card-partner .partnerLogo {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-card-partner .partnerLogo img {
	max-width: 72px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

#widgetWrapper.bmg-voting-cards .bmg-card-partner .partnerLogo a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#widgetWrapper.bmg-voting-cards .bmg-card-teams {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	height: 85px;
}

#widgetWrapper.bmg-voting-cards .bmg-card-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
	font-weight: 700;
	font-size: var(--mv-font-lg);
	text-align: center;
}

#widgetWrapper.bmg-voting-cards .bmg-card-team__logo {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	margin: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-card-team__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#widgetWrapper.bmg-voting-cards .bmg-card-team__name {
	color: #fff;
	font-size:11px;
	font-weight: 600;
	line-height: 1.25;
	max-width: 100%;
	display: block;
	word-break: break-word;
	overflow-wrap: anywhere;
	hyphens: auto;
}

#widgetWrapper.bmg-voting-cards .tips-wrapper {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 2px;
}

#widgetWrapper.bmg-voting-cards .prediction.bmg-vote-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	width: 100%;
}

#widgetWrapper.bmg-voting-cards .bmg-vote-option-span {
	display: block;
	min-width: 0;
}

#widgetWrapper.bmg-voting-cards .prediction-button.bmg-vote-option {
	width: 100%;
	min-height: 50px;
	height: auto;
	padding: 5px;
	margin: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
	text-align: left;
	border-radius: 0 !important;
	border: 1px solid #1e2630;
	background: rgba(255, 255, 255, 0.06) !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
	color: #fff;
	cursor: pointer;
	font-size: inherit;
	line-height: 1.2;
}

#widgetWrapper.bmg-voting-cards .prediction-button.bmg-vote-option:hover:not(:disabled) {
	border-color: rgba(30, 142, 74, 0.65) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
}

#widgetWrapper.bmg-voting-cards .bmg-vote-option__pick {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

#widgetWrapper.bmg-voting-cards .bmg-vote-option__pct {
	font-size:12px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 600;
}

#widgetWrapper.bmg-voting-cards .prediction-button.voted-button {
	background-color: #1e8e4a !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #fff !important;
	box-shadow: none;
}

#widgetWrapper.bmg-voting-cards .prediction-button.disabled-button:not(.voted-button) {
	background: rgba(255, 255, 255, 0.05) !important;
	background-color: rgba(255, 255, 255, 0.05) !important;
	border-color: #1e2630 !important;
	color: rgba(255, 255, 255, 0.45) !important;
	opacity: 0.9;
}

#widgetWrapper.bmg-voting-cards .bmg-card-fan-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-top: 2px;
}

#widgetWrapper.bmg-voting-cards .bmg-card-fan-row.bmg-card-fan-row--voted-only {
	justify-content: flex-end;
}

#widgetWrapper.bmg-voting-cards .bmg-card-fan-label.hidden,
#widgetWrapper.bmg-voting-cards .tip.bmg-card-fan-label.hidden {
	display: none !important;
}

#widgetWrapper.bmg-voting-cards .bmg-card-fan-label,
#widgetWrapper.bmg-voting-cards .tip.bmg-card-fan-label {
	margin: 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
}

#widgetWrapper.bmg-voting-cards .total-votes {
	display: block !important;
	text-align: right;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	margin-top: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-prediction-disabled-wrap {
	display: block;
	width: 100%;
	border-radius: 0;
}

#widgetWrapper.bmg-voting-cards .bmg-prediction-disabled-wrap::before {
	border-radius: 0;
}

/* 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.bmg-voting-cards .match-box {
		flex: 0 0 min(300px, calc(100vw - 28px));
		padding: 12px 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 | [Live + лиги во еден хоризонтален scroll]; при отворен дата-пикер се кријат само chip-овите */
.bmg-cw-top-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	min-width: 0;
}

.bmg-cw-livescore-brand-link {
	display: inline-flex;
	line-height: 0;
}

.bmg-cw-livescore-brand-img {
	display: block;
	max-height: 40px;
	width: auto;
	height: auto;
}

/* При отворен дата-пикер: лигите се кријат; Live останува во scroll-редот */
.bmg-cw-top-row:has(.bmg-cw-date-picker.open) .bmg-cw-competition-row .bmg-cw-competition-chip {
	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 {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: nowrap;
	min-width: 0;
}

.bmg-cw-competition-row {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	flex: 1;
	min-width: 0;
	margin-top: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

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

.bmg-cw-competition-row.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.bmg-cw-competition-row .bmg-cw-live-toggle {
	flex: 0 0 auto;
}

.bmg-cw-competition-row .bmg-cw-live-toggle,
.bmg-cw-competition-row .bmg-cw-chip {
	cursor: grab;
}

.bmg-cw-competition-row.is-dragging .bmg-cw-chip,
.bmg-cw-competition-row.is-dragging .bmg-cw-live-toggle {
	cursor: grabbing;
}

.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 {
	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;
	flex: 0 0 auto;
}

.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;
}

.bmg-cw-matches {
	position: relative;
	min-height: 78px;
}

.bmg-cw-matches.bmg-cw-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(240, 240, 243, 0.2) 0%, rgba(240, 240, 243, 0.55) 50%, rgba(240, 240, 243, 0.2) 100%);
	background-size: 220% 100%;
	animation: bmg-cw-loading-sheen 1.1s ease-in-out infinite;
	pointer-events: none;
	border-radius: 6px;
	z-index: 3;
}

.bmg-cw-matches.bmg-cw-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	right: auto;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 2px solid rgba(74, 85, 104, 0.35);
	border-top-color: #1E8E4A;
	border-radius: 50%;
	animation: bmg-cw-loading-spin 0.8s linear infinite;
	pointer-events: none;
	z-index: 4;
}

@keyframes bmg-cw-loading-sheen {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

@keyframes bmg-cw-loading-spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@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-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;
	}
}