.sfb-button,
.sfb-panel,
.sfb-panel *,
.sfb-modal,
.sfb-modal * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sfb-button {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	border: 1px solid #246b5f;
	border-radius: 999px;
	padding: 8px 14px 8px 8px;
	background: #246b5f;
	color: #fff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.sfb-button span {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	font-size: 18px;
	line-height: 1;
}

.sfb-button strong {
	display: inline-block;
	line-height: 1;
}

.sfb-modal[hidden] {
	display: none;
}

.sfb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 18px;
}

.sfb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 41, 51, 0.62);
	backdrop-filter: blur(2px);
}

.sfb-panel {
	position: relative;
	display: grid;
	gap: 14px;
	width: min(560px, 100%);
	max-height: min(90vh, 760px);
	overflow: auto;
	border: 1px solid #d8dde3;
	border-left: 6px solid #246b5f;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	color: #1f2933;
}

.sfb-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.sfb-head span {
	color: #246b5f;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.sfb-head h2,
.sfb-head p {
	margin: 0;
}

.sfb-head h2 {
	margin-top: 4px;
	font-size: 24px;
	line-height: 1.15;
}

.sfb-head p {
	margin-top: 6px;
	color: #52616f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.sfb-close {
	flex: 0 0 auto;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid #c8d0d8;
	border-radius: 6px;
	background: #f8fafb;
	color: #1f2933;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.sfb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sfb-field {
	display: grid;
	gap: 6px;
	min-width: 0;
	color: #1f2933;
	font-size: 13px;
	font-weight: 800;
}

.sfb-field input,
.sfb-field select,
.sfb-field textarea {
	width: 100%;
	min-height: 42px;
	border: 1px solid #c8d0d8;
	border-radius: 6px;
	padding: 9px 10px;
	background: #fff;
	color: #1f2933;
	font: inherit;
}

.sfb-field textarea {
	resize: vertical;
	line-height: 1.45;
}

.sfb-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	border: 1px solid #edf0f3;
	border-radius: 6px;
	padding: 10px;
	background: #f8fafb;
	color: #52616f;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.sfb-check input {
	margin-top: 2px;
}

.sfb-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.sfb-message {
	color: #52616f;
	font-size: 13px;
	font-weight: 800;
}

.sfb-message[data-type="success"] {
	color: #246b5f;
}

.sfb-message[data-type="error"] {
	color: #b42318;
}

.sfb-submit {
	min-height: 42px;
	border: 1px solid #246b5f;
	border-radius: 6px;
	padding: 10px 14px;
	background: #246b5f;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.sfb-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

body.sfb-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.sfb-button {
		right: 12px;
		bottom: 12px;
		padding-right: 10px;
	}

	.sfb-button strong {
		display: none;
	}

	.sfb-grid {
		grid-template-columns: 1fr;
	}

	.sfb-panel {
		padding: 14px;
	}

	.sfb-actions {
		align-items: stretch;
	}

	.sfb-submit {
		width: 100%;
	}
}
