/* Checkbox */
.ds-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-checkbox-gap);
    cursor: pointer;
    user-select: none;
}

.ds-checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ds-checkbox__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--ds-checkbox-size);
    height: var(--ds-checkbox-size);
    background-color: transparent;
    border: var(--ds-checkbox-border);
    border-radius: 2px;
    box-sizing: border-box;
}

/* White tick when selected */
.ds-checkbox__input:checked + .ds-checkbox__box {
    background-color: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
}

.ds-checkbox__input:checked + .ds-checkbox__box::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.ds-checkbox__label {
    font-family: var(--ds-font-family);
    font-size: 14px;
    color: var(--ds-color-black);
}

/* Dropdown / select */
.ds-select-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ds-select__label {
    font-family: "Roboto", var(--ds-font-family), sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--ds-color-black);
}

.ds-select {
    position: relative;
    display: inline-block;
}

.ds-select__field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 160px;
    height: 40px;
    min-height: 36px;
    padding: 8px 40px 8px 16px;
    border-radius: var(--ds-btn-radius);
    border: 1px solid var(--ds-color-neutral-light);
    background-color: #ffffff;
    background-image: url("../../Design-System-Icons/general-purpose-icons/Expand-arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 8px 4px;
    font-family: var(--ds-font-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0;
    color: var(--ds-color-black);
    box-sizing: border-box;
}

.ds-select__field:focus-visible {
    outline: 2px solid var(--ds-color-primary);
    outline-offset: 2px;
}

.ds-select__field::-ms-expand {
    display: none;
}
