.fbk-app,
.fbk-modal {
	--fbk-available: #e8f3ea;
	--fbk-available-border: #c2e0c8;
	--fbk-available-hover: #d3ead7;
	--fbk-pending: #fdf3d6;
	--fbk-pending-border: #f0d98a;
	--fbk-booked: #2f6f4e;
	--fbk-booked-border: #255b40;
	--fbk-text: #2c2c2c;
	--fbk-muted: #9aa0a6;
	--fbk-line: #e2e4e7;
	--fbk-accent: #2f6f4e;
	font-family: inherit;
	color: var(--fbk-text);
}
.fbk-app {
	max-width: 980px;
	margin: 0 auto;
}

.fbk-legend {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.fbk-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.fbk-dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid; }
.fbk-dot-available { background: var(--fbk-available); border-color: var(--fbk-available-border); }
.fbk-dot-pending { background: var(--fbk-pending); border-color: var(--fbk-pending-border); }
.fbk-dot-booked { background: var(--fbk-booked); border-color: var(--fbk-booked-border); }

.fbk-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.fbk-nav-label { font-size: 1.25rem; font-weight: 600; min-width: 200px; text-align: center; }
.fbk-nav-btn {
	background: var(--fbk-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.fbk-nav-btn:hover { opacity: 0.85; }

.fbk-calendars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}
.fbk-loading { text-align: center; color: var(--fbk-muted); grid-column: 1 / -1; }

.fbk-cal {
	border: 1px solid var(--fbk-line);
	border-radius: 12px;
	padding: 1rem;
	background: #fff;
}
.fbk-cal-title {
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--fbk-accent);
}

.fbk-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.fbk-grid-head {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--fbk-muted);
	padding-bottom: 0.25rem;
}

.fbk-cell {
	position: relative;
	min-height: 52px;
	border-radius: 7px;
	padding: 4px;
	font-size: 0.85rem;
	border: 1px solid transparent;
	overflow: hidden;
}
.fbk-cell-empty { background: transparent; }
.fbk-cell-num { font-weight: 600; }

.fbk-cell-available {
	background: var(--fbk-available);
	border-color: var(--fbk-available-border);
	cursor: pointer;
	transition: background 0.12s ease;
}
.fbk-cell-available:hover { background: var(--fbk-available-hover); }
.fbk-cell-available:focus-visible { outline: 2px solid var(--fbk-accent); outline-offset: 1px; }

