.fbw-widget {
	--fbw-border: #e5e5e5;
	--fbw-text: #171717;
	--fbw-muted: #737373;
	--fbw-brand: #0387d4;
	--fbw-bg: #ffffff;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 12px;
	background: var(--fbw-bg);
	border: 1px solid var(--fbw-border);
	color: var(--fbw-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.fbw-widget *,
.fbw-widget *::before,
.fbw-widget *::after {
	box-sizing: border-box;
}

.fbw-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
}

.fbw-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.fbw-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 180px;
}

.fbw-field-type {
	flex: 1 1 140px;
}

.fbw-field[hidden] {
	display: none;
}

.fbw-field label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--fbw-muted);
}

.fbw-field select,
.fbw-field input {
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--fbw-border);
	border-radius: 0;
	background: #fff;
	color: var(--fbw-text);
	font: inherit;
}

.fbw-field select:focus,
.fbw-field input:focus {
	outline: 1px solid var(--fbw-brand);
	border-color: var(--fbw-brand);
}

.fbw-datetime {
	display: flex;
	gap: 4px;
}

.fbw-datetime input[type="date"] {
	flex: 1.25 1 0;
	min-width: 0;
}

.fbw-datetime input[type="time"] {
	flex: 1 1 0;
	min-width: 5.5rem;
	padding: 0 6px;
}

.fbw-datetime input[readonly] {
	background: #fafafa;
	color: var(--fbw-muted);
}

.fbw-status {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--fbw-muted);
}

.fbw-results {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 10px;
}

@media (min-width: 560px) {
	.fbw-results {
		grid-template-columns: 1fr 1fr;
	}
}

.fbw-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: stretch;
	min-height: 88px;
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--fbw-border);
	background: #fff;
	color: inherit;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.fbw-card:hover,
.fbw-card:focus {
	border-color: var(--fbw-brand);
	outline: none;
}

.fbw-card-media {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.fbw-widget .fbw-card-media img,
.fbw-widget .fbw-card-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	object-fit: cover;
	object-position: center;
}

.fbw-card-image.is-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a3a3a3;
	font-size: 11px;
}

.fbw-card-body {
	min-width: 0;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fbw-card-name {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fbw-card-meta {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--fbw-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
