/*
 * Branik Vstopnice – prodajna stran in okno za nakup (1.4, slog iOS).
 * Sistemska pisava (SF Pro na Applovih napravah), zaobljene kartice, grupirani seznami.
 * Klubska barva (--bv-primary) le na koledarju in tankih linijah, --bv-accent za gumbe za nakup.
 */

.bv-root, .bv-modal {
	--bv-primary: #4b2a7b;
	--bv-accent: #ff5a1f;
	--bv-ink: #1d1d1f;
	--bv-label2: rgba(60, 60, 67, 0.62);
	--bv-label3: rgba(60, 60, 67, 0.32);
	--bv-sep: rgba(60, 60, 67, 0.16);
	--bv-fill: rgba(118, 118, 128, 0.12);
	--bv-grouped: #f2f2f7;
	--bv-card: #fff;
	--bv-radius: 22px;
	--bv-radius-s: 14px;
	--bv-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 22px rgba(0, 0, 0, 0.07);
	--bv-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bv-ease: cubic-bezier(0.32, 0.72, 0, 1);
	box-sizing: border-box;
	color: var(--bv-ink);
	font-family: var(--bv-font);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.bv-root *, .bv-root *::before, .bv-root *::after,
.bv-modal *, .bv-modal *::before, .bv-modal *::after { box-sizing: inherit; }

.bv-root { margin: 0 auto; max-width: 980px; }
.bv-root p { margin: 0; }
.bv-tex, .bv-root .bv-card.bv-tex { background: #111 url(../img/textura.jpg) center / cover; }

/* ------------------------------------------------------------ Glava */
.bv-hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 26px 28px;
	margin: 0 0 30px;
	border-radius: var(--bv-radius);
	color: #fff;
	overflow: hidden;
	box-shadow: var(--bv-shadow);
}
.bv-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bv-primary); }
.bv-hero-logo { width: 58px; height: auto; flex: none; filter: drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff); }
.bv-root .bv-hero-title { margin: 0; padding: 0; font-size: clamp(2rem, 1.5rem + 2.2vw, 2.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; color: #fff; }
.bv-root .bv-hero-sub { margin-top: 6px; font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }

.bv-section { margin: 0 0 40px; }
.bv-root .bv-h {
	margin: 0 0 14px;
	padding: 0 4px;
	border: 0;
	font-family: var(--bv-font);
	font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	text-transform: none;
	color: var(--bv-ink);
}
.bv-root .bv-h::after { content: none; }
.bv-root .bv-intro { color: var(--bv-label2); margin: 0 0 26px; padding: 0 4px; max-width: 62ch; font-size: 1rem; letter-spacing: -0.01em; }
.bv-root .bv-empty { color: var(--bv-label2); padding: 22px; background: var(--bv-grouped); border-radius: var(--bv-radius-s); }

.bv-alert { padding: 13px 16px; border-radius: var(--bv-radius-s); background: var(--bv-grouped); margin: 0 0 20px; font-size: 0.94rem; letter-spacing: -0.01em; }
.bv-alert-test { background: #fff4e5; color: #8a4b00; }

/* ------------------------------------------------------------ Kartice */
.bv-list { display: grid; gap: 14px; }
.bv-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.bv-card {
	background: var(--bv-card);
	border: 0;
	border-radius: var(--bv-radius);
	box-shadow: var(--bv-shadow);
	transition: box-shadow 0.25s var(--bv-ease), transform 0.25s var(--bv-ease);
}
@media (hover: hover) {
	.bv-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 14px 34px rgba(0, 0, 0, 0.1); }
}

/* Tekma */
.bv-match { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; }

/* Koledar kot ikona Koledar v iOS */
.bv-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 66px;
	height: 70px;
	padding-top: 7px;
	border-radius: 16px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--bv-sep), 0 2px 8px rgba(0, 0, 0, 0.06);
	line-height: 1;
	overflow: hidden;
}
.bv-wd { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bv-primary); }
.bv-day { margin: 3px 0 2px; font-size: 1.95rem; font-weight: 300; letter-spacing: -0.04em; color: var(--bv-ink); }
.bv-mon { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--bv-label2); }

