@import '../styles/variables';

.container {
    /* Hide the browser's default radio button */
    input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .checkmark {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        margin-inline-end: 10px;
        width: 18px;
        height: 18px;
        border: 1px solid #ced6d9;
        border-radius: 50%;
        box-shadow: 1px 1px 2px -2px #313131;

        /* Create the indicator (the dot/circle - hidden when not checked) */
        &:after {
            content: '';
            display: block;
            opacity: 0;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: $text-on-light;
        }
        &.checked {
            color: $text-on-light;
            background: white;
            box-shadow: 1px 1px 2px -2px #313131 inset;

            &::after {
                opacity: 1;
            }
        }
    }
}