.fbk-cell-pending {
	background: var(--fbk-pending);
	border-color: var(--fbk-pending-border);
}
.fbk-cell-booked {
	background: var(--fbk-booked);
	border-color: var(--fbk-booked-border);
	color: #ffffff;
}
.fbk-cell-past { background: #f4f5f6; color: var(--fbk-muted); }

.fbk-cell-name {
	display: block;
	font-size: 0.68rem;
	line-height: 1.15;
	margin-top: 2px;
	font-weight: 600;
	word-break: break-word;
}

/* Modal */
.fbk-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.fbk-modal[hidden] { display: none; }
.fbk-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.fbk-modal-box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: 1.75rem;
	width: 92%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.fbk-modal-x {
	position: absolute; top: 10px; right: 14px;
	background: none; border: none; font-size: 1.6rem; line-height: 1;
	cursor: pointer; color: var(--fbk-muted);
}
.fbk-modal-title { margin: 0 0 1rem; font-size: 1.15rem; color: var(--fbk-accent); }
.fbk-field { margin: 0 0 0.85rem; }
.fbk-field label { font-size: 0.9rem; font-weight: 600; }
.fbk-field input, .fbk-field textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--fbk-line);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	box-sizing: border-box;
	margin-top: 3px;
}
.fbk-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.fbk-form-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.fbk-btn {
	border: 1px solid var(--fbk-line);
	background: #f3f4f5;
	border-radius: 8px;
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	cursor: pointer;
	font-family: inherit;
}
.fbk-btn-primary,
.fbk-modal .fbk-btn-primary {
	background: #2f6f4e !important;
	color: #ffffff !important;
	border-color: #2f6f4e !important;
}
.fbk-btn-primary:hover { background: #255b40 !important; }
.fbk-btn-primary:disabled { opacity: 0.6; cursor: default; }

.fbk-form-msg { margin: 0.5rem 0; font-size: 0.9rem; }
.fbk-form-msg-ok { color: #1f7a3d; font-weight: 600; }
.fbk-form-msg-error { color: #c0392b; font-weight: 600; }

body.fbk-modal-open { overflow: hidden; }

@media (max-width: 600px) {
	.fbk-cell { min-height: 46px; font-size: 0.8rem; }
	.fbk-nav-label { font-size: 1.05rem; min-width: 150px; }
}

/* 7-dagarswidget */
.fbk-week {
	--fbk-available: #e8f3ea;
	--fbk-available-border: #c2e0c8;
	--fbk-pending: #fdf3d6;
	--fbk-pending-border: #f0d98a;
	--fbk-booked: #fbe1e1;
	--fbk-booked-border: #eeb4b4;
	--fbk-accent: #2f6f4e;
	font-family: inherit;
	border: 1px solid #e2e4e7;
	border-radius: 12px;
	padding: 1rem;
	max-width: 340px;
	background: #fff;
}
.fbk-week-title {
	text-align: center;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fbk-accent);
	margin-bottom: 0.75rem;
}
.fbk-week-list { list-style: none; margin: 0; padding: 0; }
.fbk-week-day {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0.7rem;
	border-radius: 7px;
	margin-bottom: 4px;
	font-size: 0.9rem;
	border: 1px solid transparent;
}
.fbk-week-date { font-weight: 600; text-transform: capitalize; }
.fbk-week-status { font-size: 0.8rem; font-weight: 600; }
.fbk-week-available { background: var(--fbk-available); border-color: var(--fbk-available-border); }
.fbk-week-pending { background: var(--fbk-pending); border-color: var(--fbk-pending-border); }
.fbk-week-booked { background: var(--fbk-booked); border-color: var(--fbk-booked-border); }
.fbk-week-btn {
	display: block;
	text-align: center;
	margin-top: 0.85rem;
	background: var(--fbk-accent);
	color: #fff !important;
	text-decoration: none;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	transition: opacity 0.15s ease;
}
.fbk-week-btn:hover { opacity: 0.88; }
.fbk-week-nourl { font-size: 0.82rem; color: #9aa0a6; text-align: center; margin-top: 0.75rem; }

/* ---- 7-dagarswidget ---- */
.fbk-week {
	--fbk-available: #e8f3ea;
	--fbk-available-border: #c2e0c8;
	--fbk-pending: #fdf3d6;
	--fbk-pending-border: #f0d98a;
	--fbk-booked: #fbe1e1;
	--fbk-booked-border: #eeb4b4;
	--fbk-accent: #2f6f4e;
	font-family: inherit;
	border: 1px solid #e2e4e7;
	border-radius: 12px;
	padding: 1rem;
	max-width: 360px;
	background: #fff;
	color: #2c2c2c;
}
.fbk-week-title { text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--fbk-accent); margin-bottom: 0.75rem; }
.fbk-week-list { list-style: none; margin: 0; padding: 0; }
.fbk-week-day {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.5rem 0.7rem; border-radius: 7px; margin-bottom: 4px;
	border: 1px solid transparent; font-size: 0.92rem;
}
.fbk-week-date { font-weight: 600; text-transform: capitalize; }
.fbk-week-status { font-size: 0.82rem; }
.fbk-week-available { background: var(--fbk-available); border-color: var(--fbk-available-border); }
.fbk-week-pending { background: var(--fbk-pending); border-color: var(--fbk-pending-border); }
.fbk-week-booked { background: var(--fbk-booked); border-color: var(--fbk-booked-border); }
.fbk-week-btn {
	display: block; text-align: center; margin-top: 0.85rem;
	background: var(--fbk-accent); color: #fff; text-decoration: none;
	padding: 0.65rem 1rem; border-radius: 8px; font-weight: 600;
}
.fbk-week-btn:hover { opacity: 0.9; color: #fff; }
.fbk-week-nourl { font-size: 0.85rem; color: #9aa0a6; text-align: center; margin-top: 0.75rem; }

/* ---- Pausad bokning ---- */
.fbk-paused-banner {
	background: #fff4e5;
	border: 1px solid #f0c98a;
	color: #8a5a00;
	border-radius: 10px;
	padding: 0.85rem 1.1rem;
	margin-bottom: 1rem;
	text-align: center;
	font-weight: 600;
}
.fbk-cell-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}
.fbk-cell-disabled:hover { background: var(--fbk-available); }
.fbk-week-paused {
	margin-top: 0.85rem;
	background: #fff4e5;
	border: 1px solid #f0c98a;
	color: #8a5a00;
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	font-size: 0.85rem;
	text-align: center;
}
