/*
 * Shared by the tester and reviewer portals' Account pages (inc/cannabis-profile.php): the
 * "your profile" checklist, and the How you use cannabis questions as tick-chips.
 */

/* Your profile: a bar and what's left, with links to each part. */
.bud-profile-setup {
	margin: 0 0 1rem;
	padding: 1rem clamp(1rem, 2.5vw, 1.5rem);
	border-radius: 14px;
	background: #0d0f0e;
	color: #f4f2eb;
}

.bud-profile-setup.is-complete {
	background: #e3f4e6;
	color: #0d0f0e;
}

.bud-profile-setup-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}

.bud-profile-meter {
	flex: 1 1 10rem;
	height: 8px;
	border-radius: 999px;
	background: #2a302c;
	overflow: hidden;
}

.bud-profile-setup.is-complete .bud-profile-meter {
	background: #cfe3d0;
}

.bud-profile-meter i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #3ef06e;
}

.bud-profile-setup.is-complete .bud-profile-meter i {
	background: #1f7a35;
}

.bud-profile-setup ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.bud-profile-setup li {
	padding: 0.3rem 0.75rem;
	border: 1.5px solid #3a413b;
	border-radius: 999px;
	font-size: 0.9rem;
}

.bud-profile-setup li.is-done {
	border-color: transparent;
	background: #1b201c;
	color: #9aa19a;
}

.bud-profile-setup.is-complete li {
	border-color: transparent;
	background: #fff;
	color: #1f5f2a;
}

.bud-profile-setup a {
	font-weight: 700;
	color: #3ef06e;
}

/* How you use cannabis: full width, a question to a row, answers as chips. */
.bud-p-account .bud-cannabis {
	grid-column: 1 / -1;
}

.bud-cannabis fieldset {
	margin: 0;
	padding: 0.85rem 0 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bud-cannabis fieldset + fieldset {
	margin-top: 0.85rem;
}

.bud-cannabis legend {
	float: left;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0;
	font-weight: 700;
}

.bud-cannabis legend span {
	margin-left: 0.35rem;
	font-weight: 400;
	font-size: 0.88rem;
	color: #5b605a;
}

.bud-chips {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.bud-chips label {
	position: relative;
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.bud-chips input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bud-chips span {
	padding: 0.4rem 0.8rem;
	border: 1.5px solid #d9d6c8;
	border-radius: 999px;
	background: #fff;
	font-size: 0.92rem;
	font-weight: 600;
}

.bud-chips input:checked + span {
	border-color: #1f7a35;
	background: #e3f4e6;
	color: #0d3f17;
}

.bud-chips input:checked + span::before {
	content: "\2713\00a0";
}

.bud-chips input:focus-visible + span {
	outline: 2px solid #1f7a35;
	outline-offset: 2px;
}

/* Who sees the answers, said plainly before the questions. */
.bud-cannabis-private {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0.25rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	background: #e3f4e6;
	font-size: 0.94rem;
	color: #0d3f17;
}

.bud-cannabis-private svg {
	flex: none;
	margin-top: 1px;
}

/* "Prefer not to say": quieter than the answers. */
.bud-chips input[value=""] + span {
	border-style: dashed;
	font-weight: 500;
	color: #5b605a;
}

.bud-chips input[value=""]:checked + span {
	border-color: #8a8f88;
	background: #f4f2eb;
	color: #3c403b;
}

.bud-chips input[value=""]:checked + span::before {
	content: none;
}
