@mixin checkout__tick(
    $name-space:            null,
    $gutter:                null,
    $width:                 null,
    $space:                 null,
    $label-padding:         null,
    $height:                null,
    $y:                     null,
    $background-color:      null,
    $border-color:          null,
    $border-color-disabled: null,
    $icon-color:            null,
    $icon-color-disabled:   null
) {
    .#{$name-space}tick {
        @include checkout__reset;
        position: relative;

        // Label

        > label {
            display: block;
            cursor: pointer;
            line-height: 1;
            padding: $label-padding $label-padding $label-padding $width + $space;

            &:before {
                left: 0;
            }

            &:after {
                left: $width/4;
            }
        }

        > [disabled] ~ label {
            cursor: default;
        }

        > label:before,
        > label:after {
            content: '';
        }

        > label:before {
            position: absolute;
            transform: translateZ(0);
            transition: all 0.25s;
            top: $y;
            width: $width;
            height: $width;
            background-color: $background-color;
            box-shadow: 0 0 0 1px $border-color;
        }

        > [disabled] ~ label:before {
            box-shadow: 0 0 0 1px $border-color-disabled;
        }

        > label:after {
            position: absolute;
        }

        // Input

        > input {
            position: absolute;
            top: $y;
            left: 0;
        }

        // Checkbox

        > [type="checkbox"] ~ label:before {
            border-radius: 0;
        }

        > [type="checkbox"] ~ label:after {
            top: $y + ($height/4);
            display: none;
            width: $width/2;
            height: $height/3;
            border: 3px solid $icon-color;
            border-top: none;
            border-right: none;
            transform: rotate(-45deg);
        }

        > [type="checkbox"][disabled] ~ label:after {
            border-color: $icon-color-disabled;
        }

        > [type="checkbox"]:checked ~ label {
            &:after {
                display: block;
            }
        }

        > [type="checkbox"]:focus ~ label:before {
            outline: none;
        }

        // Radio

        > [type="radio"] ~ label:before {
            border-radius: 50%;
        }

        > [type="radio"] ~ label:after {
            position: absolute;
            top: 0;
            left: 0;
            width: $width;
            height: $height;
            background-color: $icon-color;
            transform: scale(0);
            transition: transform 0.25s;
            border-radius: 50%;
        }

        > [type="radio"][disabled] ~ label:after {
            background-color: $icon-color-disabled;
        }

        > [type="radio"]:checked ~ label:after {
            transform: scale(0.7);
        }

        @content;
    }
}