/**
 * Beeldbank front-end — Digital Asset Management design.
 *
 * Everything is scoped under .bb-app (and the bb- prefix) so the host theme is
 * never affected. Visual language: Manrope, slate palette, configurable accent
 * (default warm orange) via the --accent custom property set on .bb-app.
 */

/* Self-hosted Manrope (variable font, latin + latin-ext) — no external request. */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url( 'fonts/manrope-latin-ext.woff2' ) format( 'woff2' );
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url( 'fonts/manrope-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.bb-app {
	--accent: #ea580c;
	--cols: 4;
	--bb-ink: #0f172a;
	--bb-muted: #94a3b8;
	--bb-slate: #475569;
	--bb-line: #e8ebf1;
	--bb-line2: #e2e6ec;
	--bb-chip: #f1f5f9;
	box-sizing: border-box;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--bb-ink);
	background: #f4f6f9;
	-webkit-font-smoothing: antialiased;
}

.bb-app *,
.bb-app *::before,
.bb-app *::after {
	box-sizing: border-box;
}

.bb-app button {
	font-family: inherit;
}

.bb-app ::placeholder {
	color: #64748b;
	opacity: 1;
}

/* Custom scrollbar inside scrollable panes. */
.bb-scroll::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
.bb-scroll::-webkit-scrollbar-thumb {
	background: #d6dbe3;
	border-radius: 8px;
	border: 2px solid #f1f5f9;
}

/* ===== Top search bar ===== */
.bb-top {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	padding: 0 28px;
	background: rgba( 255, 255, 255, .86 );
	backdrop-filter: saturate( 160% ) blur( 10px );
	border-bottom: 1px solid #e6e9ef;
}

.bb-top__wrap {
	width: 100%;
	max-width: 720px;
	position: relative;
}

.bb-top__icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY( -50% );
	z-index: 1;
	display: inline-flex;
	color: #64748b;
	pointer-events: none;
}

/* Scoped + enforced so the host theme's input styles can't override the
   layout (padding/icon overlap), the rounded corners, or the colours. */
.bb-app input.bb-top__input {
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 20px 0 52px !important;
	border: 1px solid var(--bb-line2) !important;
	border-radius: 13px !important;
	background: #f7f9fb !important;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 500;
	line-height: normal;
	color: var(--bb-ink) !important;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

.bb-app input.bb-top__input::placeholder {
	color: #64748b !important;
	opacity: 1 !important;
}

.bb-app input.bb-top__input:focus {
	border-color: var(--accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba( 15, 23, 42, .08 ) !important;
}

/* ===== Main ===== */
.bb-main {
	max-width: 1440px;
	margin: 0 auto;
	padding: 30px 28px 64px;
}

/* ===== Overview layout ===== */
.bb-overview {
	display: grid;
	grid-template-columns: 256px 1fr;
	gap: 28px;
	align-items: start;
}

.bb-rail {
	position: sticky;
	top: 128px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-rail__card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 16px;
}

.bb-rail__card--nav {
	padding: 10px;
}

.bb-rail__heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #94a3b8;
}

.bb-rail__headrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 13px;
}

.bb-collection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 10px;
	border: none;
	border-radius: 9px;
	background: transparent;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--bb-slate);
	cursor: pointer;
	transition: background .15s;
}

.bb-collection:hover {
	background: #f8fafc;
}

.bb-collection.is-active {
	background: #f1f5f9;
	color: var(--bb-ink);
}

.bb-collection__count {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
}

.bb-clear {
	border: none;
	background: none;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
}

.bb-tagfilters {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.bb-tagchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px 6px 12px;
	border: 1px solid #e6e9ef;
	border-radius: 999px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	color: var(--bb-slate);
	cursor: pointer;
	transition: all .15s;
}

.bb-tagchip:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.bb-tagchip.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.bb-tagmore {
	margin-top: 11px;
	border: none;
	background: none;
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
}

.bb-tagchip__count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	background: #f1f5f9;
	color: #94a3b8;
}

.bb-tagchip.is-active .bb-tagchip__count {
	background: rgba( 255, 255, 255, .22 );
	color: #fff;
}

/* ===== Toolbar ===== */
.bb-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.bb-count {
	font-size: 14px;
	font-weight: 600;
	color: var(--bb-slate);
}

