.survey-answer-options {
    display: grid;
    gap: 12px;
    margin-block: 12px;
}

.survey-answer-options-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, calc((100% - 12px) / 2))), 1fr));
}

.survey-answer-option {
    position: relative;
    display: grid;
    min-width: 0;
}

.survey-answer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    color: var(--survey-text, #192b48);
    background: #fff;
    border: 1px solid #d6deeb;
    border-radius: 12px;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.survey-answer-option-image .survey-answer-content {
    justify-content: flex-start;
}

.survey-answer-content > img {
    display: block;
    align-self: center;
    width: var(--survey-answer-image-width, 100%);
    height: auto;
}

.survey-answer-text {
    padding: 12px 16px 12px 46px;
    overflow-wrap: anywhere;
}

.survey-answer-option-image .survey-answer-text {
    padding-inline-start: 16px;
    font-weight: 600;
}

.survey-answer-option-image-left .survey-answer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px;
}

.survey-answer-option-image-left .survey-answer-content > img {
    justify-self: center;
}

.survey-answer-option-image-left .survey-answer-text {
    border-inline-start: 1px solid #d6deeb;
    padding: 8px 0 8px 16px;
}

.survey-answer-text > :first-child {
    margin-top: 0;
}

.survey-answer-text > :last-child {
    margin-bottom: 0;
}

.survey-answer-text :is(b, strong) {
    font-weight: 700;
}

.survey-answer-text :is(i, em) {
    font-style: italic;
}

.survey-answer-text u {
    text-decoration: underline;
}

.survey-answer-text ul {
    padding-inline-start: 1.5em;
    list-style-type: disc;
}

.survey-answer-text ul > li {
    list-style-type: inherit;
}

.survey-answer-text ol {
    padding-inline-start: 1.5em;
    list-style-type: decimal;
}

.survey-answer-option > input.survey-answer-input {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 17px;
    height: 17px;
    margin: 0;
    transform: translateY(-50%);
    appearance: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    accent-color: var(--survey-primary, #376dcc);
}

.survey-answer-option-image > input.survey-answer-input {
    opacity: 0;
}

.survey-answer-option > label.survey-answer-hit {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    cursor: pointer;
}

.survey-answer-option:hover .survey-answer-content {
    border-color: var(--survey-primary, #376dcc);
}

.survey-answer-option > input:checked + .survey-answer-content {
    background: #edf4ff;
    border-color: var(--survey-primary, #376dcc);
    box-shadow: 0 0 0 2px var(--survey-primary, #376dcc);
}

.survey-answer-option > input:focus-visible + .survey-answer-content {
    outline: 2px solid var(--survey-primary, #376dcc);
    outline-offset: 4px;
}