.bv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.84rem; letter-spacing: -0.01em; color: var(--bv-label2); }
.bv-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border: 0;
	border-radius: 999px;
	background: var(--bv-fill);
	color: var(--bv-ink);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.bv-badge-warn { background: rgba(255, 59, 48, 0.12); color: #d70015; }
.bv-root .bv-teams {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 9px 0 7px;
	padding: 0;
	font-family: var(--bv-font);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--bv-ink);
}
.bv-team { display: inline-flex; align-items: center; gap: 10px; }
.bv-vs { display: none; }
.bv-logo { width: auto; max-width: 30px; height: 28px; object-fit: contain; flex: none; }
.bv-logo-ph {
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bv-fill);
	color: var(--bv-label2);
	font-size: 0.8rem;
	font-weight: 700;
}
.bv-logo.bv-logo-ph { width: 28px; height: 28px; max-width: none; }
.bv-venue { font-size: 0.84rem; letter-spacing: -0.01em; color: var(--bv-label2); }
.bv-root .bv-note { font-size: 0.86rem; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bv-grouped); }

.bv-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 168px; text-align: right; }
.bv-from { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; color: var(--bv-label2); }
.bv-od { font-size: 0.86rem; font-weight: 500; letter-spacing: -0.01em; }
.bv-from strong { color: var(--bv-ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.bv-stock { font-size: 0.8rem; font-weight: 600; color: #d70015; }
.bv-reason { font-size: 0.8rem; color: var(--bv-label2); max-width: 220px; }

/* Gumb (kapsula) */
.bv-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--bv-accent);
	color: #111;
	font-family: var(--bv-font);
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: none;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.15s var(--bv-ease), filter 0.15s, opacity 0.15s;
	-webkit-tap-highlight-color: transparent;
}
.bv-btn:hover { filter: brightness(1.06); }
.bv-btn:active { transform: scale(0.96); filter: brightness(0.95); }
.bv-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--bv-accent) 45%, transparent); outline-offset: 2px; }
.bv-btn.is-disabled, .bv-btn:disabled { background: var(--bv-fill); color: var(--bv-label3); cursor: not-allowed; filter: none; transform: none; }

/* Letne vstopnice in paketi */
.bv-product { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px; }
.bv-product .bv-buy { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; flex-wrap: wrap; text-align: left; padding-top: 14px; border-top: 0.5px solid var(--bv-sep); }
.bv-product .bv-from { justify-content: flex-start; }
.bv-product .bv-stock, .bv-product .bv-reason { flex-basis: 100%; }
.bv-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--bv-label2); }
.bv-root .bv-title { margin: 3px 0 8px; padding: 0; font-family: var(--bv-font); font-size: 1.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-transform: none; color: inherit; }
.bv-desc { font-size: 0.92rem; letter-spacing: -0.01em; color: var(--bv-label2); }
.bv-desc + .bv-desc { margin-top: 6px; }

