.ccss-survey {
	box-sizing: border-box;
	margin: 24px 0;
	padding: 16px;
	border: 1px solid #cfd8dc;
	border-radius: 8px;
	background: #fff;
	color: #172026;
	font-size: 16px;
	line-height: 1.6;
}

.ccss-survey * {
	box-sizing: border-box;
}

.ccss-survey .ccss-survey-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.ccss-survey .ccss-question-legend {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #111827 !important;
	font-weight: 700 !important;
	font-size: clamp(20px, 5vw, 26px) !important;
	line-height: 1.4 !important;
}

.ccss-sticky-panel .ccss-survey .ccss-question-legend {
	font-size: clamp(19px, 4.8vw, 23px) !important;
}

.ccss-survey .ccss-question-text {
	text-decoration-line: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px !important;
	text-decoration-skip-ink: auto;
}

.ccss-survey .ccss-survey-lead,
.ccss-survey .ccss-cookie-note,
.ccss-survey .ccss-trademark-note {
	margin: 8px 0;
}

.ccss-survey .ccss-survey-lead {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

.ccss-survey .ccss-cookie-note,
.ccss-survey .ccss-trademark-note {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.ccss-choice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.ccss-answer-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #78909c;
	border-radius: 6px;
	background: #f8fafc;
	color: #172026;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
}

.ccss-answer-button:hover,
.ccss-answer-button:focus {
	border-color: #0f766e;
	background: #ecfdf5;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

.ccss-answer-button:disabled {
	cursor: default;
	opacity: 0.62;
}

.ccss-response-message {
	min-height: 1.6em;
	margin-top: 10px;
	color: #166534;
	font-weight: 700;
}

.ccss-sticky-banner {
	position: fixed;
	right: calc(16px + env(safe-area-inset-right));
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 9999;
	width: min(420px, calc(100vw - 24px));
	max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	color: #172026;
	font-size: 15px;
}

.ccss-sticky-shell {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.ccss-sticky-trigger,
.ccss-sticky-close,
.ccss-sticky-panel-close,
.ccss-sticky-hide-forever {
	border: 1px solid #334155;
	border-radius: 6px;
	background: #fff;
	color: #172026;
	font: inherit;
	cursor: pointer;
}

.ccss-sticky-trigger {
	min-height: 42px;
	padding: 8px 12px;
	background: #0f766e;
	color: #fff;
	font-weight: 700;
}

.ccss-sticky-close {
	min-height: 42px;
	padding: 8px 10px;
}

.ccss-sticky-panel {
	margin-top: 8px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.ccss-sticky-panel:not([hidden]) {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	max-height: calc(100dvh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	overflow: hidden;
}

.ccss-sticky-panel .ccss-survey {
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
}

.ccss-sticky-actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	padding: 10px;
	border: 1px solid #cfd8dc;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	background: #fff;
}

.ccss-sticky-actions-note {
	flex: 1 0 100%;
	margin: 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
	text-align: right;
}

.ccss-sticky-panel-close,
.ccss-sticky-hide-forever {
	min-height: 36px;
	padding: 6px 10px;
}

.ccss-result-shortcode,
.ccss-progress-shortcode,
.ccss-shortcode-message {
	display: block;
	margin: 16px 0;
	padding: 12px;
	border: 1px solid #cfd8dc;
	border-radius: 6px;
	background: #fff;
}

@media (pointer: coarse) {
	.ccss-sticky-panel-close,
	.ccss-sticky-hide-forever,
	.ccss-sticky-close,
	.ccss-sticky-trigger {
		min-height: 44px;
	}
}

@media (max-width: 600px) {
	.ccss-sticky-banner {
		left: calc(8px + env(safe-area-inset-left));
		right: calc(8px + env(safe-area-inset-right));
		bottom: calc(8px + env(safe-area-inset-bottom));
		width: auto;
		max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	}

	.ccss-sticky-shell {
		justify-content: stretch;
	}

	.ccss-sticky-trigger {
		flex: 1 1 auto;
	}

	.ccss-choice-grid {
		grid-template-columns: 1fr;
	}

	.ccss-sticky-panel .ccss-survey {
		padding: 12px;
	}

	.ccss-sticky-actions {
		position: sticky;
		bottom: 0;
		padding: 8px;
		background: #fff;
	}

	.ccss-sticky-actions-note {
		font-size: 12px;
		line-height: 1.3;
		text-align: left;
	}

	.ccss-sticky-panel .ccss-choice-grid {
		gap: 6px;
	}

	.ccss-sticky-panel .ccss-answer-button {
		min-height: 44px;
		padding: 6px 8px;
		font-size: 15px;
	}

	.ccss-sticky-panel .ccss-survey .ccss-cookie-note,
	.ccss-sticky-panel .ccss-survey .ccss-trademark-note {
		font-size: 13px;
		line-height: 1.5;
	}
}

@media (max-height: 600px) {
	.ccss-sticky-panel .ccss-survey {
		padding: 10px;
	}

	.ccss-sticky-panel .ccss-survey .ccss-question-legend {
		font-size: 19px !important;
		line-height: 1.35 !important;
	}

	.ccss-sticky-panel .ccss-survey .ccss-survey-lead,
	.ccss-sticky-panel .ccss-survey .ccss-cookie-note,
	.ccss-sticky-panel .ccss-survey .ccss-trademark-note {
		margin-top: 6px;
		margin-bottom: 6px;
	}

	.ccss-sticky-panel .ccss-choice-grid {
		gap: 6px;
		margin-top: 8px;
	}

	.ccss-sticky-actions {
		padding: 8px;
	}
}
