/* Survei kepuasan (mu-plugin balai-survey). Kotak kecil di kanan bawah, di atas
   widget chat Sociomile; tidak menutupi halaman, jadi pengunjung tetap bisa
   scroll. Di bawah Pop-Up poster (z-index 100000010). */
.bsv{
	position: fixed;
	right: var(--float-side, 24px);
	bottom: calc(var(--float-bottom, 40px) + 150px);
	z-index: 100000005;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 16px 16px 14px;
	background: #fff;
	color: #202020;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(11, 30, 60, 0.22);
	border-top: 4px solid var(--accent-secondary-color, #17B0A7);
	font-family: var(--default-font, "Inter Tight", sans-serif);
	transform: translateX(calc(100% + 40px));
	opacity: 0;
	transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease;
}
.bsv[hidden]{ display: none; }
.bsv.is-open{ transform: translateX(0); opacity: 1; }

.bsv-close{
	position: absolute;
	top: 6px;
	right: 6px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7280;
	font-size: 22px;
	line-height: 30px;
	cursor: pointer;
}
.bsv-close:hover,
.bsv-close:focus-visible{ background: #f1f3f5; color: #202020; }

.bsv-title{
	margin: 0 28px 12px 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #202020;
}

.bsv-faces{
	display: flex;
	justify-content: space-between;
	gap: 4px;
}
.bsv-face{
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	margin: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.bsv-face input{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.bsv-emoji{
	font-size: 28px;
	line-height: 1;
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
	filter: grayscale(0.35);
	transition: filter 0.2s ease, transform 0.2s ease;
}
.bsv-face:hover{ background: #f1f5f9; }
.bsv-face:hover .bsv-emoji{ filter: none; transform: scale(1.12); }
.bsv-face:has(input:focus-visible){ outline: 2px solid var(--accent-color, #0B5CAB); outline-offset: 1px; }
.bsv-face:has(input:checked){ background: #e6f7f6; box-shadow: inset 0 0 0 2px var(--accent-secondary-color, #17B0A7); }
.bsv-face:has(input:checked) .bsv-emoji{ filter: none; transform: scale(1.15); }
.bsv-faces:has(input:checked) .bsv-face:not(:has(input:checked)) .bsv-emoji{ filter: grayscale(1); opacity: 0.55; }

.bsv-sr{
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.bsv-more{ margin-top: 10px; }
.bsv-more[hidden]{ display: none; }
.bsv-picked{
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: var(--accent-color, #0B5CAB);
}
.bsv textarea{
	display: block;
	width: 100%;
	min-height: 58px;
	padding: 8px 10px;
	font: inherit;
	font-size: 13.5px;
	line-height: 1.45;
	color: #202020;
	background: #f8fafc;
	border: 1px solid #d5dbe3;
	border-radius: 10px;
	resize: vertical;
}
.bsv textarea:focus{
	outline: none;
	border-color: var(--accent-secondary-color, #17B0A7);
	background: #fff;
}
.bsv-actions{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}
.bsv-note{
	margin: 0;
	font-size: 11.5px;
	line-height: 1.35;
	color: #6b7280;
}
.bsv-send{
	flex: 0 0 auto;
	padding: 8px 18px;
	border: 0;
	border-radius: 50px;
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--accent-color, #0B5CAB), var(--accent-secondary-color, #17B0A7));
	cursor: pointer;
}
.bsv-send:disabled{ opacity: 0.6; cursor: progress; }

.bsv-status{
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #4b5563;
}
.bsv-status[hidden]{ display: none; }
.bsv-status.is-success{ color: #198754; font-weight: 600; }
.bsv-status.is-error{ color: #DC3545; }
.bsv.is-done .bsv-faces,
.bsv.is-done .bsv-more,
.bsv.is-done .bsv-title{ display: none; }
.bsv.is-done .bsv-status{ margin: 4px 28px 2px 0; font-size: 14px; }

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

@media only screen and (max-width: 767px){
	.bsv{
		right: 16px;
		bottom: calc(var(--float-bottom, 24px) + 130px);
		width: 280px;
	}
	.bsv-emoji{ font-size: 26px; }
}

@media (prefers-reduced-motion: reduce){
	.bsv{ transition: none; }
	.bsv-face, .bsv-emoji{ transition: none; }
}

@media print{
	.bsv{ display: none !important; }
}
