.dsc {
	--dsc-green: #006b3b;
	--dsc-green-dark: #00552f;
	--dsc-cream: #f9f9eb;
	--dsc-text: #1d1d1b;
	--dsc-muted: #55594f;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 20, 0.55);
	overscroll-behavior: contain;
}

.dsc[hidden] {
	display: none;
}

.dsc__box {
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 36px 36px 28px;
	background: #fff;
	color: var(--dsc-text);
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

.dsc__box:focus {
	outline: none;
}

html.dsc-open,
html.dsc-open body {
	overflow: hidden;
}

.dsc *,
.dsc *::before {
	box-sizing: border-box;
}

.dsc__title {
	margin: 0 0 10px;
	font-family: "PP Neue Montreal", Inter, system-ui, sans-serif;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--dsc-text);
}

.dsc__text {
	margin: 0 0 22px;
	color: var(--dsc-muted);
}

.dsc__text a {
	color: var(--dsc-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dsc__panel {
	margin: 0 0 16px;
	border-top: 1px solid #ecece4;
}

.dsc__panel[hidden] {
	display: none;
}

.dsc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #ecece4;
	cursor: pointer;
}

.dsc__row strong {
	display: block;
	font-weight: 600;
	color: var(--dsc-text);
}

.dsc__row small {
	display: block;
	font-size: 13px;
	color: var(--dsc-muted);
}

.dsc__row input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	position: relative;
	width: 40px;
	height: 24px;
	margin: 0;
	border-radius: 999px;
	background: #cfd1c9;
	cursor: pointer;
	transition: background 0.15s;
}

.dsc__row input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s;
}

.dsc__row input:checked {
	background: var(--dsc-green);
}

.dsc__row input:checked::before {
	transform: translateX(16px);
}

.dsc__row input:disabled {
	opacity: 0.55;
	cursor: default;
}

.dsc__row input:focus-visible {
	outline: 2px solid var(--dsc-green);
	outline-offset: 2px;
}

.dsc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dsc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
	flex: 1 1 0;
	min-width: 120px;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--dsc-green);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.dsc__btn:hover {
	background: var(--dsc-green-dark);
}

.dsc__btn[hidden],
.dsc__link[hidden] {
	display: none;
}

.dsc__link {
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	flex: 1 0 100%;
	margin: 2px 0 0;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--dsc-green);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.dsc__btn:focus-visible,
.dsc__link:focus-visible,
.dsc__text a:focus-visible {
	outline: 2px solid var(--dsc-green);
	outline-offset: 2px;
}

.dsc__btn {
	min-height: 50px;
	font-size: 16px;
}

@media (max-width: 600px) {
	.dsc {
		align-items: flex-end;
		padding: 0;
	}

	.dsc__box {
		max-width: none;
		max-height: 90vh;
		padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		font-size: 14px;
	}

	.dsc__title {
		font-size: 21px;
	}

	.dsc__btn {
		min-height: 48px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dsc__row input,
	.dsc__row input::before,
	.dsc__btn {
		transition: none;
	}
}