.bb-count strong {
	color: var(--bb-ink);
	font-weight: 800;
}

.bb-toolbar__right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bb-viewtoggle {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--bb-line2);
	border-radius: 10px;
	background: #f1f5f9;
}

.bb-viewbtn {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	transition: all .15s;
}

.bb-viewbtn.is-active {
	background: #fff;
	color: var(--bb-ink);
	box-shadow: 0 1px 3px rgba( 15, 23, 42, .12 );
}

.bb-toolbar__divider {
	width: 1px;
	height: 24px;
	background: #e6e9ef;
}

.bb-sortlabel {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	white-space: nowrap;
}

.bb-sortwrap {
	position: relative;
}

.bb-sortwrap select {
	appearance: none;
	-webkit-appearance: none;
	height: 38px;
	padding: 0 36px 0 14px;
	border: 1px solid var(--bb-line2);
	border-radius: 10px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 700;
	color: #334155;
	line-height: 1.4;
	cursor: pointer;
	outline: none;
}

.bb-sortwrap svg {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY( -50% );
	pointer-events: none;
	color: #64748b;
}

/* ===== Grid cards ===== */
.bb-cards {
	display: grid;
	grid-template-columns: repeat( var(--cols, 4), minmax( 0, 1fr ) );
	gap: 20px;
}

.bb-card {
	display: block;
	width: 100%;
	padding: 0;
	text-align: left;
	background: #e8ebf1;
	border: none;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, .06 );
	transition: box-shadow .2s, transform .2s;
}

.bb-card:hover {
	box-shadow: 0 16px 36px -16px rgba( 15, 23, 42, .32 );
	transform: translateY( -3px );
}

.bb-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8ebf1;
}

.bb-card__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform .4s cubic-bezier( .4, 0, .2, 1 );
}

.bb-card:hover .bb-card__img {
	transform: scale( 1.06 );
}

.bb-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 14px;
	background: linear-gradient( to top, rgba( 15, 23, 42, .78 ) 0%, rgba( 15, 23, 42, .18 ) 45%, transparent 70% );
	opacity: 0;
	transition: opacity .22s ease;
}

.bb-card:hover .bb-card__overlay {
	opacity: 1;
}

.bb-card__cta {
	margin-top: 5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba( 255, 255, 255, .82 );
	font-size: 12px;
	font-weight: 600;
}

/* Cursor-following title tooltip (lives on <body>, follows the viewport). */
.foto-tooltip {
	position: fixed;
	z-index: 100000;
	pointer-events: none;
	display: none;
	max-width: 280px;
	padding: 8px 12px;
	border-radius: 9px;
	background: rgba( 15, 23, 42, .94 );
	color: #fff;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	box-shadow: 0 10px 30px -8px rgba( 15, 23, 42, .5 );
	white-space: normal;
	overflow-wrap: break-word;
}

/* ===== List rows ===== */
.bb-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bb-row {
	display: grid;
	grid-template-columns: 84px 1fr auto;
	align-items: center;
	gap: 18px;
	width: 100%;
	padding: 10px 16px 10px 10px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, .04 );
	transition: box-shadow .18s, background .18s;
}

.bb-row:hover {
	box-shadow: 0 10px 26px -16px rgba( 15, 23, 42, .3 );
	background: #fbfcfd;
}

.bb-row__thumb {
	width: 84px;
	height: 60px;
	flex: none;
	border-radius: 9px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba( 15, 23, 42, .06 );
}

.bb-row__body {
	min-width: 0;
}

.bb-row__titlerow {
	display: flex;
	align-items: center;
	gap: 9px;
}

.bb-row__title {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--bb-ink);
	letter-spacing: -.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bb-badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 6px;
	background: #f1f5f9;
	border: 1px solid #e6e9ef;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .03em;
	color: #64748b;
}

.bb-row__meta {
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #94a3b8;
}

.bb-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #cbd5e1;
}

.bb-row__right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}

.bb-row__size {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
}

/* ===== Empty state ===== */
.bb-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 80px 20px;
	background: #fff;
	border: 1px dashed #d6dbe3;
	border-radius: 16px;
	text-align: center;
}

.bb-empty__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #f1f5f9;
	display: grid;
	place-items: center;
	color: #94a3b8;
}

.bb-empty__title {
	font-size: 16px;
	font-weight: 700;
	color: #334155;
}

.bb-empty__sub {
	font-size: 13.5px;
	font-weight: 500;
	color: #94a3b8;
}

.bb-empty__btn,
.bb-loadmore {
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--bb-line2);
	border-radius: 10px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	transition: background .15s;
}

.bb-empty__btn:hover,
.bb-loadmore:hover {
	background: #f8fafc;
}

.bb-loadmore {
	display: block;
	margin: 24px auto 0;
}

.bb-loadmore[hidden] {
	display: none;
}

/* ===== Detail ===== */
.bb-detail-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.bb-detail-nav__right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bb-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: none;
	padding: 6px 4px;
	font-size: 13.5px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	transition: color .15s;
}

.bb-back:hover:not( :disabled ) {
	color: var(--accent);
}

.bb-back:disabled,
.bb-back.is-disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

.bb-back {
	text-decoration: none;
}

.bb-detail {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 400px;
	gap: 28px;
	align-items: start;
}

.bb-stagewrap {
	position: relative;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 18px;
	overflow: hidden;
}

.bb-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 560px;
	/* Asymmetric room for the drop-shadow (≈16px up, 40px sides, 64px down)
	   so it's never clipped by overflow:hidden — esp. for landscape photos. */
	padding: 40px 60px 76px;
	overflow: hidden;
	touch-action: none;
	background: radial-gradient( 120% 120% at 50% 40%, #fbfcfd 0%, #eef1f5 100% );
}

.bb-stage__img {
	/* vh-based bound always resolves (a % max-height isn't reliably clamped in
	   a flex/grid parent), so portrait photos fit fully. Stage grows to fit. */
	max-width: 100%;
	max-height: 78vh;
	border-radius: 6px;
	box-shadow: 0 24px 60px -20px rgba( 15, 23, 42, .4 );
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.bb-zoom {
	position: absolute;
	right: 18px;
	top: 16px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	border-radius: 12px;
	background: rgba( 255, 255, 255, .92 );
	backdrop-filter: blur( 8px );
	border: 1px solid var(--bb-line);
	box-shadow: 0 6px 20px -8px rgba( 15, 23, 42, .25 );
}

.bb-zoom__btn {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	color: #334155;
	transition: background .15s;
}

.bb-zoom__btn:hover {
	background: #f1f5f9;
}

.bb-zoom__pct {
	min-width: 52px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	font-variant-numeric: tabular-nums;
}

.bb-zoom__divider {
	width: 1px;
	height: 22px;
	background: var(--bb-line2);
	margin: 0 3px;
}

.bb-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-info__card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 18px;
	padding: 24px;
}

.bb-info__cat {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 11px;
	margin-bottom: 14px;
	border-radius: 7px;
	background: color-mix( in srgb, var(--accent) 12%, #fff );
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .01em;
}

.bb-info__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.25;
}

.bb-info__sub {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
}

.bb-info__desc {
	margin: 16px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--bb-slate);
}

.bb-info__divider {
	height: 1px;
	background: #eef1f5;
	margin: 20px 0;
}

.bb-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 14px;
}

.bb-meta__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #94a3b8;
	margin-bottom: 4px;
}

.bb-meta__value {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	word-break: break-word;
}

.bb-info__tagshead {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #94a3b8;
	margin-bottom: 10px;
}

.bb-info__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.bb-tagpill {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: 8px;
	background: #f1f5f9;
	border: 1px solid #e6e9ef;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--bb-slate);
}

.bb-actions {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 18px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bb-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 48px;
	border: none;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba( 15, 23, 42, .4 );
	transition: filter .15s;
}

.bb-btn-primary:hover {
	filter: brightness( 1.07 );
	color: #fff;
}

.bb-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 44px;
	border: 1px solid var(--bb-line2);
	border-radius: 11px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	transition: background .15s;
}

.bb-btn-secondary:hover {
	background: #f8fafc;
}

/* ===== Fullscreen (lightbox) overlay ===== */
.bb-noscroll {
	overflow: hidden;
}

.bb-fs {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba( 8, 11, 18, .94 );
}

.bb-fs.is-open {
	display: flex;
}

.bb-fs__img {
	max-width: 96vw;
	max-height: 92vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 30px 80px -20px rgba( 0, 0, 0, .7 );
}