.bv-root .is-season { color: #fff; padding: 20px; }
.is-season .bv-kicker { color: rgba(255, 255, 255, 0.6); }
.is-season .bv-desc, .is-season .bv-from, .is-season .bv-reason { color: rgba(235, 235, 245, 0.7); }
.is-season .bv-from strong { color: #fff; }
.is-season .bv-stock { color: #ff9f0a; }
.is-season .bv-buy { border-top-color: rgba(255, 255, 255, 0.16); }

/* Kartica – obrne se ob dotiku/prehodu z miško */
.bv-flip { perspective: 1200px; margin: 0 0 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bv-flip-in { position: relative; aspect-ratio: 1015 / 637; transform-style: preserve-3d; transition: transform 0.7s var(--bv-ease); }
.bv-flip:hover .bv-flip-in, .bv-flip.is-flipped .bv-flip-in { transform: rotateY(180deg); }
.bv-flip img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4.2% / 6.6%; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.14); }
.bv-flip .bv-flip-back { transform: rotateY(180deg); }
.bv-flip-hint { display: block; margin-top: 10px; text-align: center; font-size: 0.75rem; font-weight: 500; color: rgba(235, 235, 245, 0.5); }

/* Tekme v paketu */
.bv-chips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bv-chips li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 12px;
	background: var(--bv-grouped);
	font-size: 0.82rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.bv-chip-txt { display: flex; flex-direction: column; min-width: 0; }
.bv-chip-txt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-chip-txt span { color: var(--bv-label2); font-size: 0.74rem; }
.bv-chips li.is-past { opacity: 0.4; }
.bv-chips li.is-past strong { text-decoration: line-through; }
.bv-root .bv-chip-logo { width: 24px; height: 24px; max-width: 24px; }
.bv-chip-logo.bv-logo-ph { width: 24px; height: 24px; font-size: 0.7rem; }

.bv-pay-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px !important; color: var(--bv-label2); font-size: 0.82rem; letter-spacing: -0.01em; }

.bv-next .bv-match { grid-template-columns: 66px 1fr auto; }

/* Letna vstopnica čez celo širino: kartica levo, besedilo desno */
.bv-section-season .bv-grid { grid-template-columns: 1fr; }
.bv-root .is-season { container-type: inline-size; }
@container (min-width: 540px) {
	.is-season .bv-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
	.is-season .bv-flip { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
	.is-season .bv-main > :not(.bv-flip) { grid-column: 2; }
}

/* Postavitev: letne vstopnice in paketi ob strani */
.bv-root:has(.bv-layout-side) { max-width: 1200px; }
.bv-layout-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; }
.bv-side-aside { position: sticky; top: 24px; }
.bv-side-aside .bv-grid, .bv-side-aside .bv-section-season .bv-grid { grid-template-columns: 1fr; }
.bv-side-aside .bv-section { margin-bottom: 28px; }
@media (max-width: 900px) {
	.bv-layout-side { grid-template-columns: 1fr; }
	.bv-side-aside { position: static; order: -1; }
}

@media (max-width: 640px) {
	.bv-hero { padding: 20px; gap: 14px; border-radius: 20px; }
	.bv-hero-logo { width: 44px; }
	.bv-match { grid-template-columns: 58px 1fr; gap: 12px 14px; padding: 14px; border-radius: 20px; }
	.bv-date { width: 58px; height: 62px; border-radius: 14px; padding-top: 6px; }
	.bv-day { font-size: 1.7rem; }
	.bv-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left; min-width: 0; padding-top: 12px; border-top: 0.5px solid var(--bv-sep); }
	.bv-buy .bv-stock, .bv-buy .bv-reason { flex-basis: 100%; order: 3; }
	.bv-next .bv-match { grid-template-columns: 58px 1fr; }
	.bv-product { padding: 16px; border-radius: 20px; }
}

