/* ---- Fråga experten ------------------------------------------------- */

.kma-question {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

.kma-question__form {
    gap: 14px;
}

.kma-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.kma-question__legend {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
}

.kma-chip-option {
    position: relative;
    margin: 0;
}

.kma-chip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Bordered like the PLP category nav (.archive-cat-nav__link). */
.kma-chip-option span {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--kma-nav-line);
    font-family: var(--kma-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.kma-chip-option span:hover {
    border-color: var(--kma-ink);
}

.kma-chip-option input:checked + span {
    background: #d9d9d9;
    border-color: #d9d9d9;
}

.kma-chip-option input:focus-visible + span {
    outline: 2px solid var(--kma-muted);
    outline-offset: 2px;
}

.kma-question textarea {
    min-height: 120px;
}

.kma-question__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.kma-attach {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--kma-ink);
    cursor: pointer;
}

.kma-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kma-attach__box {
    display: inline-block;
    flex: 0 0 18px;
    height: 18px;
    border: 1px solid var(--kma-ink);
}

.kma-attach.has-file .kma-attach__box {
    background: var(--kma-ink);
}

.kma-attach input:focus-visible ~ .kma-attach__box {
    outline: 2px solid var(--kma-muted);
    outline-offset: 2px;
}

.kma-question__foot {
    text-align: center;
    font-size: 11px;
    text-transform: none;
	padding-bottom: 20px;
}

@media (max-width: 768px) {
	.kma-question__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.kma-question__form .kma-btn { width: 100%; }
	.kma-question__foot { text-align: left; }
}