.bb-fs__close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .14 );
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}

.bb-fs__close:hover {
	background: rgba( 255, 255, 255, .28 );
}

/* ===== Status / loading ===== */
.bb-status {
	padding: 40px 20px;
	text-align: center;
	font-size: 14px;
	color: #94a3b8;
}

/* ===== Responsive ===== */
@media ( max-width: 880px ) {
	.bb-overview {
		grid-template-columns: 1fr;
	}
	.bb-rail {
		position: static;
		order: 2;
	}
	.bb-content {
		order: 1;
	}
	.bb-detail {
		grid-template-columns: 1fr;
	}
	.bb-stage {
		min-height: 0;
		padding: 16px 24px 44px;
	}
	.bb-stage__img {
		max-height: 62vh;
	}
}

@media ( max-width: 620px ) {
	.bb-cards {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) ) !important;
	}
	.bb-toolbar {
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.bb-top {
		height: 84px;
		padding: 0 16px;
	}
	.bb-main {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media ( max-width: 420px ) {
	.bb-cards {
		grid-template-columns: 1fr !important;
	}
}

/* ===== Upload form ([beeldbank_upload]) ===== */
.bb-uploadapp .bb-main {
	max-width: 760px;
}

.bb-upload__card {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 16px;
	padding: 34px 36px 38px;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, .05 );
}

.bb-upload__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
}

.bb-upload__intro {
	margin: 0 0 22px;
	color: #475569;
}

.bb-upload__label {
	display: block;
	margin: 18px 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #64748b;
}

.bb-app .bb-upload__input {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 14px !important;
	border: 1px solid var(--bb-line2) !important;
	border-radius: 10px !important;
	background: #f7f9fb !important;
	font-family: inherit;
	font-size: 15px;
}

.bb-app .bb-upload__input:focus {
	border-color: var(--accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba( 15, 23, 42, .08 ) !important;
	outline: none;
}

.bb-upload__textarea {
	resize: vertical;
	min-height: 96px;
}

/* Native file input: visually hidden but keyboard-reachable; the styled
   button below triggers it so the UI text stays Dutch (the browser's own
   "Choose files" label cannot be translated). */
.bb-upload__file-native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.bb-upload__filebtn {
	display: block;
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--bb-slate);
	background: #f8fafc;
	border: 1.5px dashed #94a3b8;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}

.bb-upload__filebtn:hover,
.bb-upload__file-native:focus + .bb-upload__filebtn {
	border-color: var(--accent);
	color: var(--accent);
}

.bb-upload__filelist {
	margin-top: 6px;
	font-size: 13px;
	color: #64748b;
	min-height: 18px;
}

.bb-upload__consent {
	margin: 20px 0 4px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid var(--bb-line);
	border-radius: 10px;
}

.bb-upload__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
}

.bb-upload__check input {
	margin-top: 3px;
	accent-color: var(--accent);
}

.bb-upload__consenttext {
	margin-top: 8px;
}

.bb-upload__consenttext summary {
	cursor: pointer;
	font-size: 13px;
	color: var(--accent);
}

.bb-upload__consenttext p {
	margin: 8px 0 0;
	font-size: 13px;
	color: #475569;
}

.bb-upload__sigwrap {
	position: relative;
}

.bb-upload__sig {
	display: block;
	width: 100%;
	height: 180px;
	background: #fff;
	border: 1px dashed #94a3b8;
	border-radius: 10px;
	cursor: crosshair;
	touch-action: none;
}

.bb-upload__sigclear {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 4px 12px;
	font-family: inherit;
	font-size: 12.5px;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid var(--bb-line2);
	border-radius: 8px;
	cursor: pointer;
}

.bb-upload__sigclear:hover {
	color: var(--accent);
}

.bb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bb-upload__msg {
	min-height: 20px;
	margin: 14px 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.bb-upload__msg.is-error {
	color: #b91c1c;
}

.bb-upload__msg.is-ok {
	color: #15803d;
}

.bb-upload__submit {
	width: 100%;
	margin-top: 10px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 15.5px;
}

.bb-upload__submit:disabled {
	opacity: .6;
	cursor: default;
}

@media ( max-width: 620px ) {
	.bb-upload__card {
		padding: 24px 20px 28px;
	}
}