/* ============================================================ Okno za nakup */
html.bv-lock { overflow: hidden; }
.bv-modal {
	border: 0;
	padding: 0;
	margin: auto;
	width: min(540px, calc(100vw - 24px));
	max-height: calc(100dvh - 40px);
	border-radius: 24px;
	background: var(--bv-grouped);
	color: var(--bv-ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	font-family: var(--bv-font);
}
.bv-modal[open] { display: flex; animation: bv-pop 0.38s var(--bv-ease); }
.bv-modal::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes bv-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes bv-sheet { from { transform: translateY(100%); } to { transform: none; } }
.bv-m { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }

/* Glava */
.bv-m-head {
	position: relative;
	display: block;
	padding: 18px 20px 20px;
	background: #111 url(../img/textura.jpg) center / cover;
	color: #fff;
}
.bv-m-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bv-primary); }
.bv-m-head.is-match { padding-top: 16px; text-align: center; }
.bv-m-grab { display: none; }
.bv-m-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 8px;
	margin: 2px 48px 14px;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.85);
}
.bv-m-head.is-match .bv-m-meta { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.bv-m-head.is-match .bv-m-when { display: block; text-align: center; }
.bv-m-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.74rem; font-weight: 600; color: #fff; }
.bv-m-head .bv-m-vs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: #fff;
	font: inherit;
}
.bv-m-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.bv-m-logo { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; }
.bv-m-logo img { height: 72px; width: auto; max-width: 72px; max-height: 72px; object-fit: contain; filter: drop-shadow(0 0 0.7px #fff) drop-shadow(0 0 0.7px #fff); }
.bv-m-ph { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 1.5rem; font-weight: 700; }
.bv-m-name { font-size: clamp(1rem, 0.92rem + 0.5vw, 1.15rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bv-m-colon { align-self: start; margin-top: 18px; font-size: 2.4rem; font-weight: 600; line-height: 1; color: rgba(255, 255, 255, 0.5); }
.bv-m-venue { margin: 12px 0 0; font-size: 0.82rem; font-weight: 500; color: rgba(235, 235, 245, 0.65); }

.bv-m-prod { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.bv-m-card { width: 108px; height: auto; flex: none; border-radius: 7px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.bv-m-prod .bv-m-meta { display: block; margin: 0 0 3px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; color: rgba(235, 235, 245, 0.6); }
.bv-m-head .bv-m-title { margin: 0 0 4px; padding: 0; font-family: var(--bv-font); font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-transform: none; color: #fff; }
.bv-m-sub, .bv-m-prod .bv-m-sub { margin: 0; font-size: 0.82rem; color: rgba(235, 235, 245, 0.7); }

/* Telo – grupirani seznami */
.bv-m-body { padding: 18px 16px 6px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bv-m fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.bv-m legend, .bv-group-label {
	display: block;
	margin: 0 0 7px;
	padding: 0 16px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--bv-label2);
}
.bv-group-label { margin-top: 18px; }
.bv-group { background: #fff; border-radius: 14px; overflow: hidden; }
.bv-group-foot { margin: 7px 16px 0 !important; font-size: 0.78rem; line-height: 1.35; color: var(--bv-label2); }

.bv-m-row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 12px 14px 12px 16px;
	border: 0;
	border-radius: 0;
	margin: 0;
	background: transparent;
	transition: background 0.2s;
}
.bv-m-row + .bv-m-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--bv-sep); }
.bv-m-row.is-active { box-shadow: inset 3px 0 0 var(--bv-primary); }
.bv-m-cat { min-width: 0; }
.bv-m-cat strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.bv-m-cat small { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.3; color: var(--bv-label2); }
.bv-m-price { display: block; margin-top: 3px; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--bv-ink); white-space: nowrap; }
.bv-m-row.is-soldout { opacity: 0.5; }
.bv-m-out { color: #d70015 !important; font-weight: 600; }
.bv-m-limit { min-height: 1em; margin: 7px 16px 0 !important; font-size: 0.78rem; color: var(--bv-label2); }

/* VIP / Hospitality */
.bv-vip-tag { display: inline-flex; align-items: center; height: 18px; margin-right: 7px; padding: 0 6px; border-radius: 5px; background: linear-gradient(135deg, #1d1d1f, #3a3a3c); color: #f1d38a; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; vertical-align: 2px; }
.bv-group-vip { background: linear-gradient(135deg, #fffaf0 0%, #fff 55%); box-shadow: inset 0 0 0 1px rgba(201, 162, 60, 0.35); }
.bv-group-vip .bv-m-row.is-active { box-shadow: inset 3px 0 0 #c9a23c; }

/* Način plačila */
.bv-m-pm[hidden] { display: none; }
.bv-pm {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 6px 12px;
	min-height: 56px;
	padding: 11px 14px 11px 16px;
	margin: 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bv-pm + .bv-pm::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--bv-sep); }
.bv-pm.is-active { box-shadow: none; }
.bv-pm input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bv-radio { position: relative; grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bv-label3); transition: background 0.15s, box-shadow 0.15s; }
.bv-pm input:checked + .bv-radio { background: var(--bv-ink); box-shadow: none; }
.bv-pm input:checked + .bv-radio::after { content: ""; position: absolute; left: 8.5px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bv-pm input:focus-visible + .bv-radio { outline: 3px solid color-mix(in srgb, var(--bv-primary) 40%, transparent); outline-offset: 2px; }
.bv-pm-main { grid-column: 1; grid-row: 1; min-width: 0; }
.bv-pm-main strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.bv-pm-main small { display: block; font-size: 0.8rem; color: var(--bv-label2); }
.bv-pm-badges { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.bv-pm-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--bv-fill); font-size: 0.68rem; font-weight: 600; color: var(--bv-ink); white-space: nowrap; }
.bv-pm-apple-pay, .bv-pm-google-pay, .bv-pm-flik { background: #000; color: #fff; }

/* Kupec */
.bv-field { position: relative; display: block; margin: 0; padding: 9px 16px 8px; cursor: text; }
.bv-field + .bv-field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--bv-sep); }
.bv-field > span { display: block; font-size: 0.74rem; font-weight: 500; color: var(--bv-label2); }
.bv-field small { font-weight: 400; color: var(--bv-label3); }
.bv-modal .bv-field input {
	display: block;
	width: 100%;
	margin: 1px 0 0;
	padding: 2px 0;
	min-height: 28px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--bv-ink);
	font-family: var(--bv-font);
	font-size: 17px;
	letter-spacing: -0.02em;
}
.bv-field input::placeholder { color: var(--bv-label3); }
.bv-field:focus-within > span { color: var(--bv-primary); }
.bv-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Soglasja */
.bv-m-legal { margin: 0 0 18px; font-size: 0.88rem; }
.bv-check { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 16px; cursor: pointer; letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent; }
.bv-check + .bv-check::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 0.5px; background: var(--bv-sep); }
.bv-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bv-check-box { position: relative; flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bv-label3); transition: background 0.15s, box-shadow 0.15s; }
.bv-check input:checked + .bv-check-box { background: var(--bv-ink); box-shadow: none; }
.bv-check input:checked + .bv-check-box::after { content: ""; position: absolute; left: 8.5px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bv-check input:focus-visible + .bv-check-box { outline: 3px solid color-mix(in srgb, var(--bv-primary) 40%, transparent); outline-offset: 2px; }
.bv-check a { color: var(--bv-ink); text-decoration: underline; text-decoration-color: var(--bv-primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.bv-m-error { margin: 0 0 14px !important; padding: 12px 16px; border-radius: 14px; background: rgba(255, 59, 48, 0.1); color: #d70015; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }

/* Noga – motno steklo */
.bv-m-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 0.5px solid var(--bv-sep);
	background: rgba(249, 249, 251, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
}
.bv-m-total { flex: none; padding-left: 4px; }
.bv-m-total span { display: block; font-size: 0.74rem; font-weight: 500; color: var(--bv-label2); }
.bv-m-total strong { display: block; font-size: 1.55rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.bv-m-pay { flex: 1; max-width: 300px; min-height: 50px; border-radius: 14px; font-size: 1.02rem; font-weight: 600; }
.bv-m-pay.is-loading { opacity: 0.7; cursor: progress; }

/* Telefon: list (sheet) od spodaj */
@media (max-width: 560px) {
	.bv-modal { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
	.bv-modal[open] { animation: bv-sheet 0.42s var(--bv-ease); }
	.bv-m-grab { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
	.bv-m-head { padding-top: 20px; }
	.bv-m-head.is-match { padding-top: 20px; }
	.bv-m-body { padding: 16px 12px 4px; }
}
@media (max-width: 420px) {
	.bv-m-logo { width: 60px; height: 60px; }
	.bv-m-logo img { height: 60px; max-width: 60px; max-height: 60px; }
	.bv-m-colon { margin-top: 10px; font-size: 1.9rem; }
	.bv-m-card { width: 84px; }
	.bv-m-meta { margin-left: 40px; margin-right: 40px; }
	.bv-m-foot { gap: 10px; }
	.bv-m-total strong { font-size: 1.35rem; }
	.bv-m-pay { max-width: none; padding: 0 14px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
	.bv-card, .bv-btn, .bv-m-row, .bv-flip-in, .bv-modal[open] { transition: none; animation: none; }
}

/* ---------- Zaščita gumbov pred slogi teme (od 1.3.1) ---------- */
.bv-modal .bv-m-close,
.bv-modal .bv-step button {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-indent: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	flex: none !important;
	display: inline-grid !important;
	place-items: center !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bv-modal .bv-m-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	width: 30px !important;
	height: 30px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	z-index: 2;
}
.bv-modal .bv-m-close:hover { background: rgba(255, 255, 255, 0.3) !important; }
.bv-modal .bv-m-close:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
@media (max-width: 560px) {
	.bv-modal .bv-m-close { top: 14px !important; }
}

/* Števec: sivo polje z minusom, črno polje s plusom */
.bv-modal .bv-step {
	display: inline-flex !important;
	align-items: center !important;
	flex: none !important;
	width: auto !important;
	gap: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}
.bv-modal .bv-step button {
	width: 34px !important;
	height: 34px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--bv-fill) !important;
	color: var(--bv-ink) !important;
	transition: background 0.15s, opacity 0.15s;
}
.bv-modal .bv-step button[data-d="1"] { background: var(--bv-ink) !important; color: #fff !important; }
.bv-modal .bv-step button[data-d="-1"]:hover:not(:disabled) { background: rgba(118, 118, 128, 0.22) !important; }
.bv-modal .bv-step button[data-d="1"]:hover:not(:disabled) { background: #3a3a3c !important; }
.bv-modal .bv-step button:active:not(:disabled) { opacity: 0.7; }
.bv-modal .bv-step button:disabled { opacity: 0.3 !important; cursor: default; }
.bv-modal .bv-step button:focus-visible { outline: 2px solid var(--bv-primary) !important; outline-offset: 2px; }
.bv-modal .bv-step output { min-width: 36px !important; text-align: center !important; font-size: 1.05rem !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: -0.02em; }

/* Ikone (CSS, da jih tema ne more skriti) */
.bv-modal .bv-i { position: relative; display: block; width: 12px; height: 12px; pointer-events: none; }
.bv-modal .bv-i::before,
.bv-modal .bv-i::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 2px;
	margin-top: -1px;
	border-radius: 2px;
	background: currentColor;
}
.bv-modal .bv-i-minus::after { display: none; }
.bv-modal .bv-i-plus::after { transform: rotate(90deg); }
.bv-modal .bv-i-close { width: 11px; height: 11px; }
.bv-modal .bv-i-close::before, .bv-modal .bv-i-close::after { width: 11px; height: 1.8px; }
.bv-modal .bv-i-close::before { transform: rotate(45deg); }
.bv-modal .bv-i-close::after { transform: rotate(-45deg); }

/* ---------- 1.4.1: »Ni na voljo« in zaščita gumba za plačilo ---------- */
.bv-m-row.is-na { min-height: 56px; }
.bv-m-row.is-na .bv-m-cat strong, .bv-m-row.is-na .bv-m-cat small { color: var(--bv-label2); }
.bv-m-row.is-na .bv-vip-tag { opacity: 0.55; }
.bv-m-na { font-size: 0.9rem; font-weight: 500; color: var(--bv-label2); white-space: nowrap; }
.bv-group-vip.is-na { background: #fff; box-shadow: none; }

.bv-modal .bv-m-pay,
.bv-root .bv-btn {
	font-family: var(--bv-font) !important;
	text-transform: none !important;
	letter-spacing: -0.01em !important;
	text-shadow: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.bv-modal .bv-m-pay {
	min-height: 50px !important;
	padding: 0 18px !important;
	border-radius: 14px !important;
	background: var(--bv-accent) !important;
	color: #111 !important;
	font-size: 1.02rem !important;
	font-weight: 600 !important;
	line-height: 1.1 !important;
	opacity: 1 !important;
}
.bv-modal .bv-m-pay:disabled {
	background: rgba(118, 118, 128, 0.14) !important;
	color: rgba(60, 60, 67, 0.45) !important;
	cursor: default !important;
}
.bv-root .bv-btn.is-disabled { background: var(--bv-fill) !important; color: var(--bv-label3) !important; }
.bv-modal .bv-m-pay.is-loading { opacity: 0.7 !important; cursor: progress !important; }

/* ============================================================
 * 1.4.3 – zaščita slik pred slogi teme in graditeljev strani.
 * Elementor, Divi, Astra ipd. imajo pravila, kot je ».elementor img { height:auto; max-width:100% }«,
 * ki so močnejša od naših razredov – grb nasprotnika se zato raztegne na naravno velikost.
 * ============================================================ */
.bv-root img, .bv-modal img {
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	float: none !important;
	vertical-align: middle;
}
.bv-root img.bv-logo { display: inline-block !important; width: auto !important; height: 28px !important; max-width: 30px !important; max-height: 28px !important; object-fit: contain !important; flex: none !important; border-radius: 0 !important; box-shadow: none !important; }
.bv-root img.bv-chip-logo { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; object-fit: contain !important; flex: none !important; }
.bv-root img.bv-hero-logo { display: block !important; width: 58px !important; height: auto !important; max-width: 58px !important; max-height: none !important; flex: none !important; }
.bv-root .bv-flip img { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 4.2% / 6.6% !important; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 255, 255, 0.14) !important; }
.bv-modal .bv-m-logo img { display: block !important; width: auto !important; height: 72px !important; max-width: 72px !important; max-height: 72px !important; object-fit: contain !important; }
.bv-modal img.bv-m-card { display: block !important; width: 108px !important; height: auto !important; max-width: 108px !important; max-height: none !important; flex: none !important; border-radius: 7px !important; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5) !important; }
@media (max-width: 640px) {
	.bv-root img.bv-hero-logo { width: 44px !important; max-width: 44px !important; }
}
@media (max-width: 420px) {
	.bv-modal .bv-m-logo img { height: 60px !important; max-width: 60px !important; max-height: 60px !important; }
	.bv-modal img.bv-m-card { width: 84px !important; max-width: 84px !important; }
}
/* Graditelji strani včasih dodajo <p> in <br> okrog kratke kode (wpautop). */
.bv-root br { display: none; }
.bv-root > p:empty, .bv-root p:empty { display: none !important; }

/* 1.5 – nakazilo (UPN QR) v oknu za nakup */
.bv-modal .bv-pm[hidden] { display: none !important; }
.bv-modal .bv-m-pm-note { margin: 8px 4px 0 !important; padding: 10px 12px; border-radius: 12px; background: #fff4d6; color: #5c4300; font-size: 0.84rem; line-height: 1.4; }
.bv-modal .bv-m-pm-note[hidden] { display: none !important; }

/* 1.5.3 – načini plačila »Kmalu na voljo« */
.bv-modal .bv-pm.is-soon { cursor: default; }
.bv-modal .bv-pm.is-soon .bv-pm-main strong, .bv-modal .bv-pm.is-soon .bv-pm-main small { color: var(--bv-label3) !important; }
.bv-modal .bv-pm.is-soon .bv-pm-badges, .bv-modal .bv-pm.is-soon .bv-radio { opacity: 0.4; }
.bv-modal .bv-pm-soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #5c4300; font-size: 0.7rem; font-style: normal; font-weight: 600; letter-spacing: 0; vertical-align: 2px; }

/* 1.6 – račun na podjetje */
.bv-modal .bv-bill { margin-top: 10px; }
.bv-bill-fields { position: relative; }
.bv-bill-fields::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--bv-sep); }
.bv-bill-fields[hidden] { display: none !important; }